#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(), protons_cff::t, and findQualityFiles::v.
std::set< unsigned int > RPCSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::RPC_ALL | ) | const |
Definition at line 98 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 83 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 113 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 143 of file RPCSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, and mps_fire::result.
Referenced by match(), and ~RPCSimHitMatcher().
void RPCSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 19 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 33 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, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simHitsMeanPosition(), RecoTauPiZeroBuilderPlugins_cfi::strips, MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by ~RPCSimHitMatcher().
|
private |
Definition at line 66 of file RPCSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, MuonSimHitMatcher::detid_to_hits_, MuonSimHitMatcher::discardEleHits_, h, MuonSimHitMatcher::hits_, BPhysicsValidation_cfi::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::track_ids_.
Referenced by match(), and ~RPCSimHitMatcher().
int RPCSimHitMatcher::nStations | ( | ) | const |
Definition at line 123 of file RPCSimHitMatcher.cc.
References hitStation().
Referenced by ~RPCSimHitMatcher().
float RPCSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 127 of file RPCSimHitMatcher.cc.
References edmIntegrityCheck::d, f, MuonSimHitMatcher::geometry_, h, and gen::n.
Referenced by ~RPCSimHitMatcher().
|
private |
Definition at line 47 of file RPCSimHitMatcher.h.
Referenced by init().