LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
RawCalorimeterHitImpl.h
1 #ifndef EVENT_RAWCALORIMETERHITIMPL_H
2 #define EVENT_RAWCALORIMETERHITIMPL_H 1
3 
4 
5 #include "EVENT/MCParticle.h"
6 #include "EVENT/RawCalorimeterHit.h"
7 #include <vector>
8 #include "AccessChecked.h"
9 
10 namespace IMPL {
11 
12 
20 
21  public:
22 
26 
28  virtual ~RawCalorimeterHitImpl() ;
29 
30  virtual int id() const { return simpleUID() ; }
31 
34  virtual int getCellID0() const ;
35 
39  virtual int getCellID1() const ;
40 
43  virtual int getAmplitude() const ;
44 
48  virtual int getTimeStamp() const ;
49 
50 
51  void setCellID0(int id0) ;
52 
57  void setCellID1(int id1) ;
58 
61  void setAmplitude(int amplitude) ;
62 
65  void setTimeStamp(int time) ;
66 
67  protected:
68 
69  int _cellID0 ;
70  int _cellID1 ;
71  int _amplitude ;
72  int _timeStamp ;
73 
74  }; // class
75 } // namespace IMPL
76 #endif /* ifndef EVENT_RAWCALORIMETERHITIMPL_H */
void setTimeStamp(int time)
Set the time stamp.
Definition: RawCalorimeterHitImpl.cc:49
virtual ~RawCalorimeterHitImpl()
Destructor.
Definition: RawCalorimeterHitImpl.cc:13
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
Definition: RawCalorimeterHitImpl.cc:20
virtual int getAmplitude() const
Returns the amplitude of the hit in ADC counts.
Definition: RawCalorimeterHitImpl.cc:24
Implementation of the real data RawCalorimeterHit.
Definition: RawCalorimeterHitImpl.h:19
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit CHBIT_ID1) of the collection is set...
Definition: RawCalorimeterHitImpl.cc:39
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: RawCalorimeterHitImpl.h:30
RawCalorimeterHitImpl()
Default constructor, initializes values to 0.
Definition: RawCalorimeterHitImpl.cc:5
The generic calorimeter hit for real data (or simulation thereof).
Definition: RawCalorimeterHit.h:31
virtual int getCellID0() const
Returns the detector specific (geometrical) cell id.
Definition: RawCalorimeterHitImpl.cc:16
virtual int getTimeStamp() const
Returns a time stamp for the hit.
Definition: RawCalorimeterHitImpl.cc:28
void setAmplitude(int amplitude)
Sets the amplitude.
Definition: RawCalorimeterHitImpl.cc:44
Controls access to objects.
Definition: AccessChecked.h:17