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 
10 class TrackerTopology;
11 
47 public:
49  const std::vector<edm::EDGetTokenT<std::vector<PSimHit>>> &simHitTokens);
50 
52  std::tuple<std::unique_ptr<edm::ValueMap<unsigned int>>,
53  std::unique_ptr<edm::ValueMap<unsigned int>>,
54  std::unique_ptr<edm::ValueMap<unsigned int>>>
56 
57 private:
58  // used as multimap, but faster
59  std::vector<std::pair<unsigned int, const PSimHit *>> trackIdToHitPtr_;
60 };
61 
62 #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 TrackerTopology &tTopo) const