#include <RPCSimHitMatcher.h>
Public Member Functions | |
std::set< unsigned int > | chamberIds (int type=MuonHitHelper::RPC_ALL) const |
std::set< unsigned int > | detIds (int type=MuonHitHelper::RPC_ALL) const |
bool | hitStation (int st) const |
std::set< int > | hitStripsInDetId (unsigned int, int margin_n_strips=0) const |
void | init (const edm::Event &e, const edm::EventSetup &eventSetup) |
initialize the event More... | |
void | match (const SimTrack &t, const SimVertex &v) |
do the matching More... | |
int | nStations () const |
RPCSimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
float | simHitsMeanStrip (const edm::PSimHitContainer &sim_hits) const |
~RPCSimHitMatcher () | |
Public Member Functions inherited from MuonSimHitMatcher | |
std::set< unsigned int > | chamberIds (int type=0) const |
std::set< unsigned int > | detIds (int type=0) const |
const edm::PSimHitContainer & | hitsInChamber (unsigned int) const |
const edm::PSimHitContainer & | hitsInDetId (unsigned int) const |
void | init (const edm::Event &e, const edm::EventSetup &eventSetup) |
initialize the event More... | |
void | match (const SimTrack &t, const SimVertex &v) |
do the matching More... | |
MuonSimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
const edm::PSimHitContainer & | simHits (int) const |
GlobalVector | simHitsMeanMomentum (const edm::PSimHitContainer &sim_hits) const |
GlobalPoint | simHitsMeanPosition (const edm::PSimHitContainer &sim_hits) const |
GlobalPoint | simHitsMeanPositionStation (int n) const |
~MuonSimHitMatcher () | |
Private Member Functions | |
void | matchSimHitsToSimTrack () |
Private Attributes | |
edm::ESHandle< RPCGeometry > | rpc_geom_ |
Description: Matching of RPC SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 14 of file RPCSimHitMatcher.h.
RPCSimHitMatcher::RPCSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 6 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::discardEleHits_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), MuonSimHitMatcher::simHitInput_, MuonSimHitMatcher::simHitPSet_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::verbose_.
|
inline |
Definition at line 20 of file RPCSimHitMatcher.h.
References chamberIds(), detIds(), MillePedeFileConverter_cfg::e, hitStation(), hitStripsInDetId(), init(), match(), matchSimHitsToSimTrack(), nStations(), MuonHitHelper::RPC_ALL, simHitsMeanStrip(), OrderedSet::t, and findQualityFiles::v.
std::set< unsigned int > RPCSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::RPC_ALL | ) | const |
Definition at line 92 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, AlCaHLTBitMon_ParallelJobs::p, RPCDetId::region(), mps_fire::result, RPCDetId::ring(), RPCDetId::station(), and MuonHitHelper::toRPCType().
Referenced by hitStation(), match(), and ~RPCSimHitMatcher().
std::set< unsigned int > RPCSimHitMatcher::detIds | ( | int | type = MuonHitHelper::RPC_ALL | ) | const |
Definition at line 78 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, RPCDetId::region(), mps_fire::result, RPCDetId::ring(), RPCDetId::station(), and MuonHitHelper::toRPCType().
Referenced by match(), and ~RPCSimHitMatcher().
bool RPCSimHitMatcher::hitStation | ( | int | st | ) | const |
Definition at line 106 of file RPCSimHitMatcher.cc.
References chamberIds(), triggerObjects_cff::id, and relativeConstraints::station.
Referenced by nStations(), and ~RPCSimHitMatcher().
std::set< int > RPCSimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 136 of file RPCSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, mps_fire::result, and contentValuesCheck::ss.
Referenced by match(), and ~RPCSimHitMatcher().
void RPCSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 17 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, edm::EventSetup::get(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::init(), edm::ESHandleBase::isValid(), and rpc_geom_.
Referenced by ~RPCSimHitMatcher().
do the matching
Definition at line 29 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, chamberIds(), detIds(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::hitsInChamber(), hitStripsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), AlCaHLTBitMon_ParallelJobs::p, HLTBitAnalyser_cfi::simhits, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simHitsMeanPosition(), DigiDM_cff::strips, MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by ~RPCSimHitMatcher().
|
private |
Definition at line 58 of file RPCSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, MuonSimHitMatcher::detid_to_hits_, MuonSimHitMatcher::discardEleHits_, h, MuonSimHitMatcher::hits_, EgammaValidation_cff::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::track_ids_.
Referenced by match(), and ~RPCSimHitMatcher().
int RPCSimHitMatcher::nStations | ( | ) | const |
Definition at line 117 of file RPCSimHitMatcher.cc.
References hitStation().
Referenced by ~RPCSimHitMatcher().
float RPCSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 119 of file RPCSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, h, and dqmiodumpmetadata::n.
Referenced by ~RPCSimHitMatcher().
|
private |
Definition at line 47 of file RPCSimHitMatcher.h.
Referenced by init().