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
CTPPSFastRecHit::entryPoint
Local3DPoint entryPoint() const
Entry point in the local Det frame.
Definition: CTPPSFastRecHit.h:22
CTPPSFastRecHit::detUnitId
unsigned int detUnitId() const
Definition: CTPPSFastRecHit.h:38
mps_splice.entry
entry
Definition: mps_splice.py:68
CTPPSFastRecHit::theCellId
unsigned int theCellId
Definition: CTPPSFastRecHit.h:56
CTPPSFastRecHit::cellId
unsigned int cellId() const
Definition: CTPPSFastRecHit.h:40
CTPPSFastRecHit::setTof
void setTof(float tof)
Definition: CTPPSFastRecHit.h:42
Point3DBase< float, LocalTag >
CTPPSFastRecHit::setLocal3DPoint
void setLocal3DPoint(const Local3DPoint &entry)
Definition: CTPPSFastRecHit.h:44
CTPPSFastRecHit::timeOfFlight
float timeOfFlight() const
Definition: CTPPSFastRecHit.h:28
CTPPSFastRecHit::setCellId
void setCellId(unsigned int cellId)
Definition: CTPPSFastRecHit.h:48
CTPPSFastRecHit::theDetUnitId
unsigned int theDetUnitId
Definition: CTPPSFastRecHit.h:54
CTPPSFastRecHit::CTPPSFastRecHit
CTPPSFastRecHit()
Definition: CTPPSFastRecHit.h:13
CTPPSFastRecHit::setDetUnitId
void setDetUnitId(unsigned int detId)
Definition: CTPPSFastRecHit.h:46
CTPPSFastRecHit::theEntryPoint
Local3DPoint theEntryPoint
Definition: CTPPSFastRecHit.h:52
CTPPSFastRecHit::tof
float tof() const
deprecated name for timeOfFlight()
Definition: CTPPSFastRecHit.h:31
DetId.h
LocalPoint.h
CTPPSFastRecHit::CTPPSFastRecHit
CTPPSFastRecHit(const Local3DPoint &entry, unsigned int detId, float tof, unsigned int cellId)
Definition: CTPPSFastRecHit.h:19
CTPPSFastRecHit
Definition: CTPPSFastRecHit.h:9
CTPPSFastRecHit::theTof
float theTof
Definition: CTPPSFastRecHit.h:55