CMS 3D CMS Logo

DTHitAssociator.h
Go to the documentation of this file.
1 #ifndef MCTruth_DTHitAssociator_h
2 #define MCTruth_DTHitAssociator_h
3 
18 
19 #include <map>
20 #include <vector>
21 
23 public:
24  typedef std::pair<uint32_t, EncodedEventId> SimHitIdpr;
25  typedef std::pair<PSimHit, bool> PSimHit_withFlag;
26  typedef std::map<DTWireId, std::vector<PSimHit_withFlag>> SimHitMap;
27  typedef std::map<DTWireId, std::vector<DTRecHit1DPair>> RecHitMap;
28  typedef std::map<DTWireId, std::vector<DTDigi>> DigiMap;
29  typedef std::map<DTWireId, std::vector<DTDigiSimLink>> LinksMap;
30 
31  DTHitAssociator(const edm::Event &, const edm::EventSetup &, const edm::ParameterSet &, bool printRtS);
33 
34  void initEvent(const edm::Event &, const edm::EventSetup &);
35 
36  virtual ~DTHitAssociator() {}
37 
38  std::vector<SimHitIdpr> associateHitId(const TrackingRecHit &hit) const;
39  std::vector<SimHitIdpr> associateDTHitId(const DTRecHit1D *dtrechit) const;
40 
41  std::vector<PSimHit> associateHit(const TrackingRecHit &hit) const;
42 
43  SimHitMap mapOfSimHit;
44  RecHitMap mapOfRecHit;
45  DigiMap mapOfDigi;
46  LinksMap mapOfLinks;
47 
48 private:
54 
55  bool dumpDT;
59 
60  bool SimHitOK(const edm::ESHandle<DTGeometry> &, const PSimHit &);
61  bool printRtS;
62 };
63 
64 #endif
virtual ~DTHitAssociator()
std::vector< SimHitIdpr > associateHitId(const TrackingRecHit &hit) const
std::pair< uint32_t, EncodedEventId > SimHitIdpr
std::map< DTWireId, std::vector< DTRecHit1DPair > > RecHitMap
RecHitMap mapOfRecHit
edm::InputTag DTdigiTag
std::map< DTWireId, std::vector< DTDigi > > DigiMap
std::map< DTWireId, std::vector< DTDigiSimLink > > LinksMap
std::vector< PSimHit > associateHit(const TrackingRecHit &hit) const
edm::InputTag DTsimhitsTag
edm::InputTag DTrechitTag
SimHitMap mapOfSimHit
std::map< DTWireId, std::vector< PSimHit_withFlag > > SimHitMap
edm::InputTag DTdigisimlinkTag
std::pair< PSimHit, bool > PSimHit_withFlag
void initEvent(const edm::Event &, const edm::EventSetup &)
DTHitAssociator(const edm::Event &, const edm::EventSetup &, const edm::ParameterSet &, bool printRtS)
edm::InputTag DTsimhitsXFTag
bool SimHitOK(const edm::ESHandle< DTGeometry > &, const PSimHit &)
std::vector< SimHitIdpr > associateDTHitId(const DTRecHit1D *dtrechit) const