#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 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 | |
std::map< unsigned int, std::set< int > > | detids_to_copads_ |
std::map< unsigned int, std::set< int > > | detids_to_pads_ |
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > | geomToken_ |
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 16 of file ME0SimHitMatcher.h.
ME0SimHitMatcher::ME0SimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file ME0SimHitMatcher.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 ME0SimHitMatcher.h.
std::set< unsigned int > ME0SimHitMatcher::chamberIds | ( | ) | const |
Definition at line 92 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 85 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 175 of file ME0SimHitMatcher.cc.
References detids_to_pads_, and none.
Referenced by nPadsWithHits().
std::set< int > ME0SimHitMatcher::hitPartitions | ( | ) | const |
Definition at line 182 of file ME0SimHitMatcher.cc.
References detIds(), mps_fire::result, and ME0DetId::roll().
const edm::PSimHitContainer & ME0SimHitMatcher::hitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 106 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 156 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), l1ctLayer2EG_cff::id, mps_fire::result, HLTBitAnalyser_cfi::simhits, and contentValuesCheck::ss.
Referenced by match().
void ME0SimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 17 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, geomToken_, edm::EventSetup::getData(), iEvent, and MuonSimHitMatcher::init().
do the matching
Definition at line 23 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, detIds(), MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInChamber(), hitStripsInDetId(), l1ctLayer2EG_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), AlCaHLTBitMon_ParallelJobs::p, MuonSimHitMatcher::simHitsMeanPosition(), DigiDM_cff::strips, HLT_2024v14_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 49 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_, h, hfClusterShapes_cfi::hits, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), l1ctLayer2EG_cff::id, EgammaValidation_cff::pdgid, nano_mu_digi_cff::roll, 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 133 of file ME0SimHitMatcher.cc.
References superChamberIdsCoincidences().
int ME0SimHitMatcher::nLayersWithHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 112 of file ME0SimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, and hitsInSuperChamber().
Referenced by superChamberIdsCoincidences().
int ME0SimHitMatcher::nPadsWithHits | ( | ) | const |
Definition at line 193 of file ME0SimHitMatcher.cc.
References detIds(), hitPadsInDetId(), and mps_fire::result.
float ME0SimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 137 of file ME0SimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, h, dqmiodumpmetadata::n, and alignCSCRings::s.
std::set< unsigned int > ME0SimHitMatcher::superChamberIds | ( | ) | const |
Definition at line 99 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 122 of file ME0SimHitMatcher.cc.
References nLayersWithHitsInSuperChamber(), AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superChamberIds().
Referenced by nCoincidenceChambers().
|
private |
Definition at line 73 of file ME0SimHitMatcher.h.
|
private |
Definition at line 70 of file ME0SimHitMatcher.h.
Referenced by hitPadsInDetId(), and matchSimHitsToSimTrack().
|
private |
Definition at line 67 of file ME0SimHitMatcher.h.
Referenced by init(), and ME0SimHitMatcher().
|
private |
Definition at line 75 of file ME0SimHitMatcher.h.
Referenced by hitsInSuperChamber(), matchSimHitsToSimTrack(), and superChamberIds().