#include <TrackingTools/TrackAssociator/interface/FiducialVolume.h>
Public Member Functions | |
void | addActivePoint (const GlobalPoint &point) |
add a point that belongs to the active volume | |
void | determinInnerDimensions () |
finilize dimension calculations, fixes dimensions in a case of missing barrel or endcap | |
FiducialVolume () | |
bool | isValid () const |
check whether the volume is properly defined | |
const double & | maxR () const |
const double & | maxZ () const |
const double & | minR () const |
const double & | minZ () const |
void | reset () |
invalidate the volume | |
Private Attributes | |
double | maxR_ |
double | maxZ_ |
double | minR_ |
double | minZ_ |
The inner dimensions are found as minimum R and Z for two cases "barrel" (|eta|<1) and "endcap" (|eta|>1.7) correspondingly
Definition at line 26 of file FiducialVolume.h.
FiducialVolume::FiducialVolume | ( | ) | [inline] |
void FiducialVolume::addActivePoint | ( | const GlobalPoint & | point | ) |
add a point that belongs to the active volume
Definition at line 25 of file FiducialVolume.cc.
References PV3DBase< T, PVType, FrameType >::eta(), maxR_, maxZ_, minR_, minZ_, PV3DBase< T, PVType, FrameType >::perp(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by DetIdAssociator::buildMap().
00026 { 00027 if ( point.perp() > maxR_ ) maxR_ = point.perp(); 00028 if ( fabs(point.eta()) < 1 && point.perp() < minR_) minR_ = point.perp(); 00029 if ( fabs(point.z()) > maxZ_ ) maxZ_ = fabs(point.z()); 00030 if ( fabs(point.eta()) > 1.7 && fabs(point.z()) < minZ_) minZ_ = fabs(point.z()); 00031 }
void FiducialVolume::determinInnerDimensions | ( | ) |
finilize dimension calculations, fixes dimensions in a case of missing barrel or endcap
Definition at line 41 of file FiducialVolume.cc.
References maxR_, maxZ_, minR_, and minZ_.
Referenced by DetIdAssociator::buildMap().
00042 { 00043 if ( maxR_ > 0 && maxR_ < minR_ ) minR_ = maxR_; 00044 if ( maxZ_ > 0 && maxZ_ < minZ_ ) minZ_ = maxZ_; 00045 }
check whether the volume is properly defined
Definition at line 20 of file FiducialVolume.cc.
Referenced by CachedTrajectory::getTrajectory().
const double& FiducialVolume::maxR | ( | ) | const [inline] |
Definition at line 39 of file FiducialVolume.h.
References maxR_.
Referenced by DetIdAssociator::buildMap(), and CachedTrajectory::getTrajectory().
00039 { return maxR_; }
const double& FiducialVolume::maxZ | ( | ) | const [inline] |
Definition at line 41 of file FiducialVolume.h.
References maxZ_.
Referenced by DetIdAssociator::buildMap(), and CachedTrajectory::getTrajectory().
00041 { return maxZ_; }
const double& FiducialVolume::minR | ( | ) | const [inline] |
Definition at line 38 of file FiducialVolume.h.
References minR_.
Referenced by DetIdAssociator::buildMap(), and CachedTrajectory::getTrajectory().
00038 { return minR_; }
const double& FiducialVolume::minZ | ( | ) | const [inline] |
Definition at line 40 of file FiducialVolume.h.
References minZ_.
Referenced by DetIdAssociator::buildMap(), and CachedTrajectory::getTrajectory().
00040 { return minZ_; }
double FiducialVolume::maxR_ [private] |
Definition at line 45 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), maxR(), and reset().
double FiducialVolume::maxZ_ [private] |
Definition at line 47 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), maxZ(), and reset().
double FiducialVolume::minR_ [private] |
Definition at line 44 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), isValid(), minR(), and reset().
double FiducialVolume::minZ_ [private] |
Definition at line 46 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), isValid(), minZ(), and reset().