#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.
References chamberIds(), detIds(), MillePedeFileConverter_cfg::e, hitPadsInDetId(), hitPartitions(), hitsInSuperChamber(), hitStripsInDetId(), init(), match(), matchSimHitsToSimTrack(), nCoincidenceChambers(), nLayersWithHitsInSuperChamber(), nPadsWithHits(), simHitsMeanStrip(), superChamberIds(), superChamberIdsCoincidences(), protons_cff::t, and findQualityFiles::v.
std::set< unsigned int > ME0SimHitMatcher::chamberIds | ( | ) | const |
Definition at line 105 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
Referenced by ~ME0SimHitMatcher().
std::set< unsigned int > ME0SimHitMatcher::detIds | ( | void | ) | const |
Definition at line 99 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
Referenced by hitPartitions(), match(), matchSimHitsToSimTrack(), nPadsWithHits(), and ~ME0SimHitMatcher().
std::set< int > ME0SimHitMatcher::hitPadsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 191 of file ME0SimHitMatcher.cc.
References detids_to_pads_, and none.
Referenced by nPadsWithHits(), and ~ME0SimHitMatcher().
std::set< int > ME0SimHitMatcher::hitPartitions | ( | ) | const |
Definition at line 197 of file ME0SimHitMatcher.cc.
References detIds(), mps_fire::result, and ME0DetId::roll().
Referenced by ~ME0SimHitMatcher().
const edm::PSimHitContainer & ME0SimHitMatcher::hitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 117 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::no_hits_, and superChamber_to_hits_.
Referenced by nLayersWithHitsInSuperChamber(), and ~ME0SimHitMatcher().
std::set< int > ME0SimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 168 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, and mps_fire::result.
Referenced by match(), and ~ME0SimHitMatcher().
void ME0SimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 18 of file ME0SimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, edm::EventSetup::get(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::init(), edm::ESHandleBase::isValid(), and me0_geom_.
Referenced by ~ME0SimHitMatcher().
do the matching
Definition at line 32 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(), RecoTauPiZeroBuilderPlugins_cfi::strips, MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by ~ME0SimHitMatcher().
|
private |
Definition at line 65 of file ME0SimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, edmIntegrityCheck::d, MuonSimHitMatcher::detid_to_hits_, detIds(), detids_to_pads_, MuonSimHitMatcher::discardEleHits_, MuonSimHitMatcher::geometry_, h, hfClusterShapes_cfi::hits, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, BPhysicsValidation_cfi::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, superChamber_to_hits_, and MuonSimHitMatcher::track_ids_.
Referenced by match(), and ~ME0SimHitMatcher().
int ME0SimHitMatcher::nCoincidenceChambers | ( | int | min_n_layers = 4 | ) | const |
Definition at line 146 of file ME0SimHitMatcher.cc.
References superChamberIdsCoincidences().
Referenced by ~ME0SimHitMatcher().
int ME0SimHitMatcher::nLayersWithHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 124 of file ME0SimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, and hitsInSuperChamber().
Referenced by superChamberIdsCoincidences(), and ~ME0SimHitMatcher().
int ME0SimHitMatcher::nPadsWithHits | ( | ) | const |
Definition at line 208 of file ME0SimHitMatcher.cc.
References detIds(), hitPadsInDetId(), and mps_fire::result.
Referenced by ~ME0SimHitMatcher().
float ME0SimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 150 of file ME0SimHitMatcher.cc.
References edmIntegrityCheck::d, f, MuonSimHitMatcher::geometry_, h, gen::n, and alignCSCRings::s.
Referenced by ~ME0SimHitMatcher().
std::set< unsigned int > ME0SimHitMatcher::superChamberIds | ( | ) | const |
Definition at line 111 of file ME0SimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superChamber_to_hits_.
Referenced by superChamberIdsCoincidences(), and ~ME0SimHitMatcher().
std::set< unsigned int > ME0SimHitMatcher::superChamberIdsCoincidences | ( | int | min_n_layers = 4 | ) | const |
Definition at line 134 of file ME0SimHitMatcher.cc.
References nLayersWithHitsInSuperChamber(), AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superChamberIds().
Referenced by nCoincidenceChambers(), and ~ME0SimHitMatcher().
|
private |
Definition at line 72 of file ME0SimHitMatcher.h.
|
private |
Definition at line 69 of file ME0SimHitMatcher.h.
Referenced by hitPadsInDetId(), and matchSimHitsToSimTrack().
|
private |
Definition at line 66 of file ME0SimHitMatcher.h.
Referenced by init().
|
private |
Definition at line 74 of file ME0SimHitMatcher.h.
Referenced by hitsInSuperChamber(), matchSimHitsToSimTrack(), and superChamberIds().