LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TrackerHitZCylinderImpl.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef IMPL_TrackerHitZCylinderImpl_H
3 #define IMPL_TrackerHitZCylinderImpl_H 1
4 
5 #include <string>
6 
8 #include "IMPL/AccessChecked.h"
9 #include "LCIODeprecated.h"
10 
11 #define TRKHITZCYLNCOVMATRIX 6
12 
13 namespace IMPL {
14 
22 
23  public:
24  // C'tor
26 
28  virtual ~TrackerHitZCylinderImpl() ;
29 
30 
31  virtual int id() const { return simpleUID() ; }
32 
35  virtual int getCellID0() const { return _cellID0; }
36 
41  virtual int getCellID1() const { return _cellID1; }
42 
43 
46  virtual const double* getPosition() const { return _pos ; } ;
47 
50  //virtual const float getR() const { return _r ; } ;
51 
54  virtual const float* getCenter() const { return _center ; } ;
55 
57  virtual float getdRPhi() const { return _drphi ; } ;
58 
60  virtual float getdZ() const { return _dz ; } ;
61 
62 
65  virtual const EVENT::FloatVec & getCovMatrix() const ;
66 
71  LCIO_DEPRECATED( "Use getEDep() instead" , virtual float getdEdx() const ) ;
72 
75  virtual float getEDep() const { return _EDep ; }
76 
79  virtual float getEDepError() const { return _EDepError ; }
80 
83  virtual float getTime() const { return _time ; } ;
84 
89  virtual int getType() const { return _type ; }
90 
91 
94  virtual int getQuality() const { return _quality ; }
95 
99  virtual const EVENT::LCObjectVec & getRawHits() const { return _rawHits ; }
100 
101 
104  virtual EVENT::LCObjectVec & rawHits() { return _rawHits ; }
105 
106 
107  // setters
108 
111  void setCellID0(int id0) ;
112 
117  void setCellID1(int id1) ;
118 
119  void setType(int type) ;
120  void setPosition( const double pos[3]) ;
121  void setCenter( const float c[2] ) { setCenter( c[0] , c[1] ) ; };
122  void setCenter( float xc, float yc);
123  //void setR( float r );
124  void setdRPhi( float drphi );
125  void setdZ( float dz );
126  void setEDep( float e ) ;
127  void setEDepError( float e ) ;
128  void setTime( float t ) ;
129  void setQuality( int quality ) ;
130  void setQualityBit( int bit , bool val=true ) ;
131  //void setCovMatrix( const EVENT::FloatVec& cov );
132  //void setCovMatrix( float cov[TRKHITZCYLNCOVMATRIX] );
133 
134 
135 protected:
136 
137  int _cellID0 ;
138  int _cellID1 ;
139 
140  int _type ;
141  double _pos[3] = {0,0,0} ;
142  float _center[2] = {0,0};
143  float _drphi ;
144  float _dz ;
145  float _EDep ;
146  float _EDepError ;
147  float _time ;
148  int _quality ;
151 
152 
153 }; // class
154 } // namespace IMPL
155 #endif // #ifndef IMPL_TrackerHitZCylinderImpl_H
156 
Implementation of the tracker hit on a cylindrical surface parallel to z.
virtual float getEDepError() const
The error measured on EDep [GeV].
virtual ~TrackerHitZCylinderImpl()
Destructor.
virtual int getCellID1() const
Same name as in CalorimeterHit, even though there are no &#39;cells&#39; in this case 0 if information is not...
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit RTHZBIT_ID1) of the collection is set...
virtual const double * getPosition() const
The hit position in [mm].
void setCellID0(int id0)
Sets the first cell id;.
virtual float getTime() const
The time of the hit in [ns].
virtual float getdZ() const
Measurement error along z.
LCIO_DEPRECATED("Use getEDep() instead", virtual float getdEdx() const )
The dE/dx of the hit in [GeV/mm].
virtual float getdEdx() const =0
The dE/dx of the hit in [GeV].
virtual float getEDep() const
The deposited energy of the hit [GeV].
void setQualityBit(int bit, bool val=true)
virtual float getdRPhi() const
Measurement error along RPhi.
virtual int getType() const
Type of hit.
A tracker hit on a cylindrical surface that runs parallel to the z-axis - the hit is stored as: x...
virtual int simpleUID() const
Definition: AccessChecked.h:26
virtual EVENT::LCObjectVec & rawHits()
Use to manipulate the raw hits.
virtual const EVENT::FloatVec & getCovMatrix() const
Covariance of the position (x,y,z)
Controls access to objects.
Definition: AccessChecked.h:18
virtual const float * getCenter() const
Radius of cylinder.
virtual int getQuality() const
The quality bit flag of the hit.
void setPosition(const double pos[3])
virtual const EVENT::LCObjectVec & getRawHits() const
The raw data hits.
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
virtual int getCellID0() const
Same name as in CalorimeterHit, even though there are no &#39;cells&#39; in this case.