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
SimVertex
Definition: SimVertex.h:5
RPCSimHitMatcher::match
void match(const SimTrack &t, const SimVertex &v)
do the matching
Definition: RPCSimHitMatcher.cc:29
RPCSimHitMatcher::RPCSimHitMatcher
RPCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
Definition: RPCSimHitMatcher.cc:6
findQualityFiles.v
v
Definition: findQualityFiles.py:179
MuonSimHitMatcher.h
RPCSimHitMatcher
Definition: RPCSimHitMatcher.h:14
RPCSimHitMatcher::chamberIds
std::set< unsigned int > chamberIds(int type=MuonHitHelper::RPC_ALL) const
Definition: RPCSimHitMatcher.cc:92
edm::ESHandle< RPCGeometry >
RPCSimHitMatcher::init
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
Definition: RPCSimHitMatcher.cc:17
OrderedSet.t
t
Definition: OrderedSet.py:90
RPCSimHitMatcher::nStations
int nStations() const
Definition: RPCSimHitMatcher.cc:117
MuonHitHelper::RPC_ALL
Definition: MuonHitHelper.h:34
edm::ParameterSet
Definition: ParameterSet.h:36
MuonSimHitMatcher
Definition: MuonSimHitMatcher.h:33
RPCSimHitMatcher::hitStripsInDetId
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
Definition: RPCSimHitMatcher.cc:136
RPCSimHitMatcher::rpc_geom_
edm::ESHandle< RPCGeometry > rpc_geom_
Definition: RPCSimHitMatcher.h:47
RPCSimHitMatcher::simHitsMeanStrip
float simHitsMeanStrip(const edm::PSimHitContainer &sim_hits) const
Definition: RPCSimHitMatcher.cc:119
edm::EventSetup
Definition: EventSetup.h:57
type
type
Definition: HCALResponse.h:21
RPCSimHitMatcher::matchSimHitsToSimTrack
void matchSimHitsToSimTrack()
Definition: RPCSimHitMatcher.cc:58
SimTrack
Definition: SimTrack.h:6
RPCSimHitMatcher::hitStation
bool hitStation(int st) const
Definition: RPCSimHitMatcher.cc:106
options_cfi.eventSetup
eventSetup
Definition: options_cfi.py:12
RPCSimHitMatcher::~RPCSimHitMatcher
~RPCSimHitMatcher()
Definition: RPCSimHitMatcher.h:20
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
edm::Event
Definition: Event.h:73
RPCGeometry.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
RPCSimHitMatcher::detIds
std::set< unsigned int > detIds(int type=MuonHitHelper::RPC_ALL) const
Definition: RPCSimHitMatcher.cc:78
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37