LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCRunHeaderImpl.h
Go to the documentation of this file.
1 #ifndef EVENT_LCRUNHEADERIMPL_H
2 #define EVENT_LCRUNHEADERIMPL_H 1
3 
4 #include <string>
5 
6 #include "EVENT/LCIO.h"
7 #include "EVENT/LCRunHeader.h"
8 #include "AccessChecked.h"
9 #include "LCParametersImpl.h"
10 
11 namespace IMPL {
12 
19 
20  public:
21 
22  LCRunHeaderImpl() ;
23 
25  virtual ~LCRunHeaderImpl() ;
26 
27  virtual int id() const { return simpleUID() ; }
28 
31  virtual int getRunNumber() const ;
32 
35  virtual const std::string & getDetectorName() const ;
36 
39  virtual const std::string & getDescription() const ;
40 
44  virtual const std::vector<std::string> * getActiveSubdetectors() const ;
45 
46 
49  virtual const EVENT::LCParameters & getParameters() const { return _params ; }
50 
53  virtual EVENT::LCParameters & parameters() { return _params ; }
54 
55 
56  // set methods
57 
60  void setRunNumber( int rn) ;
61 
64  void setDetectorName(const std::string& dn) ;
65 
68  void setDescription(const std::string& dsc) ;
69 
72  void addActiveSubdetector(const std::string& adn) ;
73 
74 
75  protected:
76  virtual void setReadOnly( bool readOnly ) ;
77 
78  protected:
79 
80  int _runNumber{0} ;
84 
86 
87  }; // class
88 } // namespace IMPL
89 #endif /* ifndef IMPL_LCRUNHEADERIMPL_H */
std::vector< std::string > _activeSubdetectors
LCParametersImpl _params
Interface for the run header.
Definition: LCRunHeader.h:23
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
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.
Implementation of LCRunHeader.
Implementation of Simple interface to store generic named parameters of type int, float and string...
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
virtual ~LCRunHeaderImpl()
Destructor.
void setRunNumber(int rn)
Sets the run number.
virtual EVENT::LCParameters & parameters()
Parameters defined for this run.
virtual int simpleUID() const
Definition: AccessChecked.h:26
Controls access to objects.
Definition: AccessChecked.h:18
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 const EVENT::LCParameters & getParameters() const
Parameters defined for this run.
virtual void setReadOnly(bool readOnly)