ATLAS Offline Software
Loading...
Searching...
No Matches
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
8// //
9// Information on trigger timing for ATLAS commissioning
10// //
12
14#include "CLHEP/Vector/ThreeVector.h"
15
17{
18 public:
19
20 ComTime() : m_trigCounterTTCTime((double)0.), m_trigCounterTime((double)0.),
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
37
38 void SetTTCTime(double TTCTime) {m_trigCounterTTCTime=TTCTime;}
39 void SetTime(double time) {m_trigCounterTime=time;}
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
58CLASS_DEF(ComTime,229624403,1)
59#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
ComTime(double TTCTime)
Definition ComTime.h:24
CLHEP::Hep3Vector m_trigCounterPosition
Definition ComTime.h:53
ComTime()
Definition ComTime.h:20
double getTTCTime() const
Definition ComTime.h:43
void SetDirection(CLHEP::Hep3Vector dir)
Definition ComTime.h:41
ComTime(double TTCTime, double time)
Definition ComTime.h:28
double m_trigCounterTime
Definition ComTime.h:52
ComTime(double TTCTime, double time, CLHEP::Hep3Vector &pos, CLHEP::Hep3Vector &mom)
Definition ComTime.h:32
~ComTime()
Definition ComTime.h:36
void SetTTCTime(double TTCTime)
Definition ComTime.h:38
CLHEP::Hep3Vector GetcosThetaDirection() const
Definition ComTime.h:47
double getTime() const
Definition ComTime.h:44
CLHEP::Hep3Vector GetCounterPosition() const
Definition ComTime.h:46
double m_trigCounterTTCTime
Definition ComTime.h:51
void SetPosition(CLHEP::Hep3Vector pos)
Definition ComTime.h:40
void SetTime(double time)
Definition ComTime.h:39
CLHEP::Hep3Vector m_cosThetaDirection
Definition ComTime.h:54