#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.
References camberIdsToString(), chamberIds(), chamberIdsStation(), chamberIdsToString(), MuonHitHelper::CSC_ALL, detIds(), MillePedeFileConverter_cfg::e, hitStation(), hitStripsInDetId(), hitWiregroupsInDetId(), init(), LocalBendingInChamber(), match(), matchSimHitsToSimTrack(), gen::n, nCoincidenceChambers(), nLayersWithHitsInChamber(), nStations(), simHitPositionKeyLayer(), simHitsMeanPositionStation(), simHitsMeanStrip(), simHitsMeanWG(), relativeConstraints::station, lumiQTWidget::t, and findQualityFiles::v.
void CSCSimHitMatcher::camberIdsToString | ( | const std::set< unsigned int > & | ) | const |
Referenced by ~CSCSimHitMatcher().
std::set< unsigned int > CSCSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::CSC_ALL | ) | const |
Definition at line 98 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(), nCoincidenceChambers(), and ~CSCSimHitMatcher().
std::set< unsigned int > CSCSimHitMatcher::chamberIdsStation | ( | int | station | ) | const |
Definition at line 334 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, and mps_fire::result.
Referenced by ~CSCSimHitMatcher().
void CSCSimHitMatcher::chamberIdsToString | ( | const std::set< unsigned int > & | set | ) | const |
Definition at line 326 of file CSCSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by ~CSCSimHitMatcher().
std::set< unsigned int > CSCSimHitMatcher::detIds | ( | int | type = MuonHitHelper::CSC_ALL | ) | const |
Definition at line 84 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(), and ~CSCSimHitMatcher().
bool CSCSimHitMatcher::hitStation | ( | int | st, |
int | nlayers | ||
) | const |
Definition at line 121 of file CSCSimHitMatcher.cc.
References relativeConstraints::chamber, chamberIds(), makeMuonMisalignmentScenario::endcap, triggerObjects_cff::id, nLayersWithHitsInChamber(), DetId::rawId(), relativeConstraints::ring, and relativeConstraints::station.
Referenced by nStations(), and ~CSCSimHitMatcher().
std::set< int > CSCSimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 270 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, and mps_fire::result.
Referenced by match(), and ~CSCSimHitMatcher().
std::set< int > CSCSimHitMatcher::hitWiregroupsInDetId | ( | unsigned int | detid, |
int | margin_n_wg = 0 |
||
) | const |
Definition at line 294 of file CSCSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, and mps_fire::result.
Referenced by ~CSCSimHitMatcher().
void CSCSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 18 of file CSCSimHitMatcher.cc.
References csc_geom_, MuonSimHitMatcher::geometry_, edm::EventSetup::get(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::init(), and edm::ESHandleBase::isValid().
Referenced by ~CSCSimHitMatcher().
float CSCSimHitMatcher::LocalBendingInChamber | ( | unsigned int | detid | ) | const |
Definition at line 159 of file CSCSimHitMatcher.cc.
References CSCDetId::chamber(), hiPixelPairStep_cff::deltaPhi, CSCDetId::endcap(), MuonSimHitMatcher::hitsInDetId(), nLayersWithHitsInChamber(), or, PV3DBase< T, PVType, FrameType >::phi(), CSCDetId::ring(), MuonSimHitMatcher::simHitsMeanPosition(), and CSCDetId::station().
Referenced by ~CSCSimHitMatcher().
do the matching
Definition at line 32 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(), MuonSimHitMatcher::simHitsMeanPosition(), CSCDetId::station(), RecoTauPiZeroBuilderPlugins_cfi::strips, MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by ~CSCSimHitMatcher().
|
private |
Definition at line 67 of file CSCSimHitMatcher.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 ~CSCSimHitMatcher().
int CSCSimHitMatcher::nCoincidenceChambers | ( | int | min_n_layers = 4 | ) | const |
Definition at line 317 of file CSCSimHitMatcher.cc.
References chamberIds(), nLayersWithHitsInChamber(), and mps_fire::result.
Referenced by ~CSCSimHitMatcher().
int CSCSimHitMatcher::nLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 112 of file CSCSimHitMatcher.cc.
References h, and MuonSimHitMatcher::hitsInChamber().
Referenced by hitStation(), LocalBendingInChamber(), nCoincidenceChambers(), and ~CSCSimHitMatcher().
int CSCSimHitMatcher::nStations | ( | int | nl = 4 | ) | const |
Definition at line 154 of file CSCSimHitMatcher.cc.
References hitStation().
Referenced by ~CSCSimHitMatcher().
GlobalPoint CSCSimHitMatcher::simHitPositionKeyLayer | ( | unsigned int | chamberid | ) | const |
Referenced by ~CSCSimHitMatcher().
GlobalPoint CSCSimHitMatcher::simHitsMeanPositionStation | ( | int | n | ) | const |
Referenced by ~CSCSimHitMatcher().
float CSCSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 224 of file CSCSimHitMatcher.cc.
References edmIntegrityCheck::d, f, MuonSimHitMatcher::geometry_, h, gen::n, and alignCSCRings::s.
Referenced by ~CSCSimHitMatcher().
float CSCSimHitMatcher::simHitsMeanWG | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 247 of file CSCSimHitMatcher.cc.
References edmIntegrityCheck::d, f, geometry, MuonSimHitMatcher::geometry_, h, gen::n, and alignCSCRings::s.
Referenced by ~CSCSimHitMatcher().
|
private |
Definition at line 76 of file CSCSimHitMatcher.h.
Referenced by init().