CMS 3D CMS Logo

TrackingParticleNumberOfLayers.h
Go to the documentation of this file.
1 #ifndef SimGeneral_TrackingAnalysis_TrackingParticleNumberOfLayers_h
2 #define SimGeneral_TrackingAnalysis_TrackingParticleNumberOfLayers_h
3 
5 
9 
45 public:
47  const std::vector<edm::EDGetTokenT<std::vector<PSimHit>>> &simHitTokens);
48 
50  std::tuple<std::unique_ptr<edm::ValueMap<unsigned int>>,
51  std::unique_ptr<edm::ValueMap<unsigned int>>,
52  std::unique_ptr<edm::ValueMap<unsigned int>>>
53  calculate(const edm::Handle<TrackingParticleCollection> &tps, const edm::EventSetup &iSetup) const;
54 
55 private:
56  // used as multimap, but faster
57  std::vector<std::pair<unsigned int, const PSimHit *>> trackIdToHitPtr_;
58 };
59 
60 #endif
TrackingParticleNumberOfLayers(const edm::Event &iEvent, const std::vector< edm::EDGetTokenT< std::vector< PSimHit >>> &simHitTokens)
int iEvent
Definition: GenABIO.cc:224
std::vector< std::pair< unsigned int, const PSimHit * > > trackIdToHitPtr_
std::tuple< std::unique_ptr< edm::ValueMap< unsigned int > >, std::unique_ptr< edm::ValueMap< unsigned int > >, std::unique_ptr< edm::ValueMap< unsigned int > > > calculate(const edm::Handle< TrackingParticleCollection > &tps, const edm::EventSetup &iSetup) const