LCIO
02.17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
src
IMPL
LCRunHeaderImpl.cc
Go to the documentation of this file.
1
#include "
IMPL/LCRunHeaderImpl.h
"
2
3
using namespace
EVENT ;
4
5
namespace
IMPL{
6
7
8
LCRunHeaderImpl::LCRunHeaderImpl() :
9
_runNumber(0){
10
}
11
12
LCRunHeaderImpl::~LCRunHeaderImpl
() { }
13
14
int
LCRunHeaderImpl::getRunNumber
()
const
{
return
_runNumber
; }
15
const
std::string
&
LCRunHeaderImpl::getDetectorName
()
const
{
return
_detectorName
; }
16
const
std::string
&
LCRunHeaderImpl::getDescription
()
const
{
return
_description
; }
17
const
std::vector<std::string>
*
LCRunHeaderImpl::getActiveSubdetectors
()
const
{
return
&
_activeSubdetectors
;}
18
19
void
LCRunHeaderImpl::setRunNumber
(
int
rn) {
20
checkAccess
(
"LCRunHeaderImpl::setRunNumber"
) ;
21
_runNumber
= rn ;
22
}
23
void
LCRunHeaderImpl::setDetectorName
(
const
std::string
& dn) {
24
checkAccess
(
"LCRunHeaderImpl::setDetectorName"
) ;
25
_detectorName
= dn ;
26
}
27
void
LCRunHeaderImpl::setDescription
(
const
std::string
& dsc) {
28
checkAccess
(
"LCRunHeaderImpl::setDescription"
) ;
29
_description
= dsc ;
30
}
31
void
LCRunHeaderImpl::addActiveSubdetector
(
const
std::string
& adn) {
32
// checkAccess("LCRunHeaderImpl::setDescription") ;
33
// allow to add aubdetectors in read only mode ...
34
_activeSubdetectors
.
push_back
( adn ) ;
35
}
36
37
38
void
LCRunHeaderImpl::setReadOnly
(
bool
readOnly ) {
39
// _params.setReadOnly( readOnly ) ;
40
AccessChecked::setReadOnly
( readOnly ) ;
41
}
42
43
}
// namespace
IMPL::LCRunHeaderImpl::_runNumber
int _runNumber
Definition:
LCRunHeaderImpl.h:80
IMPL::LCRunHeaderImpl::_activeSubdetectors
std::vector< std::string > _activeSubdetectors
Definition:
LCRunHeaderImpl.h:83
IMPL::LCRunHeaderImpl::setDetectorName
void setDetectorName(const std::string &dn)
Sets the detector name.
Definition:
LCRunHeaderImpl.cc:23
IMPL::AccessChecked::checkAccess
void checkAccess()
Definition:
AccessChecked.cc:18
IMPL::LCRunHeaderImpl::getActiveSubdetectors
virtual const std::vector< std::string > * getActiveSubdetectors() const
Returns the names of the active subdetectors used in the simulation.
Definition:
LCRunHeaderImpl.cc:17
LCRunHeaderImpl.h
IMPL::LCRunHeaderImpl::getRunNumber
virtual int getRunNumber() const
Returns the run number.
Definition:
LCRunHeaderImpl.cc:14
std::string
STL class.
IMPL::LCRunHeaderImpl::getDescription
virtual const std::string & getDescription() const
Description of the simulation conditions, e.g.
Definition:
LCRunHeaderImpl.cc:16
std::vector::push_back
T push_back(T...args)
IMPL::LCRunHeaderImpl::_description
std::string _description
Definition:
LCRunHeaderImpl.h:82
IMPL::LCRunHeaderImpl::~LCRunHeaderImpl
virtual ~LCRunHeaderImpl()
Destructor.
Definition:
LCRunHeaderImpl.cc:12
IMPL::LCRunHeaderImpl::setRunNumber
void setRunNumber(int rn)
Sets the run number.
Definition:
LCRunHeaderImpl.cc:19
std::vector< std::string >
IMPL::AccessChecked::setReadOnly
virtual void setReadOnly(bool readOnly)
Definition:
AccessChecked.cc:14
IMPL::LCRunHeaderImpl::addActiveSubdetector
void addActiveSubdetector(const std::string &adn)
Adds an active sub detector name.
Definition:
LCRunHeaderImpl.cc:31
IMPL::LCRunHeaderImpl::setDescription
void setDescription(const std::string &dsc)
Sets the description of the run.
Definition:
LCRunHeaderImpl.cc:27
IMPL::LCRunHeaderImpl::getDetectorName
virtual const std::string & getDetectorName() const
Returns the name of the detector setup used in the simulation.
Definition:
LCRunHeaderImpl.cc:15
IMPL::LCRunHeaderImpl::setReadOnly
virtual void setReadOnly(bool readOnly)
Definition:
LCRunHeaderImpl.cc:38
IMPL::LCRunHeaderImpl::_detectorName
std::string _detectorName
Definition:
LCRunHeaderImpl.h:81
Generated on Thu Dec 16 2021 15:42:54 for LCIO by
1.8.5