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::nPixelLayers
Definition: TrackingParticleNumberOfLayers.h:49
TrackingParticleNumberOfLayers
Definition: TrackingParticleNumberOfLayers.h:44
edm::EDGetTokenT
Definition: EDGetToken.h:33
TrackingParticleNumberOfLayers::nStripMonoAndStereoLayers
Definition: TrackingParticleNumberOfLayers.h:49
edm::Handle< TrackingParticleCollection >
TrackingParticleNumberOfLayers::nTrackerLayers
Definition: TrackingParticleNumberOfLayers.h:49
PSimHit.h
TrackingParticleNumberOfLayers::calculate
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
Definition: TrackingParticleNumberOfLayers.cc:49
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::EventSetup
Definition: EventSetup.h:58
ValueMap.h
TrackingParticle.h
TrackingParticleNumberOfLayers::trackIdToHitPtr_
std::vector< std::pair< unsigned int, const PSimHit * > > trackIdToHitPtr_
Definition: TrackingParticleNumberOfLayers.h:57
edm::Event
Definition: Event.h:73
TrackingParticleNumberOfLayers::TrackingParticleNumberOfLayers
TrackingParticleNumberOfLayers(const edm::Event &iEvent, const std::vector< edm::EDGetTokenT< std::vector< PSimHit >>> &simHitTokens)
Definition: TrackingParticleNumberOfLayers.cc:31