CMS 3D CMS Logo

PSimHitMap.h
Go to the documentation of this file.
1 #ifndef MCTruth_PSimHitMap_h
2 #define MCTruth_PSimHitMap_h
3 
9 #include <map>
10 
11 class PSimHitMap {
12 public:
14  sh_token = iC.consumes<CrossingFrame<PSimHit>>(iT);
15  }
16 
17  void fill(const edm::Event &e);
18 
19  const edm::PSimHitContainer &hits(int detId) const;
20 
21  std::vector<int> detsWithHits() const;
22 
23 private:
24  std::map<int, edm::PSimHitContainer> theMap;
26  // edm::InputTag simHitsTag;
28 };
29 
30 #endif
edm::EDGetTokenT
Definition: EDGetToken.h:33
CrossingFrame.h
PSimHitContainer.h
PSimHitMap::sh_token
edm::EDGetTokenT< CrossingFrame< PSimHit > > sh_token
Definition: PSimHitMap.h:27
PSimHitMap::theMap
std::map< int, edm::PSimHitContainer > theMap
Definition: PSimHitMap.h:24
CrossingFrame
Definition: CrossingFrame.h:38
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
PSimHitMap::theEmptyContainer
edm::PSimHitContainer theEmptyContainer
Definition: PSimHitMap.h:25
Event.h
PSimHitMap::detsWithHits
std::vector< int > detsWithHits() const
Definition: PSimHitMap.cc:28
InputTag.h
PSimHitMap::hits
const edm::PSimHitContainer & hits(int detId) const
Definition: PSimHitMap.cc:19
ConsumesCollector.h
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
PSimHitMap::PSimHitMap
PSimHitMap(const edm::InputTag &iT, edm::ConsumesCollector &&iC)
Definition: PSimHitMap.h:13
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
PSimHitMap
Definition: PSimHitMap.h:11
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37