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 
13 
15  public:
16  // constructor
18 
19  // destructor
21 
22  // initialize the event
23  void init(const edm::Event& e, const edm::EventSetup& eventSetup);
24 
25  // do the matching
26  void match(const SimTrack& t, const SimVertex& v);
27 
28  // partitions' detIds with SimHits
29  std::set<unsigned int> detIds(int type = MuonHitHelper::RPC_ALL) const;
30 
31  // chamber detIds with SimHits
32  std::set<unsigned int> chamberIds(int type = MuonHitHelper::RPC_ALL) const;
33 
34  bool hitStation(int st) const;
35 
36  // number of stations with hits
37  int nStations() const;
38 
39  // calculate average strip number for a provided collection of simhits
40  float simHitsMeanStrip(const edm::PSimHitContainer& sim_hits) const;
41 
42  std::set<int> hitStripsInDetId(unsigned int, int margin_n_strips = 0) const;
43 
44  private:
46 
48 };
49 
50 #endif
type
Definition: HCALResponse.h:21
std::set< unsigned int > detIds(int type=MuonHitHelper::RPC_ALL) const
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
RPCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
int nStations() const
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
edm::ESHandle< RPCGeometry > rpc_geom_
std::vector< PSimHit > PSimHitContainer
bool hitStation(int st) const
void match(const SimTrack &t, const SimVertex &v)
do the matching