#include <ThirdHitRZPredictionBase.h>
Public Types | |
typedef TkTrackingRegionsMargin< float > | Margin |
typedef PixelRecoRange< float > | Range |
Public Member Functions | |
const Range & | detRange () const |
const Range & | detSize () const |
void | initLayer (const DetLayer *layer) |
void | initTolerance (float tolerance) |
ThirdHitRZPredictionBase () | |
ThirdHitRZPredictionBase (float tolerance, const DetLayer *layer=0) | |
Protected Attributes | |
bool | theBarrel |
Range | theDetRange |
Range | theDetSize |
bool | theForward |
Margin | theTolerance |
Definition at line 18 of file ThirdHitRZPredictionBase.h.
typedef TkTrackingRegionsMargin<float> ThirdHitRZPredictionBase::Margin |
Definition at line 21 of file ThirdHitRZPredictionBase.h.
typedef PixelRecoRange<float> ThirdHitRZPredictionBase::Range |
Definition at line 20 of file ThirdHitRZPredictionBase.h.
ThirdHitRZPredictionBase::ThirdHitRZPredictionBase | ( | ) |
Definition at line 9 of file ThirdHitRZPredictionBase.cc.
: theBarrel(false), theForward(false), theTolerance(0.,0.) {}
ThirdHitRZPredictionBase::ThirdHitRZPredictionBase | ( | float | tolerance, |
const DetLayer * | layer = 0 |
||
) |
Definition at line 13 of file ThirdHitRZPredictionBase.cc.
References initLayer().
: theBarrel(false), theForward(false), theTolerance(tolerance, tolerance) { if (layer) initLayer(layer); }
const Range& ThirdHitRZPredictionBase::detRange | ( | ) | const [inline] |
Definition at line 26 of file ThirdHitRZPredictionBase.h.
References theDetRange.
{ return theDetRange; }
const Range& ThirdHitRZPredictionBase::detSize | ( | ) | const [inline] |
Definition at line 27 of file ThirdHitRZPredictionBase.h.
References theDetSize.
{ return theDetSize; }
void ThirdHitRZPredictionBase::initLayer | ( | const DetLayer * | layer | ) |
Definition at line 20 of file ThirdHitRZPredictionBase.cc.
References Reference_intrackfit_cff::barrel, Reference_intrackfit_cff::endcap, DetLayer::location(), CosmicsPD_Skims::maxZ, GeometricSearchDet::position(), CosmicsPD_Skims::radius, BarrelDetLayer::specificSurface(), BarrelDetLayer::surface(), ForwardDetLayer::surface(), theBarrel, theDetRange, theDetSize, theForward, and PV3DBase< T, PVType, FrameType >::z().
Referenced by PixelTripletHLTGenerator::hitTriplets(), and ThirdHitRZPredictionBase().
{ if (layer->location() == GeomDetEnumerators::barrel) { theBarrel = true; theForward = false; const BarrelDetLayer& bl = reinterpret_cast<const BarrelDetLayer&>(*layer); float halfThickness = bl.surface().bounds().thickness()/2; float radius = bl.specificSurface().radius(); theDetRange = Range(radius-halfThickness, radius+halfThickness); float maxZ = bl.surface().bounds().length()/2; theDetSize = Range(-maxZ, maxZ); } else if (layer->location() == GeomDetEnumerators::endcap) { theBarrel= false; theForward = true; const ForwardDetLayer& fl = reinterpret_cast<const ForwardDetLayer&>(*layer); float halfThickness = fl.surface().bounds().thickness()/2; float zLayer = fl.position().z() ; theDetRange = Range(zLayer-halfThickness, zLayer+halfThickness); const SimpleDiskBounds& diskRadialBounds = static_cast<const SimpleDiskBounds &>(fl.surface().bounds()); theDetSize = Range(diskRadialBounds.innerRadius(), diskRadialBounds.outerRadius()); } else { theBarrel = theForward = false; } }
void ThirdHitRZPredictionBase::initTolerance | ( | float | tolerance | ) | [inline] |
Definition at line 29 of file ThirdHitRZPredictionBase.h.
References theTolerance.
Referenced by PixelTripletHLTGenerator::hitTriplets().
{ theTolerance = Margin(tolerance, tolerance); }
bool ThirdHitRZPredictionBase::theBarrel [protected] |
Definition at line 33 of file ThirdHitRZPredictionBase.h.
Referenced by initLayer(), and ThirdHitRZPrediction< Propagator >::transform().
Range ThirdHitRZPredictionBase::theDetRange [protected] |
Definition at line 34 of file ThirdHitRZPredictionBase.h.
Referenced by detRange(), and initLayer().
Range ThirdHitRZPredictionBase::theDetSize [protected] |
Definition at line 34 of file ThirdHitRZPredictionBase.h.
Referenced by detSize(), and initLayer().
bool ThirdHitRZPredictionBase::theForward [protected] |
Definition at line 33 of file ThirdHitRZPredictionBase.h.
Referenced by initLayer().
Margin ThirdHitRZPredictionBase::theTolerance [protected] |
Definition at line 35 of file ThirdHitRZPredictionBase.h.
Referenced by initTolerance().