LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
13 
14  int LCRunHeaderImpl::getRunNumber() const { return _runNumber ; }
18 
20  checkAccess("LCRunHeaderImpl::setRunNumber") ;
21  _runNumber = rn ;
22  }
24  checkAccess("LCRunHeaderImpl::setDetectorName") ;
25  _detectorName = dn ;
26  }
28  checkAccess("LCRunHeaderImpl::setDescription") ;
29  _description = dsc ;
30  }
32  // checkAccess("LCRunHeaderImpl::setDescription") ;
33  // allow to add aubdetectors in read only mode ...
35  }
36 
37 
38  void LCRunHeaderImpl::setReadOnly( bool readOnly ) {
39 // _params.setReadOnly( readOnly ) ;
40  AccessChecked::setReadOnly( readOnly ) ;
41  }
42 
43 } // namespace
std::vector< std::string > _activeSubdetectors
void setDetectorName(const std::string &dn)
Sets the detector name.
virtual const std::vector< std::string > * getActiveSubdetectors() const
Returns the names of the active subdetectors used in the simulation.
virtual int getRunNumber() const
Returns the run number.
STL class.
virtual const std::string & getDescription() const
Description of the simulation conditions, e.g.
T push_back(T...args)
virtual ~LCRunHeaderImpl()
Destructor.
void setRunNumber(int rn)
Sets the run number.
virtual void setReadOnly(bool readOnly)
void addActiveSubdetector(const std::string &adn)
Adds an active sub detector name.
void setDescription(const std::string &dsc)
Sets the description of the run.
virtual const std::string & getDetectorName() const
Returns the name of the detector setup used in the simulation.
virtual void setReadOnly(bool readOnly)