CMS 3D CMS Logo

RPCSimHitMatcher.h
Go to the documentation of this file.
1 #ifndef Validation_MuonHits_RPCSimHitMatcher_h
2 #define Validation_MuonHits_RPCSimHitMatcher_h
3 
15 
17 public:
18  // constructor
20 
21  // destructor
23 
24  // initialize the event
25  void init(const edm::Event& e, const edm::EventSetup& eventSetup);
26 
27  // do the matching
28  void match(const SimTrack& t, const SimVertex& v);
29 
30  // partitions' detIds with SimHits
31  std::set<unsigned int> detIds(int type = MuonHitHelper::RPC_ALL) const;
32 
33  // chamber detIds with SimHits
34  std::set<unsigned int> chamberIds(int type = MuonHitHelper::RPC_ALL) const;
35 
36  bool hitStation(int st) const;
37 
38  // number of stations with hits
39  int nStations() const;
40 
41  // calculate average strip number for a provided collection of simhits
43 
44  std::set<int> hitStripsInDetId(unsigned int, int margin_n_strips = 0) const;
45 
46 private:
48 
50 };
51 
52 #endif
RPCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
const std::vector< float > & sim_hits()
Definition: LSTEff.cc:3312
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
std::set< unsigned int > chamberIds(int type=MuonHitHelper::RPC_ALL) const
float simHitsMeanStrip(const edm::PSimHitContainer &sim_hits) const
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
bool hitStation(int st) const
std::set< unsigned int > detIds(int type=MuonHitHelper::RPC_ALL) const
std::vector< PSimHit > PSimHitContainer
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > geomToken_
void match(const SimTrack &t, const SimVertex &v)
do the matching