List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
utl::TabulatedFunction Class Reference

Class to hold collection (x,y) points and provide interpolation between them. More...

#include "utl/TabulatedFunction.h"

Inheritance diagram for utl::TabulatedFunction:
Inheritance graph
[legend]

Public Types

typedef std::vector< double > Array
 
typedef Array::const_iterator ArrayConstIterator
 
typedef Array::const_reference ArrayConstReference
 
typedef
Array::const_reverse_iterator 
ArrayConstReverseIterator
 
typedef Array::iterator ArrayIterator
 
typedef Array::reverse_iterator ArrayReverseIterator
 
typedef
ConstTabulatedFunctionIterator 
ConstIterator
 
typedef TabulatedFunctionIterator Iterator
 

Public Member Functions

Iterator Begin ()
 
ConstIterator Begin () const
 
void Clear ()
 
Iterator End ()
 
ConstIterator End () const
 
ConstIterator FindX (const double x) const
 
ConstIterator FindY (const double y) const
 
double GetBoundaryTolerance () const
 
unsigned int GetInterpolationOrder () const
 
unsigned int GetNPoints () const
 
const double & GetX (const unsigned int idx) const
 
double & GetX (const unsigned int idx)
 
const double & GetY (const unsigned int idx) const
 
double & GetY (const unsigned int idx)
 
Iterator Insert (const double x, const double y)
 
double InterpolateY (const double x, const unsigned int polyDegree) const
 Interpolate the Y value with a polyDegree polynomial. More...
 
bool IsInValidRange (const double x) const
 
bool operator!= (const TabulatedFunction &t) const
 
double operator() (const double x) const
 
bool operator== (const TabulatedFunction &t) const
 
Pair operator[] (const int idx) const
 Note: cannot be used in assignment. More...
 
void PushBack (const double x, const double y)
 
void ScaleX (const double s)
 
void ScaleY (const double s)
 
void SetBoundaryTolerance (const double tolerance)
 
void SetInterpolationOrder (const unsigned int interpolationOrder)
 
double SumX () const
 return the sum of X values More...
 
double SumY () const
 return the sum of Y values More...
 
void Swap (TabulatedFunction &tf)
 
 TabulatedFunction (const unsigned int interpolationOrder=1, const double boundaryTolerance=1e-3)
 
 TabulatedFunction (const std::vector< double > &xValues, const std::vector< double > &yValues, const unsigned int interpolationOrder=1, const double boundaryTolerance=1e-3)
 
ArrayConstReference XBack () const
 read-only reference to back of array of X More...
 
ArrayIterator XBegin ()
 begin of array of X More...
 
ArrayConstIterator XBegin () const
 begin of array of X More...
 
ArrayIterator XEnd ()
 end of array of X More...
 
ArrayConstIterator XEnd () const
 end of array of X More...
 
ArrayConstReference XFront () const
 read-only reference to front of array of X More...
 
ArrayReverseIterator XRBegin ()
 begin reverse iterator for X More...
 
ArrayConstReverseIterator XRBegin () const
 begin reverse iterator for X More...
 
ArrayReverseIterator XREnd ()
 end reverse iterator for X More...
 
ArrayConstReverseIterator XREnd () const
 
double Y (const double x) const
 Get or interpolate the Y value that corresponds to parameter x. More...
 
ArrayConstReference YBack () const
 read-only reference to back of array of Y More...
 
ArrayIterator YBegin ()
 begin of array of Y More...
 
ArrayConstIterator YBegin () const
 begin of array of Y More...
 
ArrayIterator YEnd ()
 end of array of Y More...
 
ArrayConstIterator YEnd () const
 end of array of Y More...
 
ArrayConstReference YFront () const
 read-only reference to front of array of Y More...
 
ArrayReverseIterator YRBegin ()
 begin reverse iterator for Y More...
 
ArrayConstReverseIterator YRBegin () const
 begin reverse iterator for Y More...
 
ArrayReverseIterator YREnd ()
 end reverse iterator for Y More...
 
ArrayConstReverseIterator YREnd () const
 end reverse iterator for Y More...
 

Protected Member Functions

void FillTable (const std::vector< double > &xValues, const std::vector< double > &yValues)
 

Protected Attributes

Array fX
 
Array fY
 

Private Member Functions

double LinearInterpolateY (const double x) const
 

Private Attributes

double fBoundaryTolerance
 
unsigned int fInterpolationOrder
 

Detailed Description

Class to hold collection (x,y) points and provide interpolation between them.

Author
Luis Prado Jr. The interpolation methods in this class are based on the interpolation algorithm of DIVDIF (CERNLIB)
Date
26 Jan 2003

Definition at line 27 of file TabulatedFunction.h.

Member Typedef Documentation

typedef std::vector<double> utl::TabulatedFunction::Array

