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 
12 {
13  public:
16  {
17  sh_token = iC.consumes<CrossingFrame<PSimHit> >(iT);
18  }
19 
20  void fill(const edm::Event & e);
21 
22  const edm::PSimHitContainer & hits(int detId) const;
23 
24  std::vector<int> detsWithHits() const;
25 
26  private:
27  std::map<int, edm::PSimHitContainer> theMap;
29  // edm::InputTag simHitsTag;
31 };
32 
33 #endif
edm::PSimHitContainer theEmptyContainer
Definition: PSimHitMap.h:28
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
PSimHitMap(const edm::InputTag &iT, edm::ConsumesCollector &&iC)
Definition: PSimHitMap.h:14
const edm::PSimHitContainer & hits(int detId) const
Definition: PSimHitMap.cc:22
edm::EDGetTokenT< CrossingFrame< PSimHit > > sh_token
Definition: PSimHitMap.h:30
std::vector< int > detsWithHits() const
Definition: PSimHitMap.cc:37
std::map< int, edm::PSimHitContainer > theMap
Definition: PSimHitMap.h:27
std::vector< PSimHit > PSimHitContainer