CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCDigiSimLink.h
Go to the documentation of this file.
1 #ifndef RPCOBJECTS_RPCDIGISIMLINK_H
2 #define RPCOBJECTS_RPCDIGISIMLINK_H
3 
4 #include "boost/cstdint.hpp"
5 #include <map>
9 
11  public:
12  RPCDigiSimLink(std::pair<unsigned int,int> digi,Local3DPoint entryPoint,
13  LocalVector momentumAtEntry,float timeOfFlight,float energyLoss,
14  int particleType,unsigned int detUnitId,unsigned int trackId,
15  EncodedEventId eventId,unsigned short processType)
16  {
17 
18  _entryPoint=entryPoint;
19  _momentumAtEntry=momentumAtEntry;
21  _energyLoss=energyLoss;
23  _detUnitId=detUnitId;
24  _trackId=trackId;
25  _eventId=eventId;
26  _processType=processType;
27  _digi = digi;
28  }
29 
31 
33 
34  unsigned int getStrip() const {return _digi.first;}
35  unsigned int getBx() const {return _digi.second;}
38  float getTimeOfFlight() const{return _timeOfFlight;}
39  float getEnergyLoss() const{return _energyLoss;}
40  int getParticleType() const{return _particleType;}
41  unsigned int getDetUnitId() const{return _detUnitId;}
42  unsigned int getTrackId() const{return _trackId;}
44  unsigned short getProcessType() const{return _processType;}
45 
46  inline bool operator< ( const RPCDigiSimLink& other ) const { return getStrip() < other.getStrip(); }
47 
48  private:
49  std::pair<unsigned int,int> _digi;
50 
54  float _energyLoss;
56  unsigned int _detUnitId;
57  unsigned int _trackId;
59  unsigned short _processType;
60 
61 };
62 #endif
63 
64 
65 
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
Definition: CaloSimInfo.cc:13
tuple particleType