test
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 
18 
19 #include <vector>
20 #include <map>
21 
23 
24  public:
25  typedef std::pair <uint32_t, EncodedEventId> SimHitIdpr;
26  typedef std::pair<PSimHit,bool> PSimHit_withFlag;
27  typedef std::map<DTWireId, std::vector<PSimHit_withFlag> > SimHitMap;
28  typedef std::map<DTWireId, std::vector<DTRecHit1DPair> > RecHitMap;
29  typedef std::map<DTWireId, std::vector<DTDigi> > DigiMap;
30  typedef std::map<DTWireId, std::vector<DTDigiSimLink> > LinksMap;
31 
34 
35  void initEvent(const edm::Event&, const edm::EventSetup& );
36 
37  virtual ~DTHitAssociator(){}
38 
39  std::vector<SimHitIdpr> associateHitId(const TrackingRecHit & hit) const;
40  std::vector<SimHitIdpr> associateDTHitId(const DTRecHit1D * dtrechit) const;
41 
42  std::vector<PSimHit> associateHit(const TrackingRecHit & hit) const;
43 
48 
49  private:
55 
56  bool dumpDT;
60 
61  bool SimHitOK(const edm::ESHandle<DTGeometry> &, const PSimHit &);
62  bool printRtS;
63 
64 };
65 
66 #endif
67 
68 
69 
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
std::pair< PSimHit, bool > PSimHit_withFlag
edm::InputTag DTrechitTag
SimHitMap mapOfSimHit
std::map< DTWireId, std::vector< PSimHit_withFlag > > SimHitMap
edm::InputTag DTdigisimlinkTag
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