ATLAS Offline Software
ComTime.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef COMMISSIONEVENT_COMTIME
6 #define COMMISSIONEVENT_COMTIME
7 // //
9 // Information on trigger timing for ATLAS commissioning
10 // //
12 
13 #include "AthenaKernel/CLASS_DEF.h"
14 #include "CLHEP/Vector/ThreeVector.h"
15 
16 class ComTime
17 {
18  public:
19 
21  m_trigCounterPosition(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)),
22  m_cosThetaDirection(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)) {}
23 
24  ComTime(double TTCTime) : m_trigCounterTTCTime(TTCTime), m_trigCounterTime((double)0.),
25  m_trigCounterPosition(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)),
26  m_cosThetaDirection(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)) {}
27 
28  ComTime(double TTCTime, double time) : m_trigCounterTTCTime(TTCTime), m_trigCounterTime(time),
29  m_trigCounterPosition(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)),
30  m_cosThetaDirection(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)) {}
31 
32  ComTime(double TTCTime, double time, CLHEP::Hep3Vector& pos, CLHEP::Hep3Vector& mom) : m_trigCounterTTCTime(TTCTime),
34 
35 
36  ~ComTime() {};
37 
38  void SetTTCTime(double TTCTime) {m_trigCounterTTCTime=TTCTime;}
40  void SetPosition(CLHEP::Hep3Vector pos) {m_trigCounterPosition=pos;}
41  void SetDirection(CLHEP::Hep3Vector dir) {m_cosThetaDirection=dir;}
42 
43  double getTTCTime() const {return m_trigCounterTTCTime;}
44  double getTime() const {return m_trigCounterTime;}
45 
46  CLHEP::Hep3Vector GetCounterPosition() const {return m_trigCounterPosition;}
47  CLHEP::Hep3Vector GetcosThetaDirection() const {return m_cosThetaDirection;}
48 
49  private:
50 
53  CLHEP::Hep3Vector m_trigCounterPosition;
54  CLHEP::Hep3Vector m_cosThetaDirection;
55 
56 };
57 
58 CLASS_DEF(ComTime,229624403,1)
59 #endif
ComTime::SetPosition
void SetPosition(CLHEP::Hep3Vector pos)
Definition: ComTime.h:40
ComTime::getTime
double getTime() const
Definition: ComTime.h:44
ComTime::m_trigCounterPosition
CLHEP::Hep3Vector m_trigCounterPosition
Definition: ComTime.h:53
ComTime
Definition: ComTime.h:17
ComTime::SetDirection
void SetDirection(CLHEP::Hep3Vector dir)
Definition: ComTime.h:41
ComTime::GetcosThetaDirection
CLHEP::Hep3Vector GetcosThetaDirection() const
Definition: ComTime.h:47
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
ComTime::SetTime
void SetTime(double time)
Definition: ComTime.h:39
CLHEP
STD'S.
Definition: IAtRndmGenSvc.h:19
ComTime::SetTTCTime
void SetTTCTime(double TTCTime)
Definition: ComTime.h:38
ComTime::ComTime
ComTime(double TTCTime, double time)
Definition: ComTime.h:28
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
ComTime::ComTime
ComTime(double TTCTime, double time, CLHEP::Hep3Vector &pos, CLHEP::Hep3Vector &mom)
Definition: ComTime.h:32
beamspotman.dir
string dir
Definition: beamspotman.py:623
ComTime::getTTCTime
double getTTCTime() const
Definition: ComTime.h:43
ComTime::ComTime
ComTime(double TTCTime)
Definition: ComTime.h:24
ComTime::m_cosThetaDirection
CLHEP::Hep3Vector m_cosThetaDirection
Definition: ComTime.h:54
ComTime::ComTime
ComTime()
Definition: ComTime.h:20
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
ComTime::m_trigCounterTTCTime
double m_trigCounterTTCTime
Definition: ComTime.h:51
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
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
ComTime::GetCounterPosition
CLHEP::Hep3Vector GetCounterPosition() const
Definition: ComTime.h:46
CLASS_DEF.h
macros to associate a CLID to a type
ComTime::~ComTime
~ComTime()
Definition: ComTime.h:36
ComTime::m_trigCounterTime
double m_trigCounterTime
Definition: ComTime.h:52