LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
TrackerPulseImpl.h
1 #ifndef IMPL_TrackerPulseImpl_H
2 #define IMPL_TrackerPulseImpl_H 1
3 
4 #include "EVENT/TrackerPulse.h"
5 #include "AccessChecked.h"
6 
7 #define TRKPULSENCOVMATRIX 3
8 
9 namespace IMPL {
10 
18 
19  public:
20 
24 
26  virtual ~TrackerPulseImpl() ;
27 
28  virtual int id() const { return simpleUID() ; }
29 
30 
33  virtual int getCellID0() const { return _cellID0 ; }
34 
38  virtual int getCellID1() const { return _cellID1 ; }
39 
42  virtual float getTime() const { return _time ; }
43 
44  // The time error
45  //virtual float getTimeError() const { return _timeError ; }
46 
49  virtual float getCharge() const { return _charge ; }
50 
51  //The charge error
52  //virtual float getChargeError() const { return _chargeError ; }
53 
58  virtual const EVENT::FloatVec & getCovMatrix() const { return _cov ; }
59 
60 
63  virtual int getQuality() const { return _quality ; }
64 
69  virtual EVENT::TrackerData * getTrackerData() const { return _corrData ; }
70 
71 
72  // setter methods
73  void setCellID0( int cellID0 ) ;
74  void setCellID1( int cellID1 ) ;
75  void setTime( float time ) ;
76  //void setTimeError( float timeError ) ;
77  void setCharge( float charge ) ;
78  //void setChargeError( float chargeError ) ;
79  //void setCovMatrix( const float cov[TRKPULSENCOVMATRIX] ) ;
80  void setCovMatrix( const float* cov ) ;
81  void setCovMatrix( const EVENT::FloatVec & ) ;
82  void setQuality( int quality ) ;
83  void setQualityBit( int bit , bool val=true ) ;
84  void setTrackerData( EVENT::TrackerData * corrData ) ;
85 
86 protected:
87 
88  int _cellID0 ;
89  int _cellID1 ;
90  float _time ;
91  //float _timeError ;
92  float _charge ;
93  //float _chargeError ;
94  int _quality ;
95  EVENT::FloatVec _cov ;
96  EVENT::TrackerData* _corrData ;
97 
98  }; // class
99 } // namespace IMPL
100 #endif /* ifndef IMPL_TrackerPulseImpl_H */
virtual ~TrackerPulseImpl()
Destructor.
Definition: TrackerPulseImpl.cc:29
virtual int getCellID0() const
Returns the first detector specific (geometrical) cell id.
Definition: TrackerPulseImpl.h:33
virtual float getTime() const
The time of the pulse.
Definition: TrackerPulseImpl.h:42
TrackerPulseImpl()
Default Constructor - initializes all data to 0's.
Definition: TrackerPulseImpl.cc:11
virtual const EVENT::FloatVec & getCovMatrix() const
Covariance matrix of the charge (c) and time (t) measurements.
Definition: TrackerPulseImpl.h:58
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
TrackerData contains the corrected (calibrated) raw tracker data.
Definition: TrackerData.h:23
Tracker pulses as computed from TrackerData objects or as directly measured by a specific subdetector...
Definition: TrackerPulse.h:26
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: TrackerPulseImpl.h:28
Default implementation of TrackerPulse.
Definition: TrackerPulseImpl.h:17
virtual EVENT::TrackerData * getTrackerData() const
Optionally the TrackerData that has been uesed to create the pulse can be stored with the pulse - NUL...
Definition: TrackerPulseImpl.h:69
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
Definition: TrackerPulseImpl.h:38
virtual int getQuality() const
The quality bit flag of the pulse - use the defined constants for referring to the bits...
Definition: TrackerPulseImpl.h:63
Controls access to objects.
Definition: AccessChecked.h:17
virtual float getCharge() const
The integrated charge of the pulse // FIXME: unit ?.
Definition: TrackerPulseImpl.h:49