LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RawCalorimeterHitImpl.h
Go to the documentation of this file.
1 #ifndef EVENT_RAWCALORIMETERHITIMPL_H
2 #define EVENT_RAWCALORIMETERHITIMPL_H 1
3 
4 
5 #include "EVENT/MCParticle.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.
virtual ~RawCalorimeterHitImpl()
Destructor.
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
virtual int getAmplitude() const
Returns the amplitude of the hit in ADC counts.
Implementation of the real data RawCalorimeterHit.
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit CHBIT_ID1) of the collection is set...
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
RawCalorimeterHitImpl()
Default constructor, initializes values to 0.
The generic calorimeter hit for real data (or simulation thereof).
virtual int simpleUID() const
Definition: AccessChecked.h:26
virtual int getCellID0() const
Returns the detector specific (geometrical) cell id.
virtual int getTimeStamp() const
Returns a time stamp for the hit.
void setAmplitude(int amplitude)
Sets the amplitude.
Controls access to objects.
Definition: AccessChecked.h:18