CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTHitAssociator.h
Go to the documentation of this file.
1 #ifndef MCTruth_DTHitAssociator_h
2 #define MCTruth_DTHitAssociator_h
3 
17 
18 #include <vector>
19 #include <map>
20 
22 
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 
32  virtual ~DTHitAssociator(){}
33 
34  std::vector<SimHitIdpr> associateHitId(const TrackingRecHit & hit);
35  std::vector<SimHitIdpr> associateDTHitId(const DTRecHit1D * dtrechit);
36 
37  std::vector<PSimHit> associateHit(const TrackingRecHit & hit);
38 
43 
44  private:
50 
51  bool dumpDT;
55 
56  bool SimHitOK(const edm::ESHandle<DTGeometry> &, const PSimHit &);
57  bool printRtS;
58 
59 };
60 
61 #endif
62 
63 
64 
virtual ~DTHitAssociator()
std::pair< uint32_t, EncodedEventId > SimHitIdpr
std::vector< PSimHit > associateHit(const TrackingRecHit &hit)
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
edm::InputTag DTsimhitsTag
std::pair< PSimHit, bool > PSimHit_withFlag
edm::InputTag DTrechitTag
SimHitMap mapOfSimHit
std::map< DTWireId, std::vector< PSimHit_withFlag > > SimHitMap
edm::InputTag DTdigisimlinkTag
std::vector< SimHitIdpr > associateDTHitId(const DTRecHit1D *dtrechit)
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 > associateHitId(const TrackingRecHit &hit)