PFCheckHitPatter. More...
#include <PFCheckHitPattern.h>
Public Types | |
typedef std::pair < PFTrackHitInfo, PFTrackHitInfo > | PFTrackHitFullInfo |
typedef std::pair< unsigned int, unsigned int > | PFTrackHitInfo |
Public Member Functions | |
PFTrackHitFullInfo | analyze (edm::ESHandle< TrackerGeometry >, const reco::TrackBaseRef track, const TransientVertex &vert) |
PFCheckHitPattern () | |
void | print (const reco::TrackBaseRef track) const |
Print hit pattern on track. More... | |
~PFCheckHitPattern () | |
Private Types | |
typedef std::pair< uint32_t, uint32_t > | DetInfo |
typedef std::map< DetInfo, std::pair< double, double > > | RZrangeMap |
Private Member Functions | |
void | init (edm::ESHandle< TrackerGeometry >) |
Create map indicating r/z values of all layers/disks. More... | |
void | print (const reco::HitPattern::HitCategory, const reco::HitPattern &hp) const |
Static Private Member Functions | |
static bool | barrel (uint32_t subDet) |
Return a bool indicating if a given subdetector is in the barrel. More... | |
static DetInfo | interpretDetId (DetId detId) |
Private Attributes | |
bool | geomInitDone_ |
Note if geometry info is already initialized. More... | |
RZrangeMap | rangeRorZ_ |
|
private |
Return a pair<uint32, uint32> consisting of the numbers used by HitPattern to identify subdetector and layer number respectively.
Definition at line 65 of file PFCheckHitPattern.h.
typedef std::pair<PFTrackHitInfo, PFTrackHitInfo> PFCheckHitPattern::PFTrackHitFullInfo |
Definition at line 43 of file PFCheckHitPattern.h.
typedef std::pair<unsigned int, unsigned int> PFCheckHitPattern::PFTrackHitInfo |
Definition at line 42 of file PFCheckHitPattern.h.
|
private |
For a given subdetector & layer number, this stores the minimum and maximum r (or z) values if it is barrel (or endcap) respectively.
Definition at line 79 of file PFCheckHitPattern.h.
|
inline |
Definition at line 38 of file PFCheckHitPattern.h.
|
inline |
Definition at line 40 of file PFCheckHitPattern.h.
pair< PFCheckHitPattern::PFTrackHitInfo, PFCheckHitPattern::PFTrackHitInfo > PFCheckHitPattern::analyze | ( | edm::ESHandle< TrackerGeometry > | tkerGeomHandle_, |
const reco::TrackBaseRef | track, | ||
const TransientVertex & | vert | ||
) |
PFCheck if hit pattern of this track is consistent with it being produced at given vertex. Pair.first gives number of hits on track in front of vertex. Pair.second gives number of missing hits between vertex and innermost hit on track.
Definition at line 103 of file PFCheckHitPattern.cc.
References Reference_intrackfit_cff::barrel, edm::RefToBase< T >::get(), reco::HitPattern::getHitPattern(), reco::HitPattern::getLayer(), reco::HitPattern::getSubStructure(), reco::TrackBase::hitPattern(), AnalysisDataFormats_SUSYBSMObjects::hp, i, init, reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::numberOfHits(), PV3DBase< T, PVType, FrameType >::perp(), TransientVertex::position(), reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerHitFilter(), reco::HitPattern::validHitFilter(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
|
staticprivate |
Return a bool indicating if a given subdetector is in the barrel.
Definition at line 95 of file PFCheckHitPattern.cc.
References PixelSubdetector::PixelBarrel, StripSubdetector::TIB, and StripSubdetector::TOB.
|
private |
Create map indicating r/z values of all layers/disks.
Definition at line 25 of file PFCheckHitPattern.cc.
References Reference_intrackfit_cff::barrel, ztail::d, i, position, and detailsBasic3DVector::z.
|
staticprivate |
Definition at line 75 of file PFCheckHitPattern.cc.
References PXFDetId::disk(), edm::hlt::Exception, PXBDetId::layer(), TOBDetId::layer(), TIBDetId::layer(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, TIDDetId::wheel(), and TECDetId::wheel().
void PFCheckHitPattern::print | ( | const reco::TrackBaseRef | track | ) | const |
Print hit pattern on track.
Definition at line 174 of file PFCheckHitPattern.cc.
References gather_cfg::cout, edm::RefToBase< T >::get(), reco::TrackBase::hitPattern(), AnalysisDataFormats_SUSYBSMObjects::hp, reco::HitPattern::MISSING_INNER_HITS, reco::print(), and reco::HitPattern::TRACK_HITS.
|
private |
Definition at line 184 of file PFCheckHitPattern.cc.
References gather_cfg::cout, reco::HitPattern::getHitPattern(), reco::HitPattern::getHitType(), reco::HitPattern::getLayer(), reco::HitPattern::getSubStructure(), i, reco::HitPattern::numberOfHits(), and reco::HitPattern::trackerHitFilter().
|
private |
Note if geometry info is already initialized.
Definition at line 75 of file PFCheckHitPattern.h.
|
private |
Definition at line 80 of file PFCheckHitPattern.h.