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::PSimHitContainer theEmptyContainer
Definition: PSimHitMap.h:25
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:5
PSimHitMap(const edm::InputTag &iT, edm::ConsumesCollector &&iC)
Definition: PSimHitMap.h:13
edm::EDGetTokenT< CrossingFrame< PSimHit > > sh_token
Definition: PSimHitMap.h:27
const edm::PSimHitContainer & hits(int detId) const
Definition: PSimHitMap.cc:20
std::map< int, edm::PSimHitContainer > theMap
Definition: PSimHitMap.h:24
std::vector< int > detsWithHits() const
Definition: PSimHitMap.cc:29
std::vector< PSimHit > PSimHitContainer