CMS 3D CMS Logo

CTPPSFastRecHit.h
Go to the documentation of this file.
1 #ifndef FastSimDataFormats_CTPPSFastSim_CTPPSFastRecHit_H
2 #define FastSimDataFormats_CTPPSFastSim_CTPPSFastRecHit_H
3 
6 
7 #include <vector>
8 
10  public:
11  //destructor
12  // ~CTPPSFastRecHit() {}
14  // constructor
15  // requires the DetId, the hit position, the ToF and the CellId
16  // For the Tracker, ToF and CellId = 0
17  // For the timing x = x_CellId, y = y_CellId, z = z_detector
18 
19  CTPPSFastRecHit(const Local3DPoint& entry, unsigned int detId, float tof, unsigned int cellId):
20  theEntryPoint( entry),
21  theDetUnitId( detId),
22  theTof(tof),
23  theCellId( cellId) {}
26 
27  /* Time of flight in nanoseconds from the primary interaction
28  * to the entry point. Always positive in a PSimHit,
29  * but may become negative in a SimHit due to bunch assignment.
30  */
31  float timeOfFlight() const {return tof();}
32 
34  float tof() const {return theTof;}
35 
36  /* The DetUnit identifier, to be interpreted in the context of the
37  * detector system that produced the hit.
38  * For CTPPS its content has: Detector(CTPPS), SubDet (Tracker or Timing)
39  * ArmF(z>0)/ArmB(z<0), Pot and Plane (= 0)
40  */
41  unsigned int detUnitId() const {return theDetUnitId;}
42  //the ToF cell number
43  unsigned int cellId() const {return theCellId;}
44 
45  void setTof(float tof) {theTof=tof;}
46 
48 
49  void setDetUnitId(unsigned int detId){theDetUnitId = detId;}
50 
51  void setCellId(unsigned int cellId){theCellId = cellId;}
52 
53 
54  protected:
55  // properties
56  Local3DPoint theEntryPoint; // position at entry
57  // association
58  unsigned int theDetUnitId;
59  float theTof; // Time Of Flight
60  unsigned int theCellId;
61 };
62 
63 
64 #endif //CTPPSFastRecHit_H
unsigned int theDetUnitId
CTPPSFastRecHit(const Local3DPoint &entry, unsigned int detId, float tof, unsigned int cellId)
void setTof(float tof)
float tof() const
deprecated name for timeOfFlight()
void setCellId(unsigned int cellId)
unsigned int cellId() const
unsigned int detUnitId() const
Local3DPoint theEntryPoint
void setDetUnitId(unsigned int detId)
float timeOfFlight() const
Local3DPoint entryPoint() const
Entry point in the local Det frame.
unsigned int theCellId
void setLocal3DPoint(const Local3DPoint &entry)