CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPCDigiSimLink.h
Go to the documentation of this file.
1 #ifndef RPCOBJECTS_RPCDIGISIMLINK_H
2 #define RPCOBJECTS_RPCDIGISIMLINK_H
3 
4 #include <map>
8 
10 public:
11  RPCDigiSimLink(std::pair<unsigned int, int> digi,
13  LocalVector momentumAtEntry,
14  float timeOfFlight,
15  float energyLoss,
16  int particleType,
17  unsigned int detUnitId,
18  unsigned int trackId,
19  EncodedEventId eventId,
20  unsigned short processType) {
22  _momentumAtEntry = momentumAtEntry;
24  _energyLoss = energyLoss;
26  _detUnitId = detUnitId;
27  _trackId = trackId;
28  _eventId = eventId;
29  _processType = processType;
30  _digi = digi;
31  }
32 
34 
36 
37  unsigned int getStrip() const { return _digi.first; }
38  unsigned int getBx() const { return _digi.second; }
41  float getTimeOfFlight() const { return _timeOfFlight; }
42  float getEnergyLoss() const { return _energyLoss; }
43  int getParticleType() const { return _particleType; }
44  unsigned int getDetUnitId() const { return _detUnitId; }
45  unsigned int getTrackId() const { return _trackId; }
46  EncodedEventId getEventId() const { return _eventId; }
47  unsigned short getProcessType() const { return _processType; }
48 
49  inline bool operator<(const RPCDigiSimLink& other) const { return getStrip() < other.getStrip(); }
50 
51 private:
52  std::pair<unsigned int, int> _digi;
53 
57  float _energyLoss;
59  unsigned int _detUnitId;
60  unsigned int _trackId;
62  unsigned short _processType;
63 };
64 #endif
void entryPoint(InputDataCPU const &, InputDataGPU &, OutputDataGPU &, ScratchDataGPU &, OutputDataCPU &, ConditionsProducts const &, cudaStream_t, uint32_t const, uint32_t const)
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
Definition: CaloSimInfo.cc:15