#include <FiducialVolume.h>
Public Member Functions | |
void | addActivePoint (const GlobalPoint &point) |
add a point that belongs to the active volume | |
void | determinInnerDimensions () |
FiducialVolume (double tolerance=1.0) | |
bool | isValid () const |
check whether the volume is properly defined | |
double | maxR (bool withTolerance=true) const |
double | maxZ (bool withTolerance=true) const |
double | minR (bool withTolerance=true) const |
double | minZ (bool withTolerance=true) const |
void | reset () |
invalidate the volume | |
Private Attributes | |
double | maxR_ |
double | maxZ_ |
double | minR_ |
double | minZ_ |
double | tolerance_ |
The detector active volume is determined estimated as a non-zero thickness cylinder with outter dimensions maxZ and maxR. 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 | ( | double | tolerance = 1.0 | ) | [inline] |
Definition at line 28 of file FiducialVolume.h.
References reset().
: tolerance_(tolerance) { reset(); }
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().
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().
bool FiducialVolume::isValid | ( | void | ) | const |
check whether the volume is properly defined
Definition at line 20 of file FiducialVolume.cc.
Referenced by CachedTrajectory::getTrajectory().
double FiducialVolume::maxR | ( | bool | withTolerance = true | ) | const [inline] |
Definition at line 46 of file FiducialVolume.h.
References maxR_, and tolerance_.
Referenced by DetIdAssociator::buildMap(), BetaCalculatorECAL::calcEcalDeposit(), and CachedTrajectory::getTrajectory().
{ if (withTolerance) return maxR_+tolerance_; else return maxR_; }
double FiducialVolume::maxZ | ( | bool | withTolerance = true | ) | const [inline] |
Definition at line 60 of file FiducialVolume.h.
References maxZ_, and tolerance_.
Referenced by DetIdAssociator::buildMap(), BetaCalculatorECAL::calcEcalDeposit(), and CachedTrajectory::getTrajectory().
{ if (withTolerance) return maxZ_+tolerance_; else return maxZ_; }
double FiducialVolume::minR | ( | bool | withTolerance = true | ) | const [inline] |
Definition at line 39 of file FiducialVolume.h.
References minR_, and tolerance_.
Referenced by DetIdAssociator::buildMap(), BetaCalculatorECAL::calcEcalDeposit(), CachedTrajectory::getTrajectory(), and TrackExtrapolator::propagateTrackToVolume().
{ if (withTolerance && minR_>tolerance_) return minR_-tolerance_; else return minR_; }
double FiducialVolume::minZ | ( | bool | withTolerance = true | ) | const [inline] |
Definition at line 53 of file FiducialVolume.h.
References minZ_, and tolerance_.
Referenced by DetIdAssociator::buildMap(), BetaCalculatorECAL::calcEcalDeposit(), CachedTrajectory::getTrajectory(), and TrackExtrapolator::propagateTrackToVolume().
{ if (withTolerance && minZ_>tolerance_) return minZ_-tolerance_; else return minZ_; }
void FiducialVolume::reset | ( | void | ) |
double FiducialVolume::maxR_ [private] |
Definition at line 69 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), maxR(), and reset().
double FiducialVolume::maxZ_ [private] |
Definition at line 71 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), maxZ(), and reset().
double FiducialVolume::minR_ [private] |
Definition at line 68 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), isValid(), minR(), and reset().
double FiducialVolume::minZ_ [private] |
Definition at line 70 of file FiducialVolume.h.
Referenced by addActivePoint(), determinInnerDimensions(), isValid(), minZ(), and reset().
double FiducialVolume::tolerance_ [private] |