Class to hold collection (x,y) points and provide interpolation between them. More...
#include "utl/TabulatedFunction.h"
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 |
Class to hold collection (x,y) points and provide interpolation between them.
Definition at line 27 of file TabulatedFunction.h.
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.
|
inline |
Definition at line 39 of file TabulatedFunction.h.
|
inline |
Definition at line 45 of file TabulatedFunction.h.
References FillTable().
|
inline |
Definition at line 64 of file TabulatedFunction.h.
Referenced by fdet::Telescope::CachePixelCalibrations(), fdet::Telescope::CachePixelOpticalEfficiencyCorrections(), TimeModel::ConvertProductionHeightDistribution(), atm::Kakimoto1996FluorescenceModel::EvaluateFluorescenceYield(), TimeModel::Get_dNdX_FromProfile(), TimeModel::Get_dNdz_FromProfile(), fdet::Corrector::GetRefractiveIndex(), SdPMTSimulatorASCII::SdPMTSimulator::Init(), TestOfflineUtils_ROOT_io::IsEqual(), main(), TimeModel::MakeProductionHeightDistribution(), ReadFDCalibNS::ReadFDCalib::Run(), and SdSimpleSimKG::SdSimpleSim::Run().
|
inline |
Definition at line 70 of file TabulatedFunction.h.
|
inline |
Definition at line 60 of file TabulatedFunction.h.
Referenced by fdet::Telescope::CachePixelCalibrations(), fdet::Telescope::CachePixelOpticalEfficiencyCorrections(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateDetEff(), atm::ConstantFluorescenceModel::EvaluateFluorescenceYield(), utl::Branch::GetData(), io::AiresShowerFile::Read(), and FdProfileReconstructorKG::FdProfileReconstructor::Run().
|
inline |
Definition at line 67 of file TabulatedFunction.h.
Referenced by fdet::Telescope::CachePixelCalibrations(), fdet::Telescope::CachePixelOpticalEfficiencyCorrections(), TimeModel::ConvertProductionHeightDistribution(), atm::Kakimoto1996FluorescenceModel::EvaluateFluorescenceYield(), TimeModel::Get_dNdX_FromProfile(), TimeModel::Get_dNdz_FromProfile(), fdet::Corrector::GetRefractiveIndex(), SdPMTSimulatorASCII::SdPMTSimulator::Init(), TestOfflineUtils_ROOT_io::IsEqual(), main(), TimeModel::MakeProductionHeightDistribution(), ReadFDCalibNS::ReadFDCalib::Run(), and SdSimpleSimKG::SdSimpleSim::Run().
|
inline |
Definition at line 73 of file TabulatedFunction.h.
|
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.
|
inline |
Definition at line 190 of file TabulatedFunction.h.
References fBoundaryTolerance.
|
inline |
Definition at line 185 of file TabulatedFunction.h.
References fInterpolationOrder.
|
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().
|
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().
|
inline |
Definition at line 167 of file TabulatedFunction.h.
References fX.
|
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().
|
inline |
Definition at line 168 of file TabulatedFunction.h.
References fY.
TabulatedFunctionIterator TabulatedFunction::Insert | ( | const double | x, |
const double | y | ||
) |
Definition at line 222 of file TabulatedFunction.cc.
Referenced by ShowerLightSimulatorKG::ShowerLightSimulator::CherenkovLight(), and ShowerLightSimulatorKG::ShowerLightSimulator::FluorescenceLight().
double TabulatedFunction::InterpolateY | ( | const double | x, |
const unsigned int | polyDegree | ||
) | const |
Interpolate the Y value with a polyDegree
polynomial.
Definition at line 123 of file TabulatedFunction.cc.
Referenced by G4TankSimulatorASCII::G4TankStackingAction::ClassifyNewTrack(), G4XTankSimulatorAG::G4XTankStackingAction::ClassifyNewTrack(), G4TankSimulatorOG::G4TankStackingAction::ClassifyNewTrack(), atm::MeasuredDBMieModel::EvaluateMieAttenuation(), SdFilterFADCSimulatorMTU::SdFilterFADCSimulator::FillImpulseResponse(), SdPMTSimulatorOG::SdPMTSimulator::FillPulseShape(), atm::MeasuredDBMieModel::GetVerticalAerosolOpticalDepth(), main(), G4StationSimulatorOG::G4TankPMTAction::ProcessHits(), and Y().
|
inline |
Definition at line 176 of file TabulatedFunction.h.
References fX.
Referenced by SdFilterFADCSimulatorMTU::SdFilterFADCSimulator::FillImpulseResponse(), and atm::ProfileResult::IsInValidRange().
|
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.
|
inline |
Definition at line 182 of file TabulatedFunction.h.
References operator==().
|
inline |
Definition at line 159 of file TabulatedFunction.h.
References Y().
|
inline |
Definition at line 179 of file TabulatedFunction.h.
Referenced by operator!=().
|
inline |
Note: cannot be used in assignment.
Definition at line 58 of file TabulatedFunction.h.
void TabulatedFunction::PushBack | ( | const double | x, |
const double | y | ||
) |
Definition at line 57 of file TabulatedFunction.cc.
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().
|
inline |
Definition at line 195 of file TabulatedFunction.h.
|
inline |
Definition at line 204 of file TabulatedFunction.h.
|
inline |
Definition at line 192 of file TabulatedFunction.h.
References fBoundaryTolerance.
Referenced by fdet::Telescope::CachePixelCalibrations(), and fdet::Telescope::CachePixelOpticalEfficiencyCorrections().
|
inline |
Definition at line 187 of file TabulatedFunction.h.
References fInterpolationOrder.
|
inline |
|
inline |
return the sum of Y values
Definition at line 174 of file TabulatedFunction.h.
References fY.
Referenced by FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize().
|
inline |
Definition at line 213 of file TabulatedFunction.h.
References fBoundaryTolerance, fInterpolationOrder, fX, fY, utl::swap(), and std::swap().
Referenced by utl::TabulatedFunctionErrors::Swap(), and utl::swap().
|
inline |
read-only reference to back of array of X
Definition at line 138 of file TabulatedFunction.h.
References fX.
Referenced by G4StationSimulatorOG::G4StationFastCerenkov::AlongStepDoIt(), G4StationSimulatorOG::G4TankFastCerenkov::AlongStepDoIt(), RdChannelAmplitudeCalibrator::RdChannelAmplitudeCalibrator::ApplyResponse(), utl::MuonTimeModel::dNdlogz(), atm::MeasuredDBMieModel::EvaluateMieAttenuation(), atm::VProfileModel::ExtendProfilesTo100km(), SdPMTSimulatorOG::SdPMTSimulator::FillPulseShape(), atm::MeasuredDBMieModel::GetAttenuationLength(), fdet::Pixel::GetEndToEndCalibration(), fdet::Pixel::GetEndToEndCalibrationConstant(), fdet::Pixel::GetOpticalEfficiencyCorrection(), and atm::MeasuredDBMieModel::GetVerticalAerosolOpticalDepth().
|
inline |
begin of array of X
Definition at line 79 of file TabulatedFunction.h.
References fX.
Referenced by TimeModel::ConvertProductionHeightDistribution(), atm::MieModelOff::EvaluateMieScattering(), atm::MeasuredDBMieModel::EvaluateMieScattering(), atm::RayleighModelOff::EvaluateRayleighScattering(), atm::VProfileModel::EvaluateRefractionIndexVsHeight(), fdDoubleBumpFinder::FdDoubleBumpFinder::Fit(), G4XTankSimulatorAG::G4XTankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorASCII::G4TankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorOG::G4TankFastCerenkov::GetDataFromConstruction(), atm::ProfileResult::GetXValues(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsSelected(), FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize(), TimeModel::MakeProductionHeightDistribution(), utl::Md5Signature(), utl::RandomSamplerFromPDF::RandomSamplerFromPDF(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::Run(), ScaleX(), G4TankSimulatorOG::G4TankConstruction::SetDetectorParameters(), G4XTankSimulatorAG::G4XTankConstruction::SetDetectorParameters(), G4TankSimulatorASCII::G4TankConstruction::SetDetectorParameters(), and G4StationSimulatorOG::G4StationConstruction::SetDetectorParameters().
|
inline |
|
inline |
end of array of X
Definition at line 103 of file TabulatedFunction.h.
References fX.
Referenced by TimeModel::ConvertProductionHeightDistribution(), atm::MieModelOff::EvaluateMieScattering(), atm::MeasuredDBMieModel::EvaluateMieScattering(), atm::RayleighModelOff::EvaluateRayleighScattering(), atm::VProfileModel::EvaluateRefractionIndexVsHeight(), fdDoubleBumpFinder::FdDoubleBumpFinder::Fit(), G4XTankSimulatorAG::G4XTankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorASCII::G4TankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorOG::G4TankFastCerenkov::GetDataFromConstruction(), atm::ProfileResult::GetXValues(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsSelected(), FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize(), TimeModel::MakeProductionHeightDistribution(), utl::Md5Signature(), utl::RandomSamplerFromPDF::RandomSamplerFromPDF(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::Run(), ScaleX(), G4TankSimulatorOG::G4TankConstruction::SetDetectorParameters(), G4XTankSimulatorAG::G4XTankConstruction::SetDetectorParameters(), G4TankSimulatorASCII::G4TankConstruction::SetDetectorParameters(), and G4StationSimulatorOG::G4StationConstruction::SetDetectorParameters().
|
inline |
|
inline |
read-only reference to front of array of X
Definition at line 132 of file TabulatedFunction.h.
References fX.
Referenced by G4StationSimulatorOG::AddProperty(), G4StationSimulatorOG::G4TankFastCerenkov::AlongStepDoIt(), G4StationSimulatorOG::G4StationFastCerenkov::AlongStepDoIt(), RdChannelAmplitudeCalibrator::RdChannelAmplitudeCalibrator::ApplyResponse(), atm::MeasuredDBMieModel::EvaluateMieAttenuation(), SdPMTSimulatorOG::SdPMTSimulator::FillPulseShape(), atm::MeasuredDBMieModel::GetAttenuationLength(), fdet::Pixel::GetEndToEndCalibration(), fdet::Pixel::GetEndToEndCalibrationConstant(), fdet::Pixel::GetOpticalEfficiencyCorrection(), and FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::WriteDebugInfo().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 112 of file TabulatedFunction.h.
References fX.
|
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().
|
inline |
read-only reference to back of array of Y
Definition at line 141 of file TabulatedFunction.h.
References fY.
Referenced by fdet::Pixel::GetEndToEndCalibration(), fdet::Pixel::GetEndToEndCalibrationConstant(), fdet::Pixel::GetOpticalEfficiencyCorrection(), and atm::MeasuredDBMieModel::GetVerticalAerosolOpticalDepth().
|
inline |
begin of array of Y
Definition at line 91 of file TabulatedFunction.h.
References fY.
Referenced by otoa::FD2ADST::FillFdProfile(), otoa::FD2ADST::FillTelRecData(), fdDoubleBumpFinder::FdDoubleBumpFinder::Fit(), G4XTankSimulatorAG::G4XTankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorASCII::G4TankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorOG::G4TankFastCerenkov::GetDataFromConstruction(), atm::ProfileResult::GetYValues(), FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize(), utl::Md5Signature(), utl::RandomSamplerFromPDF::RandomSamplerFromPDF(), ScaleY(), G4TankSimulatorOG::G4TankConstruction::SetDetectorParameters(), G4TankSimulatorASCII::G4TankConstruction::SetDetectorParameters(), and G4XTankSimulatorAG::G4XTankConstruction::SetDetectorParameters().
|
inline |
|
inline |
end of array of Y
Definition at line 115 of file TabulatedFunction.h.
References fY.
Referenced by otoa::FD2ADST::FillFdProfile(), otoa::FD2ADST::FillTelRecData(), fdDoubleBumpFinder::FdDoubleBumpFinder::Fit(), G4XTankSimulatorAG::G4XTankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorASCII::G4TankFastCerenkov::GetDataFromConstruction(), G4TankSimulatorOG::G4TankFastCerenkov::GetDataFromConstruction(), atm::ProfileResult::GetYValues(), FdProfileFinderOG::FdProfileFinder::LightAtApertureToSize(), utl::Md5Signature(), utl::RandomSamplerFromPDF::RandomSamplerFromPDF(), ScaleY(), G4TankSimulatorOG::G4TankConstruction::SetDetectorParameters(), G4TankSimulatorASCII::G4TankConstruction::SetDetectorParameters(), and G4XTankSimulatorAG::G4XTankConstruction::SetDetectorParameters().
|
inline |
|
inline |
read-only reference to front of array of Y
Definition at line 135 of file TabulatedFunction.h.
References fY.
Referenced by G4StationSimulatorOG::AddProperty(), fdet::Pixel::GetEndToEndCalibration(), fdet::Pixel::GetEndToEndCalibrationConstant(), fdet::Pixel::GetOpticalEfficiencyCorrection(), and FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::WriteDebugInfo().
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 233 of file TabulatedFunction.h.
Referenced by GetBoundaryTolerance(), SetBoundaryTolerance(), and Swap().
|
private |
Definition at line 232 of file TabulatedFunction.h.
Referenced by GetInterpolationOrder(), SetInterpolationOrder(), Swap(), and Y().
|
protected |
Definition at line 226 of file TabulatedFunction.h.
Referenced by utl::TabulatedFunctionErrors::Begin(), Begin(), Clear(), utl::TabulatedFunctionErrors::End(), End(), GetNPoints(), GetX(), IsInValidRange(), operator==(), utl::TabulatedFunctionErrors::operator[](), operator[](), SumX(), Swap(), XBack(), XBegin(), XEnd(), XFront(), XRBegin(), and XREnd().
|
protected |
Definition at line 227 of file TabulatedFunction.h.
Referenced by utl::TabulatedFunctionErrors::Begin(), Begin(), Clear(), utl::TabulatedFunctionErrors::End(), End(), GetY(), operator==(), utl::TabulatedFunctionErrors::operator[](), operator[](), SumY(), Swap(), YBack(), YBegin(), YEnd(), YFront(), YRBegin(), and YREnd().