#include <GEMRecHitMatcher.h>
Public Types | |
typedef matching::Digi | RecHit |
typedef matching::DigiContainer | RecHitContainer |
Public Member Functions | |
std::set< unsigned int > | chamberIds () const |
std::set< unsigned int > | detIds () const |
GEMRecHitMatcher (const SimHitMatcher &sh, const edm::Event &, const GEMGeometry &geom, const edm::ParameterSet &cfg, edm::EDGetToken &) | |
int | nLayersWithRecHitsInSuperChamber (unsigned int) const |
int | nRecHits () const |
How many recHits in GEM did this simtrack get in total? More... | |
std::set< int > | partitionNumbers () const |
GlobalPoint | recHitMeanPosition (const RecHitContainer &rechits) const |
GlobalPoint | recHitPosition (const RecHit &rechit) const |
const RecHitContainer & | recHitsInChamber (unsigned int) const |
const RecHitContainer & | recHitsInDetId (unsigned int) const |
const RecHitContainer & | recHitsInSuperChamber (unsigned int) const |
std::set< int > | stripNumbersInDetId (unsigned int) const |
std::set< unsigned int > | superChamberIds () const |
bool | verbose () const |
~GEMRecHitMatcher () | |
Private Member Functions | |
void | init (const edm::Event &) |
void | matchRecHitsToSimTrack (const GEMRecHitCollection &recHits) |
Private Attributes | |
std::map< unsigned int, RecHitContainer > | chamber_to_recHits_ |
std::map< unsigned int, RecHitContainer > | detid_to_recHits_ |
const GEMGeometry & | gem_geo_ |
edm::Handle< GEMRecHitCollection > | gem_rechits_ |
int | matchDeltaStrip_ |
int | maxBXGEM_ |
int | minBXGEM_ |
const RecHitContainer | no_recHits_ |
const SimHitMatcher & | simhit_matcher_ |
std::map< unsigned int, RecHitContainer > | superchamber_to_recHits_ |
bool | verbose_ |
Definition at line 42 of file GEMRecHitMatcher.h.
Definition at line 46 of file GEMRecHitMatcher.h.
Definition at line 47 of file GEMRecHitMatcher.h.
GEMRecHitMatcher::GEMRecHitMatcher | ( | const SimHitMatcher & | sh, |
const edm::Event & | e, | ||
const GEMGeometry & | geom, | ||
const edm::ParameterSet & | cfg, | ||
edm::EDGetToken & | gem_recHitToken | ||
) |
Definition at line 11 of file GEMRecHitMatcher.cc.
References gem_rechits_, edm::Event::getByToken(), edm::ParameterSet::getUntrackedParameter(), init(), matchDeltaStrip_, maxBXGEM_, minBXGEM_, and verbose_.
GEMRecHitMatcher::~GEMRecHitMatcher | ( | ) |
Definition at line 28 of file GEMRecHitMatcher.cc.
std::set< unsigned int > GEMRecHitMatcher::chamberIds | ( | ) | const |
Definition at line 100 of file GEMRecHitMatcher.cc.
References chamber_to_recHits_, AlCaHLTBitMon_ParallelJobs::p, and query::result.
Referenced by GEMRecHitTrackMatch::analyze().
std::set< unsigned int > GEMRecHitMatcher::detIds | ( | void | ) | const |
Definition at line 91 of file GEMRecHitMatcher.cc.
References detid_to_recHits_, AlCaHLTBitMon_ParallelJobs::p, and query::result.
Referenced by partitionNumbers().
|
private |
Definition at line 32 of file GEMRecHitMatcher.cc.
References gem_rechits_, matchRecHitsToSimTrack(), and edm::Handle< T >::product().
Referenced by GEMRecHitMatcher().
|
private |
Definition at line 39 of file GEMRecHitMatcher.cc.
References GEMDetId::chamber(), chamber_to_recHits_, GEMDetId::chamberId(), filterCSVwithJSON::copy, gather_cfg::cout, ztail::d, detid_to_recHits_, SimHitMatcher::detIdsGEM(), matching::GEM_STRIP, SimHitMatcher::hitStripsInDetId(), i, matching::make_digi(), matchDeltaStrip_, maxBXGEM_, minBXGEM_, DetId::rawId(), GEMDetId::region(), GEMDetId::ring(), simhit_matcher_, GEMDetId::station(), superchamber_to_recHits_, and verbose().
Referenced by init().
int GEMRecHitMatcher::nLayersWithRecHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 138 of file GEMRecHitMatcher.cc.
References LayerTriplets::layers().
int GEMRecHitMatcher::nRecHits | ( | ) | const |
How many recHits in GEM did this simtrack get in total?
std::set< int > GEMRecHitMatcher::partitionNumbers | ( | ) | const |
Definition at line 168 of file GEMRecHitMatcher.cc.
References detIds(), query::result, and GEMDetId::roll().
GlobalPoint GEMRecHitMatcher::recHitMeanPosition | ( | const RecHitContainer & | rechits | ) | const |
Definition at line 201 of file GEMRecHitMatcher.cc.
References ztail::d, gen::n, recHitPosition(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
GlobalPoint GEMRecHitMatcher::recHitPosition | ( | const RecHit & | rechit | ) | const |
Definition at line 182 of file GEMRecHitMatcher.cc.
References GEMEtaPartition::centreOfStrip(), matching::digi_channel(), matching::digi_id(), matching::digi_type(), GEMGeometry::etaPartition(), gem_geo_, matching::GEM_STRIP, GEMGeometry::idToDet(), GeomDet::surface(), lumiQTWidget::t, and Surface::toGlobal().
Referenced by recHitMeanPosition().
const GEMRecHitMatcher::RecHitContainer & GEMRecHitMatcher::recHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 124 of file GEMRecHitMatcher.cc.
References chamber_to_recHits_, and no_recHits_.
const GEMRecHitMatcher::RecHitContainer & GEMRecHitMatcher::recHitsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 117 of file GEMRecHitMatcher.cc.
References detid_to_recHits_, and no_recHits_.
const GEMRecHitMatcher::RecHitContainer & GEMRecHitMatcher::recHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 131 of file GEMRecHitMatcher.cc.
References no_recHits_, and superchamber_to_recHits_.
std::set< int > GEMRecHitMatcher::stripNumbersInDetId | ( | unsigned int | detid | ) | const |
std::set< unsigned int > GEMRecHitMatcher::superChamberIds | ( | ) | const |
Definition at line 108 of file GEMRecHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, query::result, and superchamber_to_recHits_.
|
inline |
Definition at line 79 of file GEMRecHitMatcher.h.
References verbose_.
Referenced by matchRecHitsToSimTrack().
|
private |
Definition at line 101 of file GEMRecHitMatcher.h.
Referenced by chamberIds(), matchRecHitsToSimTrack(), and recHitsInChamber().
|
private |
Definition at line 100 of file GEMRecHitMatcher.h.
Referenced by detIds(), matchRecHitsToSimTrack(), and recHitsInDetId().
|
private |
Definition at line 93 of file GEMRecHitMatcher.h.
Referenced by recHitPosition().
|
private |
Definition at line 90 of file GEMRecHitMatcher.h.
Referenced by GEMRecHitMatcher(), and init().
|
private |
Definition at line 98 of file GEMRecHitMatcher.h.
Referenced by GEMRecHitMatcher(), and matchRecHitsToSimTrack().
|
private |
Definition at line 95 of file GEMRecHitMatcher.h.
Referenced by GEMRecHitMatcher(), and matchRecHitsToSimTrack().
|
private |
Definition at line 95 of file GEMRecHitMatcher.h.
Referenced by GEMRecHitMatcher(), and matchRecHitsToSimTrack().
|
private |
Definition at line 104 of file GEMRecHitMatcher.h.
Referenced by recHitsInChamber(), recHitsInDetId(), and recHitsInSuperChamber().
|
private |
Definition at line 92 of file GEMRecHitMatcher.h.
Referenced by matchRecHitsToSimTrack().
|
private |
Definition at line 102 of file GEMRecHitMatcher.h.
Referenced by matchRecHitsToSimTrack(), recHitsInSuperChamber(), and superChamberIds().
|
private |
Definition at line 96 of file GEMRecHitMatcher.h.
Referenced by GEMRecHitMatcher(), and verbose().