ATLAS Offline Software
TBHit.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 TBEVENT_TBHit_H
6 #define TBEVENT_TBHit_H
7 // //
9 // Hit position of the beam in one detector
10 //
11 // //
13 
14 
15 //#include "AthContainers/DataVector.h"
16 #include "AthenaKernel/CLASS_DEF.h"
17 
18 #include "TBEvent/TBBeamDetector.h"
19 
20 
21 
22 class TBHit
23 {
24  public:
25 
26 
27 
29  // Constructors and Destructor //
31 
32  TBHit();
33 
34  ~TBHit(){};
35 
36  // /////////////////////
37  // Data Manipulation //
38  // /////////////////////
39 
40  float getPosx(){return m_x;}
41  float getPosy(){return m_y;}
42  float getPosz(){return m_z;}
43 
44 
45  double getErrorx(){return m_ex;}
46  double getErrory(){return m_ey;}
47  double getErrorz(){return m_ez;}
48 
49  bool IsValid(){return m_IsValid;}
50 
52 
53  //
54 
55  void setPosx(float x){m_x=x;}
56  void setPosy(float y){m_y=y;}
57  void setPosz(float z){m_z=z;}
58  void setErrorx(double ex){m_ex = ex;}
59  void setErrory(double ey){m_ex = ey;}
60  void setErrorz(double ez){m_ez = ez;}
61 
62 
63 
65 
66  void setBeamDetector(TBBeamDetector * beamdetect){m_beamdetect=beamdetect;}
67 
68  private:
69 
71  // Private Data //
73 
74  // A pointer to the detector that recorded this hit :
76 
77  // Position of the hit in the detectors given in global 'reconstruction' coordonates.
78  float m_x,m_y,m_z;
79 
80  // Error associated with the detector resolution and position
81  // measurement error
82  double m_ex,m_ey, m_ez;
83 
84 
85  // A flag that tells if the hit should be included in track reconstruction or not
86  bool m_IsValid;
87 
88 
89 };
90 CLASS_DEF( TBHit , 18028812 , 1 )
91 #endif
92 
TBBeamDetector.h
TBHit::m_ex
double m_ex
Definition: TBHit.h:82
TBHit::m_z
float m_z
Definition: TBHit.h:78
TBHit::getPosz
float getPosz()
Definition: TBHit.h:42
TBHit::m_beamdetect
TBBeamDetector * m_beamdetect
Definition: TBHit.h:75
TBHit::getPosx
float getPosx()
Definition: TBHit.h:40
TBHit::setValidFlag
void setValidFlag(bool valid)
Definition: TBHit.h:64
TBHit::getErrory
double getErrory()
Definition: TBHit.h:46
TBHit::m_y
float m_y
Definition: TBHit.h:78
TBHit::IsValid
bool IsValid()
Definition: TBHit.h:49
x
#define x
TBHit::setPosy
void setPosy(float y)
Definition: TBHit.h:56
TBHit::getPosy
float getPosy()
Definition: TBHit.h:41
TBHit::m_IsValid
bool m_IsValid
Definition: TBHit.h:86
calibdata.valid
list valid
Definition: calibdata.py:45
TBHit::getErrorz
double getErrorz()
Definition: TBHit.h:47
z
#define z
TBHit::setPosx
void setPosx(float x)
Definition: TBHit.h:55
TBHit::getErrorx
double getErrorx()
Definition: TBHit.h:45
TBHit::m_ey
double m_ey
Definition: TBHit.h:82
TBHit::getBeamDetector
TBBeamDetector * getBeamDetector()
Definition: TBHit.h:51
TBHit::setErrorx
void setErrorx(double ex)
Definition: TBHit.h:58
TBHit::~TBHit
~TBHit()
Definition: TBHit.h:34
TBHit
Definition: TBHit.h:23
y
#define y
TBHit::m_ez
double m_ez
Definition: TBHit.h:82
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
TBHit::setErrorz
void setErrorz(double ez)
Definition: TBHit.h:60
TBHit::setBeamDetector
void setBeamDetector(TBBeamDetector *beamdetect)
Definition: TBHit.h:66
TBHit::setErrory
void setErrory(double ey)
Definition: TBHit.h:59
TBBeamDetector
Definition: TBBeamDetector.h:16
TBHit::TBHit
TBHit()
Definition: TBHit.cxx:7
TBHit::m_x
float m_x
Definition: TBHit.h:78
CLASS_DEF.h
macros to associate a CLID to a type
TBHit::setPosz
void setPosz(float z)
Definition: TBHit.h:57