CMS 3D CMS Logo

RPCHitAssociator.h
Go to the documentation of this file.
1 #ifndef MCTruth_RPCHitAssociator_h
2 #define MCTruth_RPCHitAssociator_h
3 
15 
16 #include <map>
17 #include <set>
18 #include <string>
19 #include <vector>
20 
31 
33 public:
35  typedef std::pair<uint32_t, EncodedEventId> SimHitIdpr;
36 
37  // Constructor with configurable parameters
39  RPCHitAssociator(const edm::Event &e, const edm::EventSetup &eventSetup, const edm::ParameterSet &conf);
40 
41  void initEvent(const edm::Event &, const edm::EventSetup &);
42 
43  // Destructor
45 
46  std::vector<SimHitIdpr> associateRecHit(const TrackingRecHit &hit) const;
47  std::set<RPCDigiSimLink> findRPCDigiSimLink(uint32_t rpcDetId, int strip, int bx) const;
48  // const PSimHit* linkToSimHit(RPCDigiSimLink link);
49 
50 private:
53 
57 
61 
62  std::map<unsigned int, edm::PSimHitContainer> _SimHitMap;
63 };
64 
65 #endif
edm::DetSetVector< RPCDigiSimLink >
Handle.h
ESHandle.h
RPCHitAssociator::_thelinkDigis
edm::Handle< edm::DetSetVector< RPCDigiSimLink > > _thelinkDigis
Definition: RPCHitAssociator.h:51
RPCHitAssociator::initEvent
void initEvent(const edm::Event &, const edm::EventSetup &)
Definition: RPCHitAssociator.cc:32
edm::EDGetTokenT
Definition: EDGetToken.h:33
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CrossingFrame.h
PSimHitContainer.h
RPCHitAssociator::crossingframe
bool crossingframe
Definition: RPCHitAssociator.h:54
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
RPCHitAssociator::RPCsimhitsToken_
edm::EDGetTokenT< edm::PSimHitContainer > RPCsimhitsToken_
Definition: RPCHitAssociator.h:59
edm::Handle
Definition: AssociativeIterator.h:50
RPCHitAssociator::RPCHitAssociator
RPCHitAssociator(const edm::ParameterSet &, edm::ConsumesCollector &&ic)
Definition: RPCHitAssociator.cc:6
RPCHitAssociator::RPCdigisimlinkToken_
edm::EDGetTokenT< edm::DetSetVector< RPCDigiSimLink > > RPCdigisimlinkToken_
Definition: RPCHitAssociator.h:60
TrackingRecHit.h
PSimHit.h
RPCHitAssociator::SimHitIdpr
std::pair< uint32_t, EncodedEventId > SimHitIdpr
Definition: RPCHitAssociator.h:35
RPCHitAssociator::RPCsimhitsXFTag
edm::InputTag RPCsimhitsXFTag
Definition: RPCHitAssociator.h:56
MixCollection.h
RPCHitAssociator::RPCDigiSimLinks
edm::DetSetVector< RPCDigiSimLink > RPCDigiSimLinks
Definition: RPCHitAssociator.h:34
RPCDetId.h
RPCRecHitCollection.h
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
RPCHitAssociator::associateRecHit
std::vector< SimHitIdpr > associateRecHit(const TrackingRecHit &hit) const
Definition: RPCHitAssociator.cc:68
RPCHitAssociator::findRPCDigiSimLink
std::set< RPCDigiSimLink > findRPCDigiSimLink(uint32_t rpcDetId, int strip, int bx) const
Definition: RPCHitAssociator.cc:101
edm::EventSetup
Definition: EventSetup.h:57
DetSetVector.h
MuonSubdetId.h
InputTag.h
TrackingRecHit
Definition: TrackingRecHit.h:21
RPCHitAssociator::RPCdigisimlinkTag
edm::InputTag RPCdigisimlinkTag
Definition: RPCHitAssociator.h:52
DetId.h
RPCHitAssociator
Definition: RPCHitAssociator.h:32
RPCDigiCollection.h
RPCHitAssociator::~RPCHitAssociator
~RPCHitAssociator()
Definition: RPCHitAssociator.h:44
ConsumesCollector.h
RPCHitAssociator::_SimHitMap
std::map< unsigned int, edm::PSimHitContainer > _SimHitMap
Definition: RPCHitAssociator.h:62
RPCHitAssociator::RPCsimhitsTag
edm::InputTag RPCsimhitsTag
Definition: RPCHitAssociator.h:55
ParameterSet.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
RPCGeometry.h
RPCHitAssociator::RPCsimhitsXFToken_
edm::EDGetTokenT< CrossingFrame< PSimHit > > RPCsimhitsXFToken_
Definition: RPCHitAssociator.h:58
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
hit
Definition: SiStripHitEffFromCalibTree.cc:88
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
EncodedEventId.h