#include <TrackingRegion.h>
Public Types | |
typedef TransientTrackingRecHit::ConstRecHitPointer | Hit |
typedef std::vector< Hit > | Hits |
typedef PixelRecoRange< float > | Range |
Public Member Functions | |
virtual HitRZCompatibility * | checkRZ (const DetLayer *layer, const Hit &outerHit, const edm::EventSetup &iSetup, const DetLayer *outerlayer=0, float lr=0, float gz=0, float dr=0, float dz=0) const =0 |
virtual TrackingRegion * | clone () const =0 |
GlobalVector const & | direction () const |
the direction around which region is constructed | |
virtual Hits | hits (const edm::Event &ev, const edm::EventSetup &es, const ctfseeding::SeedingLayer *layer) const =0 |
get hits from layer compatible with region constraints | |
Range | invPtRange () const |
inverse pt range | |
virtual std::string | name () const |
GlobalPoint const & | origin () const |
float | originRBound () const |
bounds the particle vertex in the transverse plane | |
float | originZBound () const |
bounds the particle vertex in the longitudinal plane | |
virtual std::string | print () const |
float | ptMin () const |
minimal pt of interest | |
TrackingRegion * | restrictedRegion (const GlobalPoint &originPos, const float &originRBound, const float &originZBound) const |
clone region with new vertex position | |
void | setDirection (const GlobalVector &dir) |
TrackingRegion (const GlobalVector &direction, const GlobalPoint &originPos, const Range &invPtRange, const float &originRBound, const float &originZBound) | |
virtual | ~TrackingRegion () |
Private Attributes | |
GlobalVector | theDirection |
Range | theInvPtRange |
float | thePtMin |
GlobalPoint | theVertexPos |
float | theVertexRBound |
float | theVertexZBound |
kinematic data common to some concreate implementations of TrackingRegion.
Definition at line 40 of file TrackingRegion.h.
Definition at line 46 of file TrackingRegion.h.
typedef std::vector<Hit> TrackingRegion::Hits |
Definition at line 47 of file TrackingRegion.h.
typedef PixelRecoRange<float> TrackingRegion::Range |
Definition at line 45 of file TrackingRegion.h.
virtual TrackingRegion::~TrackingRegion | ( | ) | [inline, virtual] |
Definition at line 44 of file TrackingRegion.h.
{}
TrackingRegion::TrackingRegion | ( | const GlobalVector & | direction, |
const GlobalPoint & | originPos, | ||
const Range & | invPtRange, | ||
const float & | originRBound, | ||
const float & | originZBound | ||
) | [inline] |
Definition at line 52 of file TrackingRegion.h.
: theDirection( direction), theVertexPos( originPos), theInvPtRange( invPtRange), thePtMin(1.f/std::max( std::abs(invPtRange.max()), std::abs(invPtRange.min()) )), theVertexRBound( originRBound), theVertexZBound( originZBound) { }
virtual HitRZCompatibility* TrackingRegion::checkRZ | ( | const DetLayer * | layer, |
const Hit & | outerHit, | ||
const edm::EventSetup & | iSetup, | ||
const DetLayer * | outerlayer = 0 , |
||
float | lr = 0 , |
||
float | gz = 0 , |
||
float | dr = 0 , |
||
float | dz = 0 |
||
) | const [pure virtual] |
utility to check eta/theta hit compatibility with region constraints and outer hit constraint
Implemented in GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Referenced by HitPairGeneratorFromLayerPair::doublets(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), and HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs().
virtual TrackingRegion* TrackingRegion::clone | ( | ) | const [pure virtual] |
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Referenced by restrictedRegion().
GlobalVector const& TrackingRegion::direction | ( | ) | const [inline] |
the direction around which region is constructed
Definition at line 65 of file TrackingRegion.h.
References theDirection.
Referenced by CosmicSeedCreator::makeSeed(), and TSGSmart::run().
{ return theDirection; }
virtual Hits TrackingRegion::hits | ( | const edm::Event & | ev, |
const edm::EventSetup & | es, | ||
const ctfseeding::SeedingLayer * | layer | ||
) | const [pure virtual] |
get hits from layer compatible with region constraints
Implemented in GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Referenced by LayerHitMapCache::operator()(), BeamHaloPairGenerator::run(), GenericPairGenerator::run(), and GenericTripletGenerator::run().
Range TrackingRegion::invPtRange | ( | ) | const [inline] |
inverse pt range
Definition at line 83 of file TrackingRegion.h.
References theInvPtRange.
{ return theInvPtRange; }
virtual std::string TrackingRegion::name | ( | void | ) | const [inline, virtual] |
Reimplemented in GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 113 of file TrackingRegion.h.
Referenced by print().
{ return "TrackingRegion"; }
GlobalPoint const& TrackingRegion::origin | ( | ) | const [inline] |
The origin (centre,vertex) of the region.
The origin with bounds is ment to constraint point of the
closest approach of the track to the beam line
Definition at line 71 of file TrackingRegion.h.
References theVertexPos.
Referenced by SeedForPhotonConversionFromQuadruplets::buildSeedBool(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::failCheckRZCompatibility(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::failCheckSlopeTest(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::getEffectiveErrorOnZ(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::getSqrEffectiveErrorOnZ(), SeedForPhotonConversionFromQuadruplets::getSqrEffectiveErrorOnZ(), HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs(), PixelTripletNoTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), SeedFromConsecutiveHitsCreator::initialKinematic(), LayerHitMapCache::operator()(), PixelFitterByConformalMappingAndLine::run(), PixelFitterByHelixProjections::run(), KFBasedPixelFitter::run(), SeedForPhotonConversionFromQuadruplets::simpleGetSlope(), ThirdHitPrediction::ThirdHitPrediction(), and SeedForPhotonConversionFromQuadruplets::trajectorySeed().
{ return theVertexPos; }
float TrackingRegion::originRBound | ( | ) | const [inline] |
bounds the particle vertex in the transverse plane
Definition at line 74 of file TrackingRegion.h.
References theVertexRBound.
Referenced by PixelTripletNoTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), PixelTripletLargeTipGenerator::hitTriplets(), SeedFromConsecutiveHitsCreator::initialError(), restrictedRegion(), KFBasedPixelFitter::run(), ThirdHitPrediction::ThirdHitPrediction(), and SeedForPhotonConversionFromQuadruplets::trajectorySeed().
{ return theVertexRBound; }
float TrackingRegion::originZBound | ( | ) | const [inline] |
bounds the particle vertex in the longitudinal plane
Definition at line 77 of file TrackingRegion.h.
References theVertexZBound.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::failCheckSlopeTest(), SeedFromConsecutiveHitsCreator::initialError(), InnerDeltaPhi::InnerDeltaPhi(), restrictedRegion(), KFBasedPixelFitter::run(), SeedForPhotonConversionFromQuadruplets::simpleGetSlope(), and SeedForPhotonConversionFromQuadruplets::trajectorySeed().
{ return theVertexZBound; }
virtual std::string TrackingRegion::print | ( | void | ) | const [inline, virtual] |
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 114 of file TrackingRegion.h.
References PixelRecoRange< T >::max(), name(), theDirection, theInvPtRange, theVertexPos, theVertexRBound, and theVertexZBound.
Referenced by PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::loopOnPriVtx().
{ std::ostringstream str; str << name() <<" dir:"<<theDirection<<" vtx:"<<theVertexPos <<" dr:"<<theVertexRBound<<" dz:"<<theVertexZBound<<" pt:"<<1./theInvPtRange.max(); return str.str(); }
float TrackingRegion::ptMin | ( | ) | const [inline] |
minimal pt of interest
Definition at line 80 of file TrackingRegion.h.
References thePtMin.
Referenced by PixelTripletNoTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), PixelTripletLargeTipGenerator::hitTriplets(), SeedFromConsecutiveHitsCreator::initialError(), KFBasedPixelFitter::run(), ThirdHitPrediction::ThirdHitPrediction(), and SeedForPhotonConversionFromQuadruplets::trajectorySeed().
{ return thePtMin;}
TrackingRegion* TrackingRegion::restrictedRegion | ( | const GlobalPoint & | originPos, |
const float & | originRBound, | ||
const float & | originZBound | ||
) | const [inline] |
clone region with new vertex position
Definition at line 102 of file TrackingRegion.h.
References clone(), originRBound(), originZBound(), theVertexPos, theVertexRBound, and theVertexZBound.
{ TrackingRegion* restr = clone(); restr->theVertexPos = originPos; restr->theVertexRBound = originRBound; restr->theVertexZBound = originZBound; return restr; }
void TrackingRegion::setDirection | ( | const GlobalVector & | dir | ) | [inline] |
Definition at line 121 of file TrackingRegion.h.
References dir, and theDirection.
{ theDirection = dir; }
GlobalVector TrackingRegion::theDirection [private] |
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 125 of file TrackingRegion.h.
Referenced by direction(), print(), and setDirection().
Range TrackingRegion::theInvPtRange [private] |
Definition at line 127 of file TrackingRegion.h.
Referenced by invPtRange(), and print().
float TrackingRegion::thePtMin [private] |
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 128 of file TrackingRegion.h.
Referenced by ptMin().
GlobalPoint TrackingRegion::theVertexPos [private] |
Definition at line 126 of file TrackingRegion.h.
Referenced by origin(), print(), and restrictedRegion().
float TrackingRegion::theVertexRBound [private] |
Definition at line 129 of file TrackingRegion.h.
Referenced by originRBound(), print(), and restrictedRegion().
float TrackingRegion::theVertexZBound [private] |
Definition at line 130 of file TrackingRegion.h.
Referenced by originZBound(), print(), and restrictedRegion().