#include <ME0SimHitMatcher.h>
Public Member Functions | |
std::set< unsigned int > | chamberIds () const |
std::set< unsigned int > | detIds () const |
std::set< int > | hitPadsInDetId (unsigned int) const |
std::set< int > | hitPartitions () const |
const edm::PSimHitContainer & | hitsInSuperChamber (unsigned int) 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... | |
ME0SimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
int | nCoincidenceChambers (int min_n_layers=4) const |
int | nLayersWithHitsInSuperChamber (unsigned int) const |
int | nPadsWithHits () const |
float | simHitsMeanStrip (const edm::PSimHitContainer &sim_hits) const |
std::set< unsigned int > | superChamberIds () const |
std::set< unsigned int > | superChamberIdsCoincidences (int min_n_layers=4) const |
~ME0SimHitMatcher () | |
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 | |
std::map< unsigned int, std::set< int > > | detids_to_copads_ |
std::map< unsigned int, std::set< int > > | detids_to_pads_ |
edm::ESHandle< ME0Geometry > | me0_geom_ |
std::map< unsigned int, edm::PSimHitContainer > | superChamber_to_hits_ |
Description: Matching of ME0 SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 14 of file ME0SimHitMatcher.h.
ME0SimHitMatcher::ME0SimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file ME0SimHitMatcher.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 ME0SimHitMatcher.h.
std::set< unsigned int > ME0SimHitMatcher::chamberIds | ( | ) | const |
Definition at line 100 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
std::set< unsigned int > ME0SimHitMatcher::detIds | ( | void | ) | const |
Definition at line 93 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
Referenced by hitPartitions(), match(), matchSimHitsToSimTrack(), and nPadsWithHits().
std::set< int > ME0SimHitMatcher::hitPadsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 183 of file ME0SimHitMatcher.cc.
References detids_to_pads_, and none.
Referenced by nPadsWithHits().
std::set< int > ME0SimHitMatcher::hitPartitions | ( | ) | const |
Definition at line 190 of file ME0SimHitMatcher.cc.
References detIds(), mps_fire::result, and ME0DetId::roll().
const edm::PSimHitContainer & ME0SimHitMatcher::hitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 114 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::no_hits_, and superChamber_to_hits_.
Referenced by nLayersWithHitsInSuperChamber().
std::set< int > ME0SimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 164 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, mps_fire::result, HLTBitAnalyser_cfi::simhits, contentValuesCheck::ss, and ecaldqm::topology().
Referenced by match().
void ME0SimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 16 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, edm::EventSetup::get(), get, MuonSimHitMatcher::hasGeometry_, iEvent, MuonSimHitMatcher::init(), edm::ESHandleBase::isValid(), and me0_geom_.
do the matching
Definition at line 28 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, detIds(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInChamber(), hitStripsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), AlCaHLTBitMon_ParallelJobs::p, MuonSimHitMatcher::simHitsMeanPosition(), DigiDM_cff::strips, HLT_2018_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 57 of file ME0SimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, ztail::d, MuonSimHitMatcher::detid_to_hits_, detIds(), detids_to_pads_, MuonSimHitMatcher::discardEleHits_, MuonSimHitMatcher::geometry_, hfClusterShapes_cfi::hits, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, EgammaValidation_cff::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, superChamber_to_hits_, and MuonSimHitMatcher::track_ids_.
Referenced by match().
int ME0SimHitMatcher::nCoincidenceChambers | ( | int | min_n_layers = 4 | ) | const |
Definition at line 141 of file ME0SimHitMatcher.cc.
References superChamberIdsCoincidences().
int ME0SimHitMatcher::nLayersWithHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 120 of file ME0SimHitMatcher.cc.
References hfClusterShapes_cfi::hits, and hitsInSuperChamber().
Referenced by superChamberIdsCoincidences().
int ME0SimHitMatcher::nPadsWithHits | ( | ) | const |
Definition at line 201 of file ME0SimHitMatcher.cc.
References detIds(), hitPadsInDetId(), and mps_fire::result.
float ME0SimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 145 of file ME0SimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, dqmiodumpmetadata::n, and alignCSCRings::s.
std::set< unsigned int > ME0SimHitMatcher::superChamberIds | ( | ) | const |
Definition at line 107 of file ME0SimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superChamber_to_hits_.
Referenced by superChamberIdsCoincidences().
std::set< unsigned int > ME0SimHitMatcher::superChamberIdsCoincidences | ( | int | min_n_layers = 4 | ) | const |
Definition at line 130 of file ME0SimHitMatcher.cc.
References nLayersWithHitsInSuperChamber(), AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superChamberIds().
Referenced by nCoincidenceChambers().
|
private |
Definition at line 71 of file ME0SimHitMatcher.h.
|
private |
Definition at line 68 of file ME0SimHitMatcher.h.
Referenced by hitPadsInDetId(), and matchSimHitsToSimTrack().
|
private |
Definition at line 65 of file ME0SimHitMatcher.h.
Referenced by init().
|
private |
Definition at line 73 of file ME0SimHitMatcher.h.
Referenced by hitsInSuperChamber(), matchSimHitsToSimTrack(), and superChamberIds().