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
42  float simHitsMeanStrip(const edm::PSimHitContainer& sim_hits) const;
43 
44  std::set<int> hitStripsInDetId(unsigned int, int margin_n_strips = 0) const;
45 
46 private:
48 
50 };
51 
52 #endif
SimVertex
Definition: SimVertex.h:5
RPCSimHitMatcher::match
void match(const SimTrack &t, const SimVertex &v)
do the matching
Definition: RPCSimHitMatcher.cc:24
RPCSimHitMatcher::RPCSimHitMatcher
RPCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
Definition: RPCSimHitMatcher.cc:6
findQualityFiles.v
v
Definition: findQualityFiles.py:179
ESGetToken.h
MuonSimHitMatcher.h
RPCSimHitMatcher
Definition: RPCSimHitMatcher.h:16
RPCSimHitMatcher::chamberIds
std::set< unsigned int > chamberIds(int type=MuonHitHelper::RPC_ALL) const
Definition: RPCSimHitMatcher.cc:85
RPCSimHitMatcher::init
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
Definition: RPCSimHitMatcher.cc:18
RPCSimHitMatcher::nStations
int nStations() const
Definition: RPCSimHitMatcher.cc:110
MuonHitHelper::RPC_ALL
Definition: MuonHitHelper.h:34
edm::ParameterSet
Definition: ParameterSet.h:47
MuonSimHitMatcher
Definition: MuonSimHitMatcher.h:32
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
RPCSimHitMatcher::hitStripsInDetId
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
Definition: RPCSimHitMatcher.cc:129
RPCSimHitMatcher::simHitsMeanStrip
float simHitsMeanStrip(const edm::PSimHitContainer &sim_hits) const
Definition: RPCSimHitMatcher.cc:112
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< RPCGeometry, MuonGeometryRecord >
RPCSimHitMatcher::matchSimHitsToSimTrack
void matchSimHitsToSimTrack()
Definition: RPCSimHitMatcher.cc:51
SimTrack
Definition: SimTrack.h:9
RPCSimHitMatcher::geomToken_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > geomToken_
Definition: RPCSimHitMatcher.h:49
RPCSimHitMatcher::hitStation
bool hitStation(int st) const
Definition: RPCSimHitMatcher.cc:99
RPCSimHitMatcher::~RPCSimHitMatcher
~RPCSimHitMatcher()
Definition: RPCSimHitMatcher.h:22
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
RPCGeometry.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
RPCSimHitMatcher::detIds
std::set< unsigned int > detIds(int type=MuonHitHelper::RPC_ALL) const
Definition: RPCSimHitMatcher.cc:71
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37