ATLAS Offline Software
LArG4TBPosOptions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARG4RUNCONTTROL_LARG4TBPOSOPTIONS_H
6 #define LARG4RUNCONTTROL_LARG4TBPOSOPTIONS_H
7 #include "CLHEP/Units/SystemOfUnits.h"
8 #include <string>
9 // ----------------------------------------------------------------------//
10 // //
11 // This class defines options for the Positioning of Test Beam components//
12 // in test beam simulation. It sets the nickname and nicknumber of //
13 // a row in the LArTBPositions table in Oracle (or replica). It is //
14 // originally used in the LAr H6 2003 TB but is probably applicable and //
15 // going to be used in other test beam situations. //
16 // //
17 //-----------------------------------------------------------------------//
18 
20 
21  public:
22  // A constructor to insure that the data starts up with a reasonable set
23  // of defaults:
24 
25  inline LArG4TBPosOptions() :
26  m_PositionNickname("POSITION1"),
28 
29  void saveMe();
30  void printMe();
31 
32  // Set methods
33  inline void PositionNickname (const std::string & value) { m_PositionNickname = value; }
35 
36  // Get methods
37  inline const std::string & PositionNickname(void) const { return m_PositionNickname; }
38  inline int PositionNicknumber(void) const { return m_PositionNicknumber; }
39 
40  private:
41 
42  // Value of the substep length in the current simulation
43  std::string m_PositionNickname;
44 
45  // Width of the time bins
47 
48 };
49 
50 #ifndef GAUDI_NEUTRAL
51 #include "AthenaKernel/CLASS_DEF.h"
52 CLASS_DEF(LArG4TBPosOptions, 321345482, 1)
53 #endif
54 
55 #endif
LArG4TBPosOptions::PositionNicknumber
void PositionNicknumber(int value)
Definition: LArG4TBPosOptions.h:34
LArG4TBPosOptions
Definition: LArG4TBPosOptions.h:19
athena.value
value
Definition: athena.py:122
LArG4TBPosOptions::PositionNicknumber
int PositionNicknumber(void) const
Definition: LArG4TBPosOptions.h:38
LArG4TBPosOptions::saveMe
void saveMe()
Definition: LArG4TBPosOptions.cxx:11
LArG4TBPosOptions::m_PositionNicknumber
int m_PositionNicknumber
Definition: LArG4TBPosOptions.h:46
LArG4TBPosOptions::m_PositionNickname
std::string m_PositionNickname
Definition: LArG4TBPosOptions.h:43
LArG4TBPosOptions::PositionNickname
const std::string & PositionNickname(void) const
Definition: LArG4TBPosOptions.h:37
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LArG4TBPosOptions::printMe
void printMe()
Definition: LArG4TBPosOptions.cxx:31
LArG4TBPosOptions::LArG4TBPosOptions
LArG4TBPosOptions()
Definition: LArG4TBPosOptions.h:25
LArG4TBPosOptions::PositionNickname
void PositionNickname(const std::string &value)
Definition: LArG4TBPosOptions.h:33
CLASS_DEF.h
macros to associate a CLID to a type