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)
23 
24  /* Time of flight in nanoseconds from the primary interaction
25  * to the entry point. Always positive in a PSimHit,
26  * but may become negative in a SimHit due to bunch assignment.
27  */
28  float timeOfFlight() const { return tof(); }
29 
31  float tof() const { return theTof; }
32 
33  /* The DetUnit identifier, to be interpreted in the context of the
34  * detector system that produced the hit.
35  * For CTPPS its content has: Detector(CTPPS), SubDet (Tracker or Timing)
36  * ArmF(z>0)/ArmB(z<0), Pot and Plane (= 0)
37  */
38  unsigned int detUnitId() const { return theDetUnitId; }
39  //the ToF cell number
40  unsigned int cellId() const { return theCellId; }
41 
42  void setTof(float tof) { theTof = tof; }
43 
45 
46  void setDetUnitId(unsigned int detId) { theDetUnitId = detId; }
47 
48  void setCellId(unsigned int cellId) { theCellId = cellId; }
49 
50 protected:
51  // properties
52  Local3DPoint theEntryPoint; // position at entry
53  // association
54  unsigned int theDetUnitId;
55  float theTof; // Time Of Flight
56  unsigned int theCellId;
57 };
58 
59 #endif //CTPPSFastRecHit_H
float timeOfFlight() const
Local3DPoint entryPoint() const
Entry point in the local Det frame.
unsigned int theDetUnitId
unsigned int detUnitId() const
CTPPSFastRecHit(const Local3DPoint &entry, unsigned int detId, float tof, unsigned int cellId)
void setTof(float tof)
void setCellId(unsigned int cellId)
Local3DPoint theEntryPoint
void setDetUnitId(unsigned int detId)
unsigned int cellId() const
float tof() const
deprecated name for timeOfFlight()
unsigned int theCellId
void setLocal3DPoint(const Local3DPoint &entry)