CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
TrackingRegion Class Referenceabstract

#include <TrackingRegion.h>

Inheritance diagram for TrackingRegion:
CosmicTrackingRegion GlobalTrackingRegion RectangularEtaPhiTrackingRegion

Public Types

using ctfHits = ctfseeding::SeedingLayer::Hits
 
typedef SeedingLayerSetsHits::ConstRecHitPointer Hit
 
typedef SeedingLayerSetsHits::Hits Hits
 
typedef PixelRecoRange< float > Range
 

Public Member Functions

virtual HitRZCompatibilitycheckRZ (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 TrackingRegionclone () const =0
 
GlobalVector const & direction () const
 the direction around which region is constructed More...
 
virtual Hits hits (const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const =0
 get hits from layer compatible with region constraints More...
 
Range invPtRange () const
 inverse pt range More...
 
virtual std::string name () const
 
GlobalPoint const & origin () const
 
float originRBound () const
 bounds the particle vertex in the transverse plane More...
 
float originZBound () const
 bounds the particle vertex in the longitudinal plane More...
 
float phiDirection () const
 
virtual std::string print () const
 
float ptMin () const
 minimal pt of interest More...
 
TrackingRegionrestrictedRegion (const GlobalPoint &originPos, const float &originRBound, const float &originZBound) const
 clone region with new vertex position More...
 
 TrackingRegion (const GlobalVector &direction, const GlobalPoint &originPos, const Range &invPtRange, const float &originRBound, const float &originZBound)
 
GlobalVector const & unitDirection () const
 
virtual ~TrackingRegion ()
 

Private Attributes

GlobalVector theDirection
 
Range theInvPtRange
 
float thePhi
 
float thePtMin
 
GlobalVector theUnitDirection
 
GlobalPoint theVertexPos
 
float theVertexRBound
 
float theVertexZBound
 

Detailed Description

kinematic data common to some concreate implementations of TrackingRegion.

Definition at line 40 of file TrackingRegion.h.

Member Typedef Documentation

Definition at line 48 of file TrackingRegion.h.

Definition at line 46 of file TrackingRegion.h.

Definition at line 47 of file TrackingRegion.h.

Definition at line 45 of file TrackingRegion.h.

Constructor & Destructor Documentation

virtual TrackingRegion::~TrackingRegion ( )
inlinevirtual

Definition at line 44 of file TrackingRegion.h.

44 {}
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.

57  : theDirection( direction), theUnitDirection(direction.unit()), theVertexPos( originPos),
58  theInvPtRange( invPtRange), thePhi(direction.barePhi()),
float originRBound() const
bounds the particle vertex in the transverse plane
T max() const
GlobalVector theUnitDirection
GlobalVector theDirection
T min() const
T barePhi() const
Definition: PV3DBase.h:68
GlobalPoint theVertexPos
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
float originZBound() const
bounds the particle vertex in the longitudinal plane
Vector3DBase unit() const
Definition: Vector3DBase.h:57
Range invPtRange() const
inverse pt range

Member Function Documentation

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
virtual TrackingRegion* TrackingRegion::clone ( ) const
pure virtual
GlobalVector const& TrackingRegion::direction ( ) const
inline
virtual Hits TrackingRegion::hits ( const edm::EventSetup es,
const SeedingLayerSetsHits::SeedingLayer layer 
) const
pure virtual
Range TrackingRegion::invPtRange ( ) const
inline

inverse pt range

Definition at line 86 of file TrackingRegion.h.

References runTauDisplay::dr, allConversions_cfi::dz, and hfClusterShapes_cfi::hits.

86 { return theInvPtRange; }
virtual std::string TrackingRegion::name ( void  ) const
inlinevirtual

Reimplemented in RectangularEtaPhiTrackingRegion, CosmicTrackingRegion, and GlobalTrackingRegion.

Definition at line 114 of file TrackingRegion.h.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

114 { 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 74 of file TrackingRegion.h.

Referenced by SeedForPhotonConversionFromQuadruplets::buildSeedBool(), CellularAutomaton::createAndConnectCells(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::failCheckRZCompatibility(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::failCheckSlopeTest(), CellularAutomaton::findTriplets(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::getEffectiveErrorOnZ(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::getSqrEffectiveErrorOnZ(), SeedForPhotonConversionFromQuadruplets::getSqrEffectiveErrorOnZ(), CAHitTripletGenerator::hitNtuplets(), CAHitQuadrupletGenerator::hitNtuplets(), HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs(), PixelQuadrupletGenerator::hitQuadruplets(), CAHitQuadrupletGenerator::hitQuadruplets(), PixelTripletNoTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), CAHitTripletGenerator::hitTriplets(), SeedFromConsecutiveHitsStraightLineCreator::initialKinematic(), SeedFromConsecutiveHitsTripletOnlyCreator::initialKinematic(), SeedFromConsecutiveHitsCreator::initialKinematic(), SeedFromConsecutiveHitsCreator::makeSeed(), LayerHitMapCache::operator()(), SeedFinderSelector::pass(), MultiHitGeneratorFromChi2::refit2Hits(), PixelFitterByConformalMappingAndLine::run(), PixelFitterByHelixProjections::run(), KFBasedPixelFitter::run(), SeedForPhotonConversionFromQuadruplets::simpleGetSlope(), ThirdHitPrediction::ThirdHitPrediction(), and SeedForPhotonConversionFromQuadruplets::trajectorySeed().

74 { return theVertexPos; }
GlobalPoint theVertexPos
float TrackingRegion::originRBound ( ) const
inline
float TrackingRegion::originZBound ( ) const
inline
float TrackingRegion::phiDirection ( ) const
inline

Definition at line 68 of file TrackingRegion.h.

68 { return thePhi;}
virtual std::string TrackingRegion::print ( void  ) const
inlinevirtual

Reimplemented in RectangularEtaPhiTrackingRegion, and GlobalTrackingRegion.

Definition at line 115 of file TrackingRegion.h.

References dataset::name, and harvestTrackValidationPlots::str.

Referenced by PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::loopOnPriVtx(), GlobalTrackingRegion::print(), and RectangularEtaPhiTrackingRegion::print().

115  {
116  std::ostringstream str;
117  str << name() <<" dir:"<<theDirection<<" vtx:"<<theVertexPos
118  <<" dr:"<<theVertexRBound<<" dz:"<<theVertexZBound<<" pt:"<<1./theInvPtRange.max();
119  return str.str();
120  }
T max() const
GlobalVector theDirection
GlobalPoint theVertexPos
virtual std::string name() const
float TrackingRegion::ptMin ( ) const
inline
TrackingRegion* TrackingRegion::restrictedRegion ( const GlobalPoint originPos,
const float &  originRBound,
const float &  originZBound 
) const
inline

clone region with new vertex position

Definition at line 103 of file TrackingRegion.h.

References clone(), theVertexPos, theVertexRBound, and theVertexZBound.

104  {
105  TrackingRegion* restr = clone();
106  restr->theVertexPos = originPos;
107  restr->theVertexRBound = originRBound;
108  restr->theVertexZBound = originZBound;
109  return restr;
110  }
float originRBound() const
bounds the particle vertex in the transverse plane
virtual TrackingRegion * clone() const =0
GlobalPoint theVertexPos
float originZBound() const
bounds the particle vertex in the longitudinal plane
GlobalVector const& TrackingRegion::unitDirection ( ) const
inline

Definition at line 66 of file TrackingRegion.h.

66 { return theUnitDirection; }
GlobalVector theUnitDirection

Member Data Documentation

GlobalVector TrackingRegion::theDirection
private

Definition at line 126 of file TrackingRegion.h.

Range TrackingRegion::theInvPtRange
private

Definition at line 129 of file TrackingRegion.h.

float TrackingRegion::thePhi
private

Definition at line 130 of file TrackingRegion.h.

float TrackingRegion::thePtMin
private

Definition at line 131 of file TrackingRegion.h.

GlobalVector TrackingRegion::theUnitDirection
private

Definition at line 127 of file TrackingRegion.h.

GlobalPoint TrackingRegion::theVertexPos
private

Definition at line 128 of file TrackingRegion.h.

Referenced by restrictedRegion().

float TrackingRegion::theVertexRBound
private

Definition at line 132 of file TrackingRegion.h.

Referenced by restrictedRegion().

float TrackingRegion::theVertexZBound
private

Definition at line 133 of file TrackingRegion.h.

Referenced by restrictedRegion().