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 
47 
48 private:
54 
55  bool dumpDT;
59 
60  bool SimHitOK(const edm::ESHandle<DTGeometry> &, const PSimHit &);
61  bool printRtS;
62 };
63 
64 #endif
DTHitAssociator::DTdigisimlinkTag
edm::InputTag DTdigisimlinkTag
Definition: DTHitAssociator.h:52
Handle.h
DTHitAssociator::LinksMap
std::map< DTWireId, std::vector< DTDigiSimLink > > LinksMap
Definition: DTHitAssociator.h:29
ESHandle.h
DTRecHitCollection.h
DTRecHit1D.h
DTHitAssociator::crossingframe
bool crossingframe
Definition: DTHitAssociator.h:56
PSimHitContainer.h
DTRecHit1D
Definition: DTRecHit1D.h:25
DTHitAssociator::dumpDT
bool dumpDT
Definition: DTHitAssociator.h:55
DTHitAssociator::associateDTHitId
std::vector< SimHitIdpr > associateDTHitId(const DTRecHit1D *dtrechit) const
Definition: DTHitAssociator.cc:289
dtrechit
Definition: DTRecHitQuality.cc:23
DTHitAssociator::mapOfLinks
LinksMap mapOfLinks
Definition: DTHitAssociator.h:46
DTHitAssociator::associateHitId
std::vector< SimHitIdpr > associateHitId(const TrackingRecHit &hit) const
Definition: DTHitAssociator.cc:275
DTHitAssociator::DTrechitTag
edm::InputTag DTrechitTag
Definition: DTHitAssociator.h:53
TrackingRecHit.h
DTHitAssociator
Definition: DTHitAssociator.h:22
DTHitAssociator::printRtS
bool printRtS
Definition: DTHitAssociator.h:61
DTHitAssociator::DTdigiTag
edm::InputTag DTdigiTag
Definition: DTHitAssociator.h:51
edm::ESHandle< DTGeometry >
DTHitAssociator::DTsimhitsTag
edm::InputTag DTsimhitsTag
Definition: DTHitAssociator.h:49
DTHitAssociator::~DTHitAssociator
virtual ~DTHitAssociator()
Definition: DTHitAssociator.h:36
DTGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTHitAssociator::DigiMap
std::map< DTWireId, std::vector< DTDigi > > DigiMap
Definition: DTHitAssociator.h:28
DTHitAssociator::links_exist
bool links_exist
Definition: DTHitAssociator.h:57
edm::EventSetup
Definition: EventSetup.h:58
DTHitAssociator::SimHitMap
std::map< DTWireId, std::vector< PSimHit_withFlag > > SimHitMap
Definition: DTHitAssociator.h:26
InputTag.h
DTHitAssociator::mapOfRecHit
RecHitMap mapOfRecHit
Definition: DTHitAssociator.h:44
TrackingRecHit
Definition: TrackingRecHit.h:21
DTHitAssociator::associateHit
std::vector< PSimHit > associateHit(const TrackingRecHit &hit) const
Definition: DTHitAssociator.cc:358
DTWireId.h
DTHitAssociator::DTHitAssociator
DTHitAssociator(const edm::Event &, const edm::EventSetup &, const edm::ParameterSet &, bool printRtS)
Definition: DTHitAssociator.cc:48
DTHitAssociator::associatorByWire
bool associatorByWire
Definition: DTHitAssociator.h:58
DTHitAssociator::mapOfSimHit
SimHitMap mapOfSimHit
Definition: DTHitAssociator.h:43
DTHitAssociator::SimHitIdpr
std::pair< uint32_t, EncodedEventId > SimHitIdpr
Definition: DTHitAssociator.h:24
DTHitAssociator::mapOfDigi
DigiMap mapOfDigi
Definition: DTHitAssociator.h:45
DTDigiSimLinkCollection.h
DTHitAssociator::PSimHit_withFlag
std::pair< PSimHit, bool > PSimHit_withFlag
Definition: DTHitAssociator.h:25
ConsumesCollector.h
DTDigiCollection.h
PSimHit
Definition: PSimHit.h:15
DTHitAssociator::RecHitMap
std::map< DTWireId, std::vector< DTRecHit1DPair > > RecHitMap
Definition: DTHitAssociator.h:27
edm::Event
Definition: Event.h:73
DTHitAssociator::initEvent
void initEvent(const edm::Event &, const edm::EventSetup &)
Definition: DTHitAssociator.cc:75
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
DTHitAssociator::SimHitOK
bool SimHitOK(const edm::ESHandle< DTGeometry > &, const PSimHit &)
Definition: DTHitAssociator.cc:406
hit
Definition: SiStripHitEffFromCalibTree.cc:88
DTHitAssociator::DTsimhitsXFTag
edm::InputTag DTsimhitsXFTag
Definition: DTHitAssociator.h:50
EncodedEventId.h