ATLAS Offline Software
AFPToFHit_v1.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 XAODFORWARD_VERSIONS_AFPToFHIT_V1_H
6 #define XAODFORWARD_VERSIONS_AFPToFHIT_V1_H
7 
8 // EDM include(s):
11 
12 
13 namespace xAOD {
14 
20  {
21  public:
22  // needed by athenaRoot
23  AFPToFHit_v1();
24 
32  float time() const;
33 
34  void setTime(float time);
35 
42  int hptdcChannel() const;
43 
45 
49  int barInTrainID() const;
50 
51  void setBarInTrainID(const int barInTrainID);
52 
56  int trainID() const;
57 
58  void setTrainID(const int barInTrainID);
59 
67  float pulseLength() const;
68 
70 
76  int hptdcID() const;
77 
78  void setHptdcID(int hptdcID);
79 
84  int stationID() const;
85 
86  void setStationID(int side);
87 
89  bool isSideA() const
90  { return stationID() == xAOD::AFPStationID::farA;}
91 
93  bool isSideC() const
94  { return stationID() == xAOD::AFPStationID::farC;}
95 
97  void toPersistent() {}
98  };
99 
100 
101 } // namespace xAOD
102 
103 // Declare the inheritance of the type to StoreGate:
104 #include "xAODCore/BaseInfo.h"
106 
107 #endif // XAODFORWARD_VERSIONS_AFPToFHIT_V1_H
xAOD::AFPToFHit_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving - does nothing.
Definition: AFPToFHit_v1.h:97
xAOD::AFPToFHit_v1::barInTrainID
int barInTrainID() const
ID number of the LQBar in a train where hit was detected.
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::AFPToFHit_v1::time
float time() const
Time of AFP ToF detector hit relative to the reference clock.
SG_BASE
SG_BASE(xAOD::AFPToFHit_v1, SG::AuxElement)
xAOD::AFPToFHit_v1::setBarInTrainID
void setBarInTrainID(const int barInTrainID)
BaseInfo.h
xAOD::AFPToFHit_v1::setTime
void setTime(float time)
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::AFPToFHit_v1::setPulseLength
void setPulseLength(float pulseLength)
xAOD::AFPToFHit_v1
Class representing a hit in ToF detector.
Definition: AFPToFHit_v1.h:20
xAOD::AFPToFHit_v1::trainID
int trainID() const
ID number of the train of LQBars (set of 4 bars), where hit was detected.
xAOD::AFPToFHit_v1::stationID
int stationID() const
Index of the station with time-of-flight hit.
TRT::Hit::side
@ side
Definition: HitInfo.h:83
xAOD::AFPToFHit_v1::setHptdcID
void setHptdcID(int hptdcID)
xAOD::AFPToFHit_v1::setStationID
void setStationID(int side)
AFPStationID.h
Definitions of AFP stations identification numbers.
xAOD::AFPToFHit_v1::isSideC
bool isSideC() const
Returns true if ToF hit is in far station on A side.
Definition: AFPToFHit_v1.h:93
xAOD::AFPToFHit_v1::hptdcChannel
int hptdcChannel() const
HPTDC channel number.
xAOD::AFPStationID::farA
static const int farA
station with at Z = 217 m
Definition: AFPStationID.h:49
xAOD::AFPToFHit_v1::hptdcID
int hptdcID() const
Identification number of the HPTDC module.
xAOD::AFPToFHit_v1::pulseLength
float pulseLength() const
Lenght of the signal pulse which is proportional to the signal amplitude.
xAOD::AFPToFHit_v1::setTrainID
void setTrainID(const int barInTrainID)
xAOD::AFPToFHit_v1::isSideA
bool isSideA() const
Returns true if ToF hit is in far station on A side.
Definition: AFPToFHit_v1.h:89
xAOD::AFPStationID::farC
static const int farC
station with at Z = -217 m
Definition: AFPStationID.h:52
xAOD::AFPToFHit_v1::AFPToFHit_v1
AFPToFHit_v1()
Definition: AFPToFHit_v1.cxx:15
xAOD::AFPToFHit_v1::setHptdcChannel
void setHptdcChannel(int hptdcChannel)
AuxElement.h
Base class for elements of a container that can have aux data.