CMS 3D CMS Logo

GEMHitAssociator.h
Go to the documentation of this file.
1 #ifndef MCTruth_GEMHitAssociator_h
2 #define MCTruth_GEMHitAssociator_h
3 
15 
16 #include <map>
17 #include <set>
18 #include <string>
19 #include <vector>
20 
32 
34 public:
37  typedef std::pair<uint32_t, EncodedEventId> SimHitIdpr;
38 
39  // Constructor with configurable parameters
41  GEMHitAssociator(const edm::Event &e, const edm::EventSetup &eventSetup, const edm::ParameterSet &conf);
42 
43  void initEvent(const edm::Event &, const edm::EventSetup &);
44 
45  // Destructor
47 
48  std::vector<SimHitIdpr> associateRecHit(const GEMRecHit *gemrechit) const;
49 
50 private:
53 
55  bool useGEMs_;
58 
62 
63  std::map<unsigned int, edm::PSimHitContainer> _SimHitMap;
64 };
65 
66 #endif
edm::DetSetVector
Definition: DetSetVector.h:61
Handle.h
ESHandle.h
edm::DetSet< StripDigiSimLink >
edm::EDGetTokenT
Definition: EDGetToken.h:33
GEMHitAssociator::_SimHitMap
std::map< unsigned int, edm::PSimHitContainer > _SimHitMap
Definition: GEMHitAssociator.h:63
CrossingFrame.h
PSimHitContainer.h
GEMHitAssociator::GEMsimhitsToken_
edm::EDGetTokenT< edm::PSimHitContainer > GEMsimhitsToken_
Definition: GEMHitAssociator.h:60
GEMHitAssociator::initEvent
void initEvent(const edm::Event &, const edm::EventSetup &)
Definition: GEMHitAssociator.cc:34
GEMHitAssociator::useGEMs_
bool useGEMs_
Definition: GEMHitAssociator.h:55
GEMHitAssociator::GEMsimhitsXFToken_
edm::EDGetTokenT< CrossingFrame< PSimHit > > GEMsimhitsXFToken_
Definition: GEMHitAssociator.h:59
TrackingRecHit.h
GEMHitAssociator::DigiSimLinks
edm::DetSetVector< StripDigiSimLink > DigiSimLinks
Definition: GEMHitAssociator.h:35
PSimHit.h
GEMHitAssociator::GEMHitAssociator
GEMHitAssociator(const edm::ParameterSet &, edm::ConsumesCollector &&ic)
Definition: GEMHitAssociator.cc:6
MixCollection.h
GEMHitAssociator::SimHitIdpr
std::pair< uint32_t, EncodedEventId > SimHitIdpr
Definition: GEMHitAssociator.h:37
GEMHitAssociator::crossingframe
bool crossingframe
Definition: GEMHitAssociator.h:54
GEMHitAssociator::GEMsimhitsTag
edm::InputTag GEMsimhitsTag
Definition: GEMHitAssociator.h:56
GEMHitAssociator::associateRecHit
std::vector< SimHitIdpr > associateRecHit(const GEMRecHit *gemrechit) const
Definition: GEMHitAssociator.cc:70
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
GEMHitAssociator::LayerLinks
edm::DetSet< StripDigiSimLink > LayerLinks
Definition: GEMHitAssociator.h:36
GEMHitAssociator::GEMdigisimlinkToken_
edm::EDGetTokenT< edm::DetSetVector< StripDigiSimLink > > GEMdigisimlinkToken_
Definition: GEMHitAssociator.h:61
GEMHitAssociator::GEMsimhitsXFTag
edm::InputTag GEMsimhitsXFTag
Definition: GEMHitAssociator.h:57
GEMRecHitCollection.h
edm::EventSetup
Definition: EventSetup.h:57
DetSetVector.h
MuonSubdetId.h
InputTag.h
GEMGeometry.h
GEMDetId.h
GEMHitAssociator::GEMdigisimlinkTag
edm::InputTag GEMdigisimlinkTag
Definition: GEMHitAssociator.h:52
GEMHitAssociator::~GEMHitAssociator
~GEMHitAssociator()
Definition: GEMHitAssociator.h:46
DetId.h
GEMSegmentCollection.h
GEMHitAssociator::theDigiSimLinks
const DigiSimLinks * theDigiSimLinks
Definition: GEMHitAssociator.h:51
GEMRecHit
Definition: GEMRecHit.h:14
GEMDigiCollection.h
ConsumesCollector.h
ParameterSet.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
EncodedEventId.h
GEMHitAssociator
Definition: GEMHitAssociator.h:33