ATLAS Offline Software
Loading...
Searching...
No Matches
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
8// //
9// Hit position of the beam in one detector
10//
11// //
13
14
15//#include "AthContainers/DataVector.h"
17
19
20
21
22class 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
64 void setValidFlag(bool valid){m_IsValid=valid;}
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
87
88
89};
90CLASS_DEF( TBHit , 18028812 , 1 )
91#endif
92
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
#define y
#define x
#define z
Definition TBHit.h:23
double getErrorx()
Definition TBHit.h:45
double getErrory()
Definition TBHit.h:46
double m_ey
Definition TBHit.h:82
void setBeamDetector(TBBeamDetector *beamdetect)
Definition TBHit.h:66
TBBeamDetector * m_beamdetect
Definition TBHit.h:75
float getPosy()
Definition TBHit.h:41
void setPosy(float y)
Definition TBHit.h:56
bool m_IsValid
Definition TBHit.h:86
double m_ex
Definition TBHit.h:82
void setErrory(double ey)
Definition TBHit.h:59
double m_ez
Definition TBHit.h:82
void setPosz(float z)
Definition TBHit.h:57
float m_z
Definition TBHit.h:78
~TBHit()
Definition TBHit.h:34
float m_y
Definition TBHit.h:78
float m_x
Definition TBHit.h:78
void setErrorz(double ez)
Definition TBHit.h:60
void setValidFlag(bool valid)
Definition TBHit.h:64
float getPosz()
Definition TBHit.h:42
double getErrorz()
Definition TBHit.h:47
void setPosx(float x)
Definition TBHit.h:55
TBBeamDetector * getBeamDetector()
Definition TBHit.h:51
float getPosx()
Definition TBHit.h:40
void setErrorx(double ex)
Definition TBHit.h:58
bool IsValid()
Definition TBHit.h:49
TBHit()
Definition TBHit.cxx:7