File indexing completed on 2024-04-06 12:11:11
0001 #ifndef FastSimDataFormats_CTPPSFastSim_CTPPSFastRecHit_H
0002 #define FastSimDataFormats_CTPPSFastSim_CTPPSFastRecHit_H
0003
0004 #include "DataFormats/DetId/interface/DetId.h"
0005 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0006
0007 #include <vector>
0008
0009 class CTPPSFastRecHit {
0010 public:
0011
0012
0013 CTPPSFastRecHit() : theDetUnitId(0) {}
0014
0015
0016
0017
0018
0019 CTPPSFastRecHit(const Local3DPoint& entry, unsigned int detId, float tof, unsigned int cellId)
0020 : theEntryPoint(entry), theDetUnitId(detId), theTof(tof), theCellId(cellId) {}
0021
0022 Local3DPoint entryPoint() const { return theEntryPoint; }
0023
0024
0025
0026
0027
0028 float timeOfFlight() const { return tof(); }
0029
0030
0031 float tof() const { return theTof; }
0032
0033
0034
0035
0036
0037
0038 unsigned int detUnitId() const { return theDetUnitId; }
0039
0040 unsigned int cellId() const { return theCellId; }
0041
0042 void setTof(float tof) { theTof = tof; }
0043
0044 void setLocal3DPoint(const Local3DPoint& entry) { theEntryPoint = entry; }
0045
0046 void setDetUnitId(unsigned int detId) { theDetUnitId = detId; }
0047
0048 void setCellId(unsigned int cellId) { theCellId = cellId; }
0049
0050 protected:
0051
0052 Local3DPoint theEntryPoint;
0053
0054 unsigned int theDetUnitId;
0055 float theTof;
0056 unsigned int theCellId;
0057 };
0058
0059 #endif