#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 TrackingGeometry * | geometry () |
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::ESGetToken< RPCGeometry, MuonGeometryRecord > | geomToken_ |
Description: Matching of RPC SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 16 of file RPCSimHitMatcher.h.
RPCSimHitMatcher::RPCSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 6 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::discardEleHits_, geomToken_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), MuonSimHitMatcher::simHitInput_, MuonSimHitMatcher::simHitPSet_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::verbose_.
|
inline |
Definition at line 22 of file RPCSimHitMatcher.h.
std::set< unsigned int > RPCSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::RPC_ALL | ) | const |
Definition at line 85 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(), and match().
std::set< unsigned int > RPCSimHitMatcher::detIds | ( | int | type = MuonHitHelper::RPC_ALL | ) | const |
Definition at line 71 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().
bool RPCSimHitMatcher::hitStation | ( | int | st | ) | const |
Definition at line 99 of file RPCSimHitMatcher.cc.
References chamberIds(), triggerObjects_cff::id, and relativeConstraints::station.
Referenced by nStations().
std::set< int > RPCSimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 129 of file RPCSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, mps_fire::result, and contentValuesCheck::ss.
Referenced by match().
void RPCSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 18 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, geomToken_, edm::EventSetup::getData(), iEvent, and MuonSimHitMatcher::init().
do the matching
Definition at line 24 of file RPCSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, chamberIds(), detIds(), MuonSimHitMatcher::hitsInChamber(), hitStripsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), AlCaHLTBitMon_ParallelJobs::p, HLTBitAnalyser_cfi::simhits, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simHitsMeanPosition(), DigiDM_cff::strips, HLT_FULL_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 51 of file RPCSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, MuonSimHitMatcher::detid_to_hits_, MuonSimHitMatcher::discardEleHits_, MuonSimHitMatcher::hits_, EgammaValidation_cff::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::track_ids_.
Referenced by match().
int RPCSimHitMatcher::nStations | ( | ) | const |
float RPCSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 112 of file RPCSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, and dqmiodumpmetadata::n.
|
private |
Definition at line 49 of file RPCSimHitMatcher.h.
Referenced by init(), and RPCSimHitMatcher().