#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 |
void | fitHitsInChamber (unsigned int detid, float &mean, float &slope) 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 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 | clear () |
void | matchSimHitsToSimTrack () |
Private Attributes | |
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > | geomToken_ |
Description: Matching of CSC SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 16 of file CSCSimHitMatcher.h.
CSCSimHitMatcher::CSCSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 8 of file CSCSimHitMatcher.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 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 100 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, hcalRecHitTable_cff::detId, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and MuonHitHelper::toCSCType().
Referenced by chamberIdsStation(), hitStation(), and nCoincidenceChambers().
std::set< unsigned int > CSCSimHitMatcher::chamberIdsStation | ( | int | station | ) | const |
Definition at line 349 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, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, mps_fire::result, and relativeConstraints::station.
void CSCSimHitMatcher::chamberIdsToString | ( | const std::set< unsigned int > & | set | ) | const |
Definition at line 342 of file CSCSimHitMatcher.cc.
References hcalRecHitTable_cff::detId, and AlCaHLTBitMon_ParallelJobs::p.
|
private |
Definition at line 388 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::clear().
Referenced by match().
std::set< unsigned int > CSCSimHitMatcher::detIds | ( | int | type = MuonHitHelper::CSC_ALL | ) | const |
Definition at line 86 of file CSCSimHitMatcher.cc.
References hcalRecHitTable_cff::detId, MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and MuonHitHelper::toCSCType().
Referenced by match().
void CSCSimHitMatcher::fitHitsInChamber | ( | unsigned int | detid, |
float & | mean, | ||
float & | slope | ||
) | const |
Definition at line 215 of file CSCSimHitMatcher.cc.
References ztail::d, l1tPhase2CaloJetEmulator_cfi::fit, MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInChamber(), nano_mu_digi_cff::layer, alignCSCRings::s, slope, x, and y.
bool CSCSimHitMatcher::hitStation | ( | int | st, |
int | nlayers | ||
) | const |
Definition at line 123 of file CSCSimHitMatcher.cc.
References relativeConstraints::chamber, chamberIds(), makeMuonMisalignmentScenario::endcap, l1ctLayer2EG_cff::id, nLayersWithHitsInChamber(), DetId::rawId(), nano_mu_digi_cff::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 295 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), l1ctLayer2EG_cff::id, nano_mu_digi_cff::layer, 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 313 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), l1ctLayer2EG_cff::id, nano_mu_digi_cff::layer, mps_fire::result, and HLTBitAnalyser_cfi::simhits.
void CSCSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 24 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, geomToken_, edm::EventSetup::getData(), iEvent, and MuonSimHitMatcher::init().
float CSCSimHitMatcher::LocalBendingInChamber | ( | unsigned int | detid | ) | const |
Definition at line 164 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 30 of file CSCSimHitMatcher.cc.
References funct::abs(), clear(), MuonSimHitMatcher::detid_to_hits_, detIds(), MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), hitStripsInDetId(), l1ctLayer2EG_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), or, AlCaHLTBitMon_ParallelJobs::p, CSCDetId::ring(), HLTBitAnalyser_cfi::simhits, MuonSimHitMatcher::simHitsMeanPosition(), CSCDetId::station(), DigiDM_cff::strips, HLT_2024v14_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 66 of file CSCSimHitMatcher.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().
int CSCSimHitMatcher::nCoincidenceChambers | ( | int | min_n_layers = 4 | ) | const |
Definition at line 332 of file CSCSimHitMatcher.cc.
References chamberIds(), nLayersWithHitsInChamber(), and mps_fire::result.
int CSCSimHitMatcher::nLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 114 of file CSCSimHitMatcher.cc.
References h, and MuonSimHitMatcher::hitsInChamber().
Referenced by hitStation(), LocalBendingInChamber(), and nCoincidenceChambers().
int CSCSimHitMatcher::nStations | ( | int | nl = 4 | ) | const |
Definition at line 160 of file CSCSimHitMatcher.cc.
References hitStation().
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 251 of file CSCSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, h, nano_mu_digi_cff::layer, dqmiodumpmetadata::n, and alignCSCRings::s.
float CSCSimHitMatcher::simHitsMeanWG | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 272 of file CSCSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry(), MuonSimHitMatcher::geometry_, h, nano_mu_digi_cff::layer, dqmiodumpmetadata::n, and alignCSCRings::s.
|
private |
Definition at line 81 of file CSCSimHitMatcher.h.
Referenced by CSCSimHitMatcher(), and init().