Definition at line 30 of file TabulatedFunction.h.

typedef Array::const_iterator utl::TabulatedFunction::ArrayConstIterator

Definition at line 32 of file TabulatedFunction.h.

typedef Array::const_reference utl::TabulatedFunction::ArrayConstReference

Definition at line 35 of file TabulatedFunction.h.

typedef Array::const_reverse_iterator utl::TabulatedFunction::ArrayConstReverseIterator

Definition at line 34 of file TabulatedFunction.h.

typedef Array::iterator utl::TabulatedFunction::ArrayIterator

Definition at line 31 of file TabulatedFunction.h.

typedef Array::reverse_iterator utl::TabulatedFunction::ArrayReverseIterator

Definition at line 33 of file TabulatedFunction.h.

Definition at line 37 of file TabulatedFunction.h.

Definition at line 36 of file TabulatedFunction.h.

Constructor & Destructor Documentation

utl::TabulatedFunction::TabulatedFunction ( const unsigned int  interpolationOrder = 1,
const double  boundaryTolerance = 1e-3 
)
inline

Definition at line 39 of file TabulatedFunction.h.

utl::TabulatedFunction::TabulatedFunction ( const std::vector< double > &  xValues,
const std::vector< double > &  yValues,
const unsigned int  interpolationOrder = 1,
const double  boundaryTolerance = 1e-3 
)
inline

Definition at line 45 of file TabulatedFunction.h.

References FillTable().

Member Function Documentation

Iterator utl::TabulatedFunction::Begin ( )
inline
ConstIterator utl::TabulatedFunction::Begin ( ) const
inline

Definition at line 70 of file TabulatedFunction.h.

References fX, and fY.

void utl::TabulatedFunction::Clear ( )
inline
Iterator utl::TabulatedFunction::End ( )
inline
ConstIterator utl::TabulatedFunction::End ( ) const
inline

Definition at line 73 of file TabulatedFunction.h.

References fX, and fY.

void TabulatedFunction::FillTable ( const std::vector< double > &  xValues,
const std::vector< double > &  yValues 
)
protected

Definition at line 18 of file TabulatedFunction.cc.

References ERROR, and std::swap().

Referenced by TabulatedFunction().

ConstTabulatedFunctionIterator TabulatedFunction::FindX ( const double  x) const

Definition at line 196 of file TabulatedFunction.cc.

Referenced by TestOfflineUtils_ROOT_io::IsEqual().

ConstTabulatedFunctionIterator TabulatedFunction::FindY ( const double  y) const

Definition at line 211 of file TabulatedFunction.cc.

double utl::TabulatedFunction::GetBoundaryTolerance ( ) const
inline

Definition at line 190 of file TabulatedFunction.h.

References fBoundaryTolerance.

unsigned int utl::TabulatedFunction::GetInterpolationOrder ( ) const
inline

Definition at line 185 of file TabulatedFunction.h.

References fInterpolationOrder.

unsigned int utl::TabulatedFunction::GetNPoints ( ) const
inline

Definition at line 55 of file TabulatedFunction.h.

References fX.

Referenced by G4StationSimulatorOG::AddProperty(), G4StationSimulatorOG::G4StationFastCerenkov::AlongStepDoIt(), G4StationSimulatorOG::G4TankFastCerenkov::AlongStepDoIt(), G4TankSimulatorASCII::G4TankFastCerenkov::AlongStepDoIt(), G4XTankSimulatorAG::G4XTankFastCerenkov::AlongStepDoIt(), G4TankSimulatorOG::G4TankFastCerenkov::AlongStepDoIt(), FdCalibratorOG::FdCalibrator::ApplyCalibration(), FdLightCollectionEfficiencyKG::Bootstrapper::Bootstrap(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalcTraceDivision(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateAdditionalIterationsToMeetTarget(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateGeometryAndDepth(), otoa::LongitudinalXmaxScanner::CalculateLightFactor(), SdSimpleSimKG::SdSimpleSim::CalculateLogZdist(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculatePixelTraceSum(), evt::GaisserHillas4Parameter::CalculateR(), FdLightCollectionEfficiencyKG::TimeRangeCalculator::CalculateStartStopTimes(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTargetRelUncertainty(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeEfficiency(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeTraceSum(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateWaveLengths(), ShowerLightSimulatorKG::ShowerLightSimulator::CherenkovLight(), FdProfileConstrainedGeometryFit::PCGFitter::CombinedChi2(), FdProfileConstrainedGeometryFitPG::PCGFitter::CombinedChi2(), TelescopeSimulatorLX::FDsimG4Materials::ConstructTableOfMaterials(), SdPMTSimulatorASCII::SdPMTSimulator::ConvertPEToBaseSignal(), FdCalibratorOG::FdCalibrator::CorrectFDTime(), G4TankSimulatorOG::G4TankConstruction::CreateHDPE(), G4TankSimulatorASCII::G4TankConstruction::CreateHDPE(), G4XTankSimulatorAG::G4XTankConstruction::CreateHDPE(), G4TankSimulatorOG::G4TankConstruction::CreateInterface(), G4TankSimulatorASCII::G4TankConstruction::CreateInterface(), G4XTankSimulatorAG::G4XTankConstruction::CreateInterface(), G4TankSimulatorOG::G4TankConstruction::CreateLiner(), G4TankSimulatorASCII::G4TankConstruction::CreateLiner(), G4XTankSimulatorAG::G4XTankConstruction::CreateLiner(), G4TankSimulatorOG::G4TankConstruction::CreateLucite(), G4TankSimulatorASCII::G4TankConstruction::CreateLucite(), G4XTankSimulatorAG::G4XTankConstruction::CreateLucite(), G4TankSimulatorOG::G4TankConstruction::CreatePyrex(), G4TankSimulatorASCII::G4TankConstruction::CreatePyrex(), G4XTankSimulatorAG::G4XTankConstruction::CreatePyrex(), G4TankSimulatorOG::G4TankConstruction::CreatePyrex1(), G4TankSimulatorASCII::G4TankConstruction::CreatePyrex1(), G4XTankSimulatorAG::G4XTankConstruction::CreatePyrex1(), G4TankSimulatorOG::G4TankConstruction::CreateWater(), G4TankSimulatorASCII::G4TankConstruction::CreateWater(), G4XTankSimulatorAG::G4XTankConstruction::CreateWater(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), atm::ParametricXMLMieModel::EvaluateMieScattering(), atm::NonParametricXMLMieModel::EvaluateMieScattering(), atm::MieModelOff::EvaluateMieScattering(), atm::RayleighModelOff::EvaluateRayleighScattering(), atm::HumidAirRayleighModel::EvaluateRayleighScattering(), atm::ParametricXMLRayleighModel::EvaluateRayleighScattering(), otoa::FD2ADST::FillAtmosphericProfileVars(), otoa::FD2ADST::FillCloudCameraDataBrief(), otoa::FD2ADST::FillCloudsBetweenEyeAndShower(), otoa::FD2ADST::FillEyeApertureLight(), otoa::FD2ADST::FillFdProfile(), SdPMTSimulatorOG::SdPMTSimulator::FillPulseShape(), otoa::MD2ADST::FillRecShower(), otoa::Offline2ADST::FillSim(), otoa::FD2ADST::FillTelRecData(), TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), fdDoubleBumpFinder::FdDoubleBumpFinder::Fit(), SdSimpleSimKG::SdSimpleSim::FitDecay(), FdProfileReconstructorKG::OpticalHalo::Flasher2008Fraction(), TimeModel::Get_dNdX_FromProfile(), TimeModel::Get_dNdz_FromProfile(), FdEnergyDepositFinderKG::TelescopeDataBin::GetArcLengthFunction(), otoa::fd::GetCalibrationConstant(), fdet::Telescope::GetConfigSignatureStr(), TimeModelTestKG::TimeModelTest::GetLogZdist(), SdSimpleSimKG::SdSimpleSim::GetLogZdist(), fdet::Telescope::GetMeasuredRelativeEfficiency(), atm::ProfileResult::GetXValues(), atm::ProfileResult::GetYValues(), FdProfileConstrainedGeometryFit::ProfileChi2::GuessGHParameters(), FdProfileConstrainedGeometryFitPG::ProfileChi2::GuessGHParameters(), FdProfileReconstructorKG::FdProfileReconstructor::GuessShowerMaximum(), SdPMTSimulatorASCII::SdPMTSimulator::Init(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), FdCherenkovFinderOG::FdCherenkovFinder::InitialCherenkov(), FdProfileReconstructorKG::EnergyFitter::InitializeGHFit(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsSelected(), FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize(), main(), FdLightCollectionEfficiencyKG::Bootstrapper::MaxRelUncertaintyBelowThreshold(), atm::ProfileResult::MaxX(), utl::MuonTimeModel::MuonTimeModel(), UserModule::PlotEnergyDeposit(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::PlotLDF(), UserModule::PlotLongitudinalProfile(), UserModule::PlotTotalCherBeam(), UserModule::PlotTotalFluorLight(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::ProcessEvent(), FdProfileReconstructorKG::FdProfileReconstructor::ReFitProfile(), ConexShowerGeneratorKG::ConexShowerGenerator::Run(), MCShowerCheckerOG::MCShowerChecker::Run(), ShowerLightSimulatorKG::ShowerLightSimulator::Run(), FdLaserEnergyReconstructorKG::FdLaserEnergyReconstructor::Run(), SdSimpleSimKG::SdSimpleSim::Run(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::Run(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Run(), UniversalityFitter::UniversalityFitter::Run(), FdEnergyDepositFinderKG::ProfileFitter::SetProfileData(), FastTankSimulatorOG::FastTankSimulator::SimulatePhotons(), FdCherenkovSubtracterOG::FdCherenkovSubtracter::SubtractCherenkov(), ReaderTest::testTabulatedFunction(), and FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::WriteDebugInfo().

const double& utl::TabulatedFunction::GetX ( const unsigned int  idx) const
inline

Definition at line 165 of file TabulatedFunction.h.

References fX.

Referenced by FdLightCollectionEfficiencyKG::Bootstrapper::Bootstrap(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalcTraceDivision(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateGeometryAndDepth(), otoa::LongitudinalXmaxScanner::CalculateLightFactor(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculatePixelTraceSum(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateProfiles(), FdLightCollectionEfficiencyKG::TimeRangeCalculator::CalculateStartStopTimes(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTargetRelUncertainty(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeTraceSum(), atm::GDASProfileModel::CheckForUpdates(), atm::RadiosondeDBProfileModel::CheckForUpdates(), FdCherenkovFinderOG::FdCherenkovFinder::CherenkovFinderAtAperture(), FdProfileConstrainedGeometryFit::PCGFitter::CombinedChi2(), FdProfileConstrainedGeometryFitPG::PCGFitter::CombinedChi2(), TelescopeSimulatorLX::FDsimG4Materials::ConstructTableOfMaterials(), FdCalibratorOG::FdCalibrator::CorrectFDTime(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), atm::ParametricXMLMieModel::EvaluateMieScattering(), atm::NonParametricXMLMieModel::EvaluateMieScattering(), atm::HumidAirRayleighModel::EvaluateRayleighScattering(), atm::ParametricXMLRayleighModel::EvaluateRayleighScattering(), otoa::FD2ADST::FillAtmosphericProfileVars(), otoa::FD2ADST::FillCloudCameraDataBrief(), otoa::FD2ADST::FillCloudsBetweenEyeAndShower(), otoa::FD2ADST::FillTelRecData(), fdet::Telescope::GetMeasuredRelativeEfficiency(), FdCherenkovFinderOG::FdCherenkovFinder::InitialCherenkov(), main(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::ProcessEvent(), FdProfileReconstructorKG::FdProfileReconstructor::ReFitProfile(), MCShowerCheckerOG::MCShowerChecker::Run(), FdEnergyDepositFinderKG::ProfileFitter::SetProfileData(), FastTankSimulatorOG::FastTankSimulator::SimulatePhotons(), and FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::WriteDebugInfo().

double& utl::TabulatedFunction::GetX ( const unsigned int  idx)
inline

Definition at line 167 of file TabulatedFunction.h.

References fX.

const double& utl::TabulatedFunction::GetY ( const unsigned int  idx) const
inline

Definition at line 162 of file TabulatedFunction.h.

References fY.

Referenced by FdLightCollectionEfficiencyKG::Bootstrapper::Bootstrap(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalcTraceDivision(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateAdditionalIterationsToMeetTarget(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateAttenuationAlongTrack(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateAttenuationToEye(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateCherenkovAtTrack(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateDiagonalParameters(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateDirectCherenkovMatrix(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateDirectCherenkovMatrix(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateGeometryAndDepth(), otoa::LongitudinalXmaxScanner::CalculateLightFactor(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateProfiles(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateScatteringToEye(), FdLightCollectionEfficiencyKG::TimeRangeCalculator::CalculateStartStopTimes(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTargetRelUncertainty(), atm::RadiosondeDBProfileModel::CheckForUpdates(), atm::GDASProfileModel::CheckForUpdates(), FdCherenkovFinderOG::FdCherenkovFinder::CherenkovFinderAtAperture(), ShowerLightSimulatorKG::ShowerLightSimulator::CherenkovLight(), FdProfileConstrainedGeometryFit::PCGFitter::CombinedChi2(), FdProfileConstrainedGeometryFitPG::PCGFitter::CombinedChi2(), TelescopeSimulatorLX::FDsimG4Materials::ConstructTableOfMaterials(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), atm::ParametricXMLMieModel::EvaluateMieScattering(), atm::NonParametricXMLMieModel::EvaluateMieScattering(), atm::HumidAirRayleighModel::EvaluateRayleighScattering(), atm::ParametricXMLRayleighModel::EvaluateRayleighScattering(), otoa::FD2ADST::FillAtmosphericProfileVars(), fdet::Telescope::GetMeasuredRelativeEfficiency(), FdProfileReconstructorKG::FdProfileReconstructor::GuessShowerMaximum(), FdCherenkovFinderOG::FdCherenkovFinder::InitialCherenkov(), FdLightCollectionEfficiencyKG::Bootstrapper::MaxRelUncertaintyBelowThreshold(), FdEnergyDepositFinderKG::CFMatrixCalculator::MultipleScatteringFraction(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::PekalaFraction(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::ProcessEvent(), FdProfileReconstructorKG::FdProfileReconstructor::ReFitProfile(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::RobertsFraction(), MCShowerCheckerOG::MCShowerChecker::Run(), FdEnergyDepositFinderKG::ProfileFitter::SetProfileData(), FastTankSimulatorOG::FastTankSimulator::SimulatePhotons(), FdCherenkovSubtracterOG::FdCherenkovSubtracter::SubtractCherenkov(), and FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::WriteDebugInfo().

double& utl::TabulatedFunction::GetY ( const unsigned int  idx)
inline

Definition at line 168 of file TabulatedFunction.h.

References fY.

TabulatedFunctionIterator TabulatedFunction::Insert ( const double  x,
const double  y 
)
double TabulatedFunction::InterpolateY ( const double  x,
const unsigned int  polyDegree 
) const
bool utl::TabulatedFunction::IsInValidRange ( const double  x) const
inline
double TabulatedFunction::LinearInterpolateY ( const double  x) const
private

return the y value corresponding to x or do a linear interpolation throw OutOfBoundException if necessary

Definition at line 76 of file TabulatedFunction.cc.

References ERROR.

bool utl::TabulatedFunction::operator!= ( const TabulatedFunction t) const
inline

Definition at line 182 of file TabulatedFunction.h.

References operator==().

double utl::TabulatedFunction::operator() ( const double  x) const
inline

Definition at line 159 of file TabulatedFunction.h.

References Y().

bool utl::TabulatedFunction::operator== ( const TabulatedFunction t) const
inline

Definition at line 179 of file TabulatedFunction.h.

References fX, and fY.

Referenced by operator!=().

Pair utl::TabulatedFunction::operator[] ( const int  idx) const
inline

Note: cannot be used in assignment.

Definition at line 58 of file TabulatedFunction.h.

References fX, and fY.

void TabulatedFunction::PushBack ( const double  x,
const double  y 
)

Definition at line 57 of file TabulatedFunction.cc.

References max, and WARNING.

Referenced by fdet::Telescope::CachePixelCalibrations(), fdet::Telescope::CachePixelOpticalEfficiencyCorrections(), atm::MeasuredDBMieModel::CheckForUpdates(), atm::VMieModel::EvaluateScatteringAngleDistribution(), atm::VRayleighModel::EvaluateScatteringAngleDistribution(), io::FillShowerProfileDataFromConex(), FdProfileReconstructorKG::OpticalHalo::Flasher2008Fraction(), FdEnergyDepositFinderKG::TelescopeDataBin::GetArcLengthFunction(), cdet::COverrideXMLManager::GetData(), cdet::CModelsXMLManager::GetData(), sdet::SModelsXMLManager::GetData(), TelescopeSimulatorLX::FDsimG4XMLManager::GetData(), utl::Branch::GetData(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::GetImpedanceAt(), fdet::Telescope::GetMeasuredRelativeEfficiency(), fdet::Corrector::GetRefractiveIndex(), fdet::FModelsXMLManager::GetTabulatedModelData(), main(), utl::NoiseCCIR670::NoiseCCIR670(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::PlotLDF(), io::AiresShowerFile::Read(), io::CorsikaShowerFile::ReadProfile(), MuonProfileBuilder::MuonProfileBuilder::Run(), ProfileSimulatorOG::ProfileSimulator::Run(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Run(), FdLightCollectionEfficiencyKG::SimMockEvent::SetLongitudinalProfilesFromGH(), G4TankSimulatorOG::G4TankConstruction::SetXMLParameters(), G4TankSimulatorASCII::G4TankConstruction::SetXMLParameters(), G4XTankSimulatorAG::G4XTankConstruction::SetXMLParameters(), G4StationSimulatorOG::G4StationConstruction::SetXMLParameters(), TestOfflineUtils_ROOT_io::testMultiTabulatedFunction(), TestRandomSamplerFromCDF::TestTabulatedFunction(), TestRandomSamplerFromPDF::TestTabulatedFunction(), TestOfflineUtils_ROOT_io::testTabulatedFunction(), and utl::MuonTimeModel::UpdateModel().

void utl::TabulatedFunction::ScaleX ( const double  s)
inline

Definition at line 195 of file TabulatedFunction.h.

References utl::s, XBegin(), and XEnd().

void utl::TabulatedFunction::ScaleY ( const double  s)
inline

Definition at line 204 of file TabulatedFunction.h.

References utl::s, YBegin(), and YEnd().

void utl::TabulatedFunction::SetBoundaryTolerance ( const double  tolerance)
inline
void utl::TabulatedFunction::SetInterpolationOrder ( const unsigned int  interpolationOrder)
inline

Definition at line 187 of file TabulatedFunction.h.

References fInterpolationOrder.

double utl::TabulatedFunction::SumX ( ) const
inline

return the sum of X values

Definition at line 171 of file TabulatedFunction.h.

References fX.

double utl::TabulatedFunction::SumY ( ) const
inline

return the sum of Y values

Definition at line 174 of file TabulatedFunction.h.

References fY.

Referenced by FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize().

void utl::TabulatedFunction::Swap ( TabulatedFunction tf)
inline
ArrayConstReference utl::TabulatedFunction::XBack ( ) const
inline
ArrayIterator utl::TabulatedFunction::XBegin ( )
inline
ArrayConstIterator utl::TabulatedFunction::XBegin ( ) const
inline

begin of array of X

Definition at line 82 of file TabulatedFunction.h.

References fX.

ArrayIterator utl::TabulatedFunction::XEnd ( )
inline
ArrayConstIterator utl::TabulatedFunction::XEnd ( ) const
inline

end of array of X

Definition at line 106 of file TabulatedFunction.h.

References fX.

ArrayConstReference utl::TabulatedFunction::XFront ( ) const
inline
ArrayReverseIterator utl::TabulatedFunction::XRBegin ( )
inline

begin reverse iterator for X

Definition at line 85 of file TabulatedFunction.h.

References fX.

ArrayConstReverseIterator utl::TabulatedFunction::XRBegin ( ) const
inline

begin reverse iterator for X

Definition at line 88 of file TabulatedFunction.h.

References fX.

ArrayReverseIterator utl::TabulatedFunction::XREnd ( )
inline

end reverse iterator for X

Definition at line 109 of file TabulatedFunction.h.

References fX.

ArrayConstReverseIterator utl::TabulatedFunction::XREnd ( ) const
inline

Definition at line 112 of file TabulatedFunction.h.

References fX.

double utl::TabulatedFunction::Y ( const double  x) const
inline

Get or interpolate the Y value that corresponds to parameter x.

Definition at line 152 of file TabulatedFunction.h.

References fInterpolationOrder, and InterpolateY().

Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackground(), FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackgroundFromVariance(), G4StationSimulatorOG::G4StationFastCerenkov::AlongStepDoIt(), G4StationSimulatorOG::G4TankFastCerenkov::AlongStepDoIt(), G4XTankSimulatorAG::G4XTankFastCerenkov::AlongStepDoIt(), G4TankSimulatorASCII::G4TankFastCerenkov::AlongStepDoIt(), G4TankSimulatorOG::G4TankFastCerenkov::AlongStepDoIt(), RdChannelAmplitudeCalibrator::RdChannelAmplitudeCalibrator::ApplyResponse(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateDirectCherenkovMatrix(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateDirectCherenkovMatrix(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateFluorescenceMatrix(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateFluorescenceMatrix(), otoa::LongitudinalXmaxScanner::CalculateLightFactor(), SdSimpleSimKG::SdSimpleSim::CalculateLogZdist(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateMieAndRayScattCherenkovMatrix(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateMieAndRayScattCherenkovMatrix(), evt::GaisserHillas4Parameter::CalculateR(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::CalculateWaveLengths(), DrumPhotonGeneratorOG::DrumPhotonGenerator::CalibrateTelescope(), FdCherenkovFinderOG::FdCherenkovFinder::CherenkovFinderAtAperture(), ShowerLightSimulatorKG::ShowerLightSimulator::CherenkovLight(), SdPMTSimulatorASCII::SdPMTSimulator::ConvertPEToBaseSignal(), FdCalibratorOG::FdCalibrator::CorrectFDTime(), G4TankSimulatorOG::G4TankConstruction::CreateHDPE(), G4TankSimulatorASCII::G4TankConstruction::CreateHDPE(), G4XTankSimulatorAG::G4XTankConstruction::CreateHDPE(), G4TankSimulatorOG::G4TankConstruction::CreateInterface(), G4TankSimulatorASCII::G4TankConstruction::CreateInterface(), G4XTankSimulatorAG::G4XTankConstruction::CreateInterface(), G4TankSimulatorOG::G4TankConstruction::CreateLiner(), G4TankSimulatorASCII::G4TankConstruction::CreateLiner(), G4XTankSimulatorAG::G4XTankConstruction::CreateLiner(), G4TankSimulatorOG::G4TankConstruction::CreateLucite(), G4TankSimulatorASCII::G4TankConstruction::CreateLucite(), G4XTankSimulatorAG::G4XTankConstruction::CreateLucite(), G4TankSimulatorOG::G4TankConstruction::CreatePyrex(), G4XTankSimulatorAG::G4XTankConstruction::CreatePyrex(), G4TankSimulatorASCII::G4TankConstruction::CreatePyrex(), G4TankSimulatorOG::G4TankConstruction::CreatePyrex1(), G4TankSimulatorASCII::G4TankConstruction::CreatePyrex1(), G4XTankSimulatorAG::G4XTankConstruction::CreatePyrex1(), G4TankSimulatorOG::G4TankConstruction::CreateWater(), G4XTankSimulatorAG::G4XTankConstruction::CreateWater(), G4TankSimulatorASCII::G4TankConstruction::CreateWater(), utl::MuonTimeModel::dNdlogz(), TimeModel::dNdz(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), atm::MeasuredDBMieModel::EvaluateMieScattering(), LaserLightSimulatorNA::LaserLightSimulator::EvaluatePhotons(), otoa::FD2ADST::FillEyeApertureLight(), otoa::Offline2ADST::FillSim(), otoa::FD2ADST::FillTelRecData(), TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), SdSimpleSimKG::SdSimpleSim::FitDecay(), FdProfileReconstructorKG::OpticalHalo::Flasher2008Fraction(), ShowerLightSimulatorKG::ShowerLightSimulator::FluorescenceLight(), atm::MeasuredDBMieModel::GetAttenuationLength(), fdet::Telescope::GetConfigSignatureStr(), FdLightCollectionEfficiencyKG::PixelToApertureLightConverter::GetConversionConstant(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::GetImpedanceAt(), TimeModelTestKG::TimeModelTest::GetLogZdist(), SdSimpleSimKG::SdSimpleSim::GetLogZdist(), fdet::Telescope::GetMeasuredRelativeEfficiency(), fdet::Telescope::GetModelWavelengthDependence(), utl::NoiseCCIR670::GetSpectralFieldNoiseAtFrequency(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize(), main(), TelescopeSimulatorKG2::RTFunctions::MirrorDiffusion(), FdEnergyDepositFinderKG::CFMatrixCalculator::MultipleScatteringFraction(), operator()(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::PekalaFraction(), UserModule::PlotEnergyDeposit(), UserModule::PlotLongitudinalProfile(), UserModule::PlotTotalCherBeam(), UserModule::PlotTotalFluorLight(), ShowerLightSimulatorKG::ShowerLightSimulator::PrimaryCherenkovLight(), G4StationSimulatorOG::G4StationFastCerenkov::PropagateInDome(), G4StationSimulatorOG::G4TankFastCerenkov::PropagateInDome(), G4TankSimulatorOG::G4TankFastCerenkov::PropagateInDome(), G4StationSimulatorOG::G4StationFastCerenkov::PropagateInInterface(), G4StationSimulatorOG::G4TankFastCerenkov::PropagateInInterface(), G4TankSimulatorOG::G4TankFastCerenkov::PropagateInInterface(), G4XTankSimulatorAG::G4XTankFastCerenkov::PropogateInDome(), G4TankSimulatorASCII::G4TankFastCerenkov::PropogateInDome(), G4XTankSimulatorAG::G4XTankFastCerenkov::PropogateInInterface(), G4TankSimulatorASCII::G4TankFastCerenkov::PropogateInInterface(), io::AiresShowerFile::Read(), FdProfileReconstructorKG::CherenkovFluorescenceMatrix::RobertsFraction(), MeanNpeFillerKG::MeanNpeFiller::Run(), ReadAerosolHLNS::ReadAerosolHL::Run(), ThresholdCalculatorKG::ThresholdCalculator::Run(), LDFTestKG::LDFTest::Run(), TelescopeSimulatorKG::TelescopeSimulator::Run(), TelescopeSimulatorKG2::TelescopeSimulator::Run(), SdSimpleSimKG::SdSimpleSim::Run(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::Run(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Run(), G4StationSimulatorOG::G4StationFastCerenkov::ScatterOffFloor(), G4StationSimulatorOG::G4TankFastCerenkov::ScatterOffFloor(), G4XTankSimulatorAG::G4XTankFastCerenkov::ScatterOffFloor(), G4TankSimulatorASCII::G4TankFastCerenkov::ScatterOffFloor(), G4TankSimulatorOG::G4TankFastCerenkov::ScatterOffFloor(), G4StationSimulatorOG::G4StationFastCerenkov::ScatterOffRoof(), G4StationSimulatorOG::G4TankFastCerenkov::ScatterOffRoof(), G4XTankSimulatorAG::G4XTankFastCerenkov::ScatterOffRoof(), G4TankSimulatorASCII::G4TankFastCerenkov::ScatterOffRoof(), G4TankSimulatorOG::G4TankFastCerenkov::ScatterOffRoof(), G4StationSimulatorOG::G4StationFastCerenkov::ScatterOffWall(), G4StationSimulatorOG::G4TankFastCerenkov::ScatterOffWall(), G4XTankSimulatorAG::G4XTankFastCerenkov::ScatterOffWall(), G4TankSimulatorASCII::G4TankFastCerenkov::ScatterOffWall(), G4TankSimulatorOG::G4TankFastCerenkov::ScatterOffWall(), FastTankSimulatorOG::FastTankSimulator::SimulatePhotons(), SdPMTSimulatorASCII::SdPMTSimulator::SimulateSaturation(), testParametricXMLMieModel::testAttenuation(), testMeasuredDBMieModel::testAttenuation(), testParametricXMLRayleighModel::testEvaluateAttenuation(), testParametricXMLRayleighModel::testEvaluateScattering(), testParametricXMLMieModel::testExpertMode(), testSuperMieModel::testGetAttFromDB(), testSuperMieModel::testGetAttFromXML(), FDetectorTest::testGetPixelCalibNullEndTime(), FDetectorTest::testGetPixelCalibTime1(), FDetectorTest::testGetPixelCalibTime2(), FDetectorTest::testGetPixelCalibTime3(), testSuperMieModel::testGetScatFromDB(), testSuperMieModel::testGetScatFromXML(), testMeasuredDBMieModel::testLambdaDependence(), testMeasuredDBMieModel::testOutOfBound(), testParametricXMLMieModel::testScattering(), testMeasuredDBMieModel::testScattering(), SDetectorTest::testSModelsXMLManager(), testMeasuredDBMieModel::testUncertainty(), testSuperMieModel::testUncertaintyDB(), testSuperMieModel::testUncertaintyXML(), testMeasuredDBMieModel::testZoneSelection(), TelescopeSimulatorKG2::Mirror::Trace(), TelescopeSimulatorKG2::Lens::TraceWithTorus(), G4StationSimulatorOG::G4StationFastCerenkov::TransitionToDome(), G4StationSimulatorOG::G4TankFastCerenkov::TransitionToDome(), G4TankSimulatorASCII::G4TankFastCerenkov::TransitionToDome(), G4XTankSimulatorAG::G4XTankFastCerenkov::TransitionToDome(), G4TankSimulatorOG::G4TankFastCerenkov::TransitionToDome(), G4StationSimulatorOG::G4StationFastCerenkov::TransitionToInterface(), G4StationSimulatorOG::G4TankFastCerenkov::TransitionToInterface(), G4TankSimulatorASCII::G4TankFastCerenkov::TransitionToInterface(), G4XTankSimulatorAG::G4XTankFastCerenkov::TransitionToInterface(), G4TankSimulatorOG::G4TankFastCerenkov::TransitionToInterface(), and atm::ProfileResult::Y().

ArrayConstReference utl::TabulatedFunction::YBack ( ) const
inline
ArrayIterator utl::TabulatedFunction::YBegin ( )
inline
ArrayConstIterator utl::TabulatedFunction::YBegin ( ) const
inline

begin of array of Y

Definition at line 94 of file TabulatedFunction.h.

References fY.

ArrayIterator utl::TabulatedFunction::YEnd ( )
inline
ArrayConstIterator utl::TabulatedFunction::YEnd ( ) const
inline

end of array of Y

Definition at line 118 of file TabulatedFunction.h.

References fY.

ArrayConstReference utl::TabulatedFunction::YFront ( ) const
inline
ArrayReverseIterator utl::TabulatedFunction::YRBegin ( )
inline

begin reverse iterator for Y

Definition at line 97 of file TabulatedFunction.h.

References fY.

ArrayConstReverseIterator utl::TabulatedFunction::YRBegin ( ) const
inline

begin reverse iterator for Y

Definition at line 100 of file TabulatedFunction.h.

References fY.

ArrayReverseIterator utl::TabulatedFunction::YREnd ( )
inline

end reverse iterator for Y

Definition at line 121 of file TabulatedFunction.h.

References fY.

ArrayConstReverseIterator utl::TabulatedFunction::YREnd ( ) const
inline

end reverse iterator for Y

Definition at line 124 of file TabulatedFunction.h.

References fY.

Member Data Documentation

double utl::TabulatedFunction::fBoundaryTolerance
private

Definition at line 233 of file TabulatedFunction.h.

Referenced by GetBoundaryTolerance(), SetBoundaryTolerance(), and Swap().

unsigned int utl::TabulatedFunction::fInterpolationOrder
private

Definition at line 232 of file TabulatedFunction.h.

Referenced by GetInterpolationOrder(), SetInterpolationOrder(), Swap(), and Y().

Array utl::TabulatedFunction::fX
protected
Array utl::TabulatedFunction::fY
protected

The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.