#include <CSCSimHitMatcher.h>
Public Member Functions | |
void | camberIdsToString (const std::set< unsigned int > &) const |
std::set< unsigned int > | chamberIds (int type=MuonHitHelper::CSC_ALL) const |
std::set< unsigned int > | chamberIdsStation (int station) const |
void | chamberIdsToString (const std::set< unsigned int > &set) const |
CSCSimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
std::set< unsigned int > | detIds (int type=MuonHitHelper::CSC_ALL) const |
bool | hitStation (int, int) const |
std::set< int > | hitStripsInDetId (unsigned int, int margin_n_strips=0) const |
std::set< int > | hitWiregroupsInDetId (unsigned int, int margin_n_wg=0) const |
void | init (const edm::Event &e, const edm::EventSetup &eventSetup) |
initialize the event More... | |
float | LocalBendingInChamber (unsigned int detid) const |
void | match (const SimTrack &t, const SimVertex &v) |
do the matching More... | |
int | nCoincidenceChambers (int min_n_layers=4) const |
int | nLayersWithHitsInChamber (unsigned int) const |
int | nStations (int nl=4) const |
GlobalPoint | simHitPositionKeyLayer (unsigned int chamberid) const |
GlobalPoint | simHitsMeanPositionStation (int n) const |
float | simHitsMeanStrip (const edm::PSimHitContainer &sim_hits) const |
float | simHitsMeanWG (const edm::PSimHitContainer &sim_hits) const |
~CSCSimHitMatcher () | |
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< CSCGeometry > | csc_geom_ |
Description: Matching of CSC SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 14 of file CSCSimHitMatcher.h.
CSCSimHitMatcher::CSCSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file CSCSimHitMatcher.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 CSCSimHitMatcher.h.
void CSCSimHitMatcher::camberIdsToString | ( | const std::set< unsigned int > & | ) | const |
std::set< unsigned int > CSCSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::CSC_ALL | ) | const |
Definition at line 93 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), and MuonHitHelper::toCSCType().
Referenced by chamberIdsStation(), hitStation(), and nCoincidenceChambers().
std::set< unsigned int > CSCSimHitMatcher::chamberIdsStation | ( | int | station | ) | const |
Definition at line 305 of file CSCSimHitMatcher.cc.
References chamberIds(), MuonHitHelper::CSC_ME12, MuonHitHelper::CSC_ME13, MuonHitHelper::CSC_ME1a, MuonHitHelper::CSC_ME1b, MuonHitHelper::CSC_ME21, MuonHitHelper::CSC_ME22, MuonHitHelper::CSC_ME31, MuonHitHelper::CSC_ME32, MuonHitHelper::CSC_ME41, MuonHitHelper::CSC_ME42, p1, p2, p3, p4, mps_fire::result, and relativeConstraints::station.
void CSCSimHitMatcher::chamberIdsToString | ( | const std::set< unsigned int > & | set | ) | const |
std::set< unsigned int > CSCSimHitMatcher::detIds | ( | int | type = MuonHitHelper::CSC_ALL | ) | const |
Definition at line 79 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), and MuonHitHelper::toCSCType().
Referenced by match().
bool CSCSimHitMatcher::hitStation | ( | int | st, |
int | nlayers | ||
) | const |
Definition at line 116 of file CSCSimHitMatcher.cc.
References relativeConstraints::chamber, chamberIds(), makeMuonMisalignmentScenario::endcap, triggerObjects_cff::id, nlayers, nLayersWithHitsInChamber(), DetId::rawId(), relativeConstraints::ring, and relativeConstraints::station.
Referenced by nStations().
std::set< int > CSCSimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 251 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, mps_fire::result, HLTBitAnalyser_cfi::simhits, and contentValuesCheck::ss.
Referenced by match().
std::set< int > CSCSimHitMatcher::hitWiregroupsInDetId | ( | unsigned int | detid, |
int | margin_n_wg = 0 |
||
) | const |
Definition at line 269 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, mps_fire::result, and HLTBitAnalyser_cfi::simhits.
void CSCSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 16 of file CSCSimHitMatcher.cc.
References csc_geom_, MuonSimHitMatcher::geometry_, edm::EventSetup::get(), get, MuonSimHitMatcher::hasGeometry_, iEvent, MuonSimHitMatcher::init(), and edm::ESHandleBase::isValid().
float CSCSimHitMatcher::LocalBendingInChamber | ( | unsigned int | detid | ) | const |
Definition at line 157 of file CSCSimHitMatcher.cc.
References CSCDetId::chamber(), SiPixelRawToDigiRegional_cfi::deltaPhi, CSCDetId::endcap(), MuonSimHitMatcher::hitsInDetId(), nLayersWithHitsInChamber(), or, PV3DBase< T, PVType, FrameType >::phi(), CSCDetId::ring(), MuonSimHitMatcher::simHitsMeanPosition(), and CSCDetId::station().
do the matching
Definition at line 28 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, detIds(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), hitStripsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), or, AlCaHLTBitMon_ParallelJobs::p, CSCDetId::ring(), HLTBitAnalyser_cfi::simhits, MuonSimHitMatcher::simHitsMeanPosition(), CSCDetId::station(), DigiDM_cff::strips, HLT_2018_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 59 of file CSCSimHitMatcher.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 CSCSimHitMatcher::nCoincidenceChambers | ( | int | min_n_layers = 4 | ) | const |
Definition at line 288 of file CSCSimHitMatcher.cc.
References chamberIds(), nLayersWithHitsInChamber(), and mps_fire::result.
int CSCSimHitMatcher::nLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 107 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::hitsInChamber().
Referenced by hitStation(), LocalBendingInChamber(), and nCoincidenceChambers().
int CSCSimHitMatcher::nStations | ( | int | nl = 4 | ) | const |
Definition at line 153 of file CSCSimHitMatcher.cc.
References hitStation(), and nlayers.
GlobalPoint CSCSimHitMatcher::simHitPositionKeyLayer | ( | unsigned int | chamberid | ) | const |
GlobalPoint CSCSimHitMatcher::simHitsMeanPositionStation | ( | int | n | ) | const |
float CSCSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 207 of file CSCSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, dqmiodumpmetadata::n, and alignCSCRings::s.
float CSCSimHitMatcher::simHitsMeanWG | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 228 of file CSCSimHitMatcher.cc.
References ztail::d, f, geometry, MuonSimHitMatcher::geometry_, dqmiodumpmetadata::n, and alignCSCRings::s.
|
private |
Definition at line 76 of file CSCSimHitMatcher.h.
Referenced by init().