test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
46  TrackingParticleNumberOfLayers(const edm::Event& iEvent, const std::vector<edm::EDGetTokenT<std::vector<PSimHit> > >& simHitTokens);
47 
48  enum {
52  };
53  std::tuple<std::unique_ptr<edm::ValueMap<unsigned int>>,
54  std::unique_ptr<edm::ValueMap<unsigned int>>,
55  std::unique_ptr<edm::ValueMap<unsigned int>>>
56  calculate(const edm::Handle<TrackingParticleCollection>& tps, const edm::EventSetup& iSetup) const;
57 
58 private:
59  // used as multimap, but faster
60  std::vector<std::pair<unsigned int, const PSimHit *>> trackIdToHitPtr_;
61 };
62 
63 #endif
int iEvent
Definition: GenABIO.cc:230
std::vector< std::pair< unsigned int, const PSimHit * > > trackIdToHitPtr_
TrackingParticleNumberOfLayers(const edm::Event &iEvent, const std::vector< edm::EDGetTokenT< std::vector< PSimHit > > > &simHitTokens)
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