List of all members | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
fdet::FDetector Class Reference

Detector description interface for FDetector-related data. More...

#include "fdet/FDetector.h"

Public Types

typedef boost::filter_iterator
< FDetComponentSelector,
AllEyeIterator
EyeIterator
 

Public Member Functions

EyeIterator EyesBegin (const FDetComponentSelector::Type type=FDetComponentSelector::ePhysical) const
 iterator pointing to first eye of given type (ePhysical, eVirtual, eAll) More...
 
EyeIterator EyesEnd (const FDetComponentSelector::Type type=FDetComponentSelector::ePhysical) const
 iterator pointing to end of available eyes of given type (ePhysical, eVirtual, eAll) More...
 
int GetCDASDAQStatus () const
 
double GetCDASUpTimeFraction () const
 
const ChannelGetChannel (const fevt::Channel &eventChannel) const
 Get fdet::Channel from fevt::Channel. More...
 
const ChannelGetChannel (const fdet::Pixel &p) const
 
const ChannelGetChannel (const fevt::Pixel &p) const
 
const EyeGetEye (const unsigned int eyeId) const
 Find eye by numerical Id. More...
 
const EyeGetEye (const std::string &eyeName) const
 Find eye by name. More...
 
const EyeGetEye (const fevt::Eye &eventEye) const
 Get fdet::Eye from fevt::Eye. More...
 
unsigned int GetFirstEyeId () const
 Get Id of first eye. More...
 
unsigned int GetLastEyeId () const
 Get Id of last eye. More...
 
double GetModelMaxWavelength () const
 
double GetModelMinWavelength () const
 
const PixelGetPixel (const fevt::Pixel &eventPixel) const
 Get fdet::Pixel from fevt::Channel. More...
 
const PixelGetPixel (const fevt::Channel &c) const
 
const PixelGetPixel (const fdet::Channel &c) const
 
double GetReferenceLambda () const
 
const TelescopeGetTelescope (const fevt::Telescope &eventTel) const
 Get fdet::Telescope from fevt::Telescope. More...
 
bool HasFdUpTime () const
 
bool IsCDASInAquisition () const
 

Private Types

typedef
boost::indirect_iterator
< InternalEyeIterator, const
Eye & > 
AllEyeIterator
 An iterator over eyes for read only. More...
 
typedef std::list< Eye * > InternalEyeCollection
 
typedef std::list< int > InternalEyeIdCollection
 
typedef
InternalEyeCollection::const_iterator 
InternalEyeIterator
 

Private Member Functions

AllEyeIterator AllEyesBegin () const
 
AllEyeIterator AllEyesEnd () const
 
 FDetector ()
 
 FDetector (const FDetector &)
 
template<typename T >
const T & GetFDetectorData (T *&requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
 
template<typename T >
void GetFDetectorData (T &requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
 
const InternalEyeIdCollectionGetFullEyeList () const
 
FDetectoroperator= (const FDetector &)
 
void Update ()
 
void UpdateFdUpTime () const
 
 ~FDetector ()
 

Private Attributes

InternalEyeCollection fCommissionedEyeList
 
InternalEyeIdCollectionfFullEyeList
 
int fHasFdUpTime
 
double * fReferenceLambda
 
int fStatus
 
double fUpTimeFraction
 
det::ValidityStamp fUpTimeValidityStamp
 
double fVetoFraction
 

Friends

class det::Detector
 

Detailed Description

Detector description interface for FDetector-related data.

Author
S. Argiro
T. Paul
Date
4 March 2003

Definition at line 44 of file FDetector.h.

Member Typedef Documentation

typedef boost::indirect_iterator<InternalEyeIterator, const Eye&> fdet::FDetector::AllEyeIterator
private

An iterator over eyes for read only.

Definition at line 53 of file FDetector.h.

An iterator over eyes selective Eye iterators

Definition at line 69 of file FDetector.h.

typedef std::list<Eye*> fdet::FDetector::InternalEyeCollection
private

Definition at line 49 of file FDetector.h.

typedef std::list<int> fdet::FDetector::InternalEyeIdCollection
private

Definition at line 48 of file FDetector.h.

typedef InternalEyeCollection::const_iterator fdet::FDetector::InternalEyeIterator
private

Definition at line 50 of file FDetector.h.

Constructor & Destructor Documentation

fdet::FDetector::FDetector ( )
inlineprivate

Definition at line 125 of file FDetector.h.

FDetector::~FDetector ( )
private

Definition at line 44 of file FDetector.cc.

fdet::FDetector::FDetector ( const FDetector )
private

Member Function Documentation

AllEyeIterator fdet::FDetector::AllEyesBegin ( ) const
inlineprivate

Definition at line 55 of file FDetector.h.

References fCommissionedEyeList.

Referenced by EyesBegin().

AllEyeIterator fdet::FDetector::AllEyesEnd ( ) const
inlineprivate

Definition at line 57 of file FDetector.h.

References fCommissionedEyeList.

Referenced by EyesBegin(), and EyesEnd().

EyeIterator fdet::FDetector::EyesBegin ( const FDetComponentSelector::Type  type = FDetComponentSelector::ePhysical) const
inline
EyeIterator fdet::FDetector::EyesEnd ( const FDetComponentSelector::Type  type = FDetComponentSelector::ePhysical) const
inline
int FDetector::GetCDASDAQStatus ( ) const
double FDetector::GetCDASUpTimeFraction ( ) const
const Channel & FDetector::GetChannel ( const fevt::Channel eventChannel) const
const Channel & FDetector::GetChannel ( const fdet::Pixel p) const
const Channel & FDetector::GetChannel ( const fevt::Pixel p) const
const Eye & FDetector::GetEye ( const unsigned int  eyeId) const

Find eye by numerical Id.

Definition at line 68 of file FDetector.cc.

References ERROR.

Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackgroundFromVariance(), FdTriggerSimulatorOG::FdTriggerSimulator::AddEyeEvent(), FdProfileConstrainedGeometryFitPG::PCGFitter::AdjustGeometry(), FdCalibratorOG::FdCalibrator::ApplyCalibration(), FdCalibratorOG::FdCalibrator::ApplyTimeCorrections(), fdet::Telescope::CacheTelescopePointing(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateDirectCherenkovMatrix(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateFluorescenceMatrix(), FdProfileReconstructorKG::FdProfileReconstructor::CalculateGeometryAndDepth(), otoa::LongitudinalXmaxScanner::CalculateLightFactor(), FdEnergyDepositFinderKG::CFMatrixCalculator::CalculateMieAndRayScattCherenkovMatrix(), FdProfileConstrainedGeometryFitPG::ApertureLight::CalculateShowerGeometryData(), FdProfileConstrainedGeometryFit::ApertureLight::CalculateShowerGeometryData(), FdApertureLightFinderKG::FdApertureLightFinder::CalculateShowerGeometryData(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeTraceSum(), otoa::LongitudinalXmaxScanner::CalculateTimeLength(), TelescopeSimulatorLX::FDsimG4Materials::ConstructTableOfMaterials(), FdCalibratorOG::FdCalibrator::CorrectFDTime(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::EvaluateDirectCherenkovHits(), otoa::Detector2ADST::FillAerosols(), FdCalibratorOG::FdCalibrator::FillCalibratedPixels(), FdCalibratorOG::FdCalibrator::FillChannelRecData(), otoa::Detector2ADST::FillCloudCameraData(), otoa::FD2ADST::FillCloudCameraDataBrief(), FdCalibratorOG::FdCalibrator::FillDAQInformation(), otoa::Detector2ADST::FillDetector(), otoa::FD2ADST::FillEyeSim(), otoa::FD2ADST::FillFdRecStations(), otoa::FOVCalculator::FillFOVVariables(), otoa::FD2ADST::FillHybridStations(), otoa::LongitudinalXmaxScanner::FillLightFactors(), HdAxisFinderUU::HdAxisFinder::FillPoints(), otoa::FD2ADST::FillTelSimData(), FdCalibratorOG::FdCalibrator::FillTriggerData(), FdPulseFinderOG::FdPulseFinder::FindAdditionalPulse(), StereoGeometryFinderOG::StereoGeometryFinder::FindAxisStereo(), StereoGeometryFinderOG::StereoGeometryFinder::FindAxisStereoHybrid(), FdPulseFinderOG::FdPulseFinder::FindBestSignalOverNoise(), FdApertureLightFinderOG::FdApertureLightFinder::FindLightFlux(), FdPulseFinderOG::FdPulseFinder::FindPulse(), FdSDPFinderOG::FdSDPFinder::FindSDPFirstGuess(), FdApertureLightFinderOG::FdApertureLightFinder::FindZeta(), SpotPhotonGeneratorOG::SpotPhotonGenerator::FinishSpot(), EventGeneratorOG::EventGenerator::GenerateEyeCentricCore(), FdNoiseAdderKG::GetCalibConst(), fdet::Camera::GetCameraDataDiaphragm(), otoa::LongitudinalXmaxScanner::GetChangedDepth(), FdProfileConstrainedGeometryFitPG::FdProfileConstrainedGeometryFit::GetDataFromPreviousFit(), HybridGeometryFinderWG::HybridGeometryFinder::GetDataFromPreviousFit(), fdet::Pixel::GetPixelDataDiaphragm(), fdet::Telescope::GetPosition(), otoa::LongitudinalXmaxScanner::GetTelescopeAndPixelId(), otoa::LongitudinalXmaxScanner::GetTelescopeProperties(), GetVirtualTelescopeId(), TelescopeSimulatorLX::FDsimG4DetectorConstruction::Init(), otoa::LongitudinalXmaxScanner::IsNearBorder(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsPreselected(), FdEyeMergerKG::FdEyeMerger::MergeEyes(), HybridGeometryFinderWG::HybridGeometryFinder::MinuitFitFuncAxis(), StereoGeometryFinderOG::StereoGeometryFinder::MinuitFitFuncStereo(), StereoGeometryFinderOG::StereoGeometryFinder::MinuitFitFuncStereoHybrid(), FdLightCollectionEfficiencyKG::SimMockEvent::PrepareEvent(), FdProfileConstrainedGeometryFitPG::ChiZeroRegression::PrepParams(), HybridGeometryFinderWG::HybridGeometryFinder::ReadmitPixel(), HybridGeometryFinderWG::HybridGeometryFinder::RecalculateChiSquare(), FdCalibratorOG::FdCalibrator::RecoverSaturatedTrace(), HybridGeometryFinderWG::HybridGeometryFinder::RemovePixel(), ReadCloudLLNS::ReadCloudLL::Run(), ReadCloudHLNS::ReadCloudHL::Run(), GeometryExampleNS::GeometryExample::Run(), FdSimEventCheckerOG::FdSimEventChecker::Run(), FdLaserEnergyReconstructorKG::FdLaserEnergyReconstructor::Run(), TelescopeSimulatorLX::TelescopeSimulator::Run(), FdTriggerSimulatorOG::FdTriggerSimulator::Run(), HybridGeometryFinderWG::HybridGeometryFinder::SelectPixels(), FdEnergyDepositFinderKG::ProfileFitter::SetLightFluxData(), UseMcGeometryOG::UseMcGeometry::SetSDP(), UseMcGeometryOG::UseMcGeometry::SetTimeFit(), HybridGeometryFinderWG::HybridGeometryFinder::StoreData(), FDetectorTest::testGetEyeByName(), FDetectorTest::testNoSuchEye(), FDetectorTest::testNotCommissioned(), and FdProfileConstrainedGeometryFitPG::PCGFitter::Underground().

const Eye & FDetector::GetEye ( const std::string &  eyeName) const

Find eye by name.

Definition at line 86 of file FDetector.cc.

References ERROR.

const Eye & FDetector::GetEye ( const fevt::Eye eventEye) const

Get fdet::Eye from fevt::Eye.

Definition at line 142 of file FDetector.cc.

References fevt::Eye::GetId().

template<typename T >
const T & FDetector::GetFDetectorData ( T *&  requestedData,
const std::string &  property,
const std::string &  component,
const std::string &  errorMsg 
) const
inlineprivate

Definition at line 345 of file FDetector.cc.

template<typename T >
void FDetector::GetFDetectorData ( T &  requestedData,
const std::string &  property,
const std::string &  component,
const std::string &  errorMsg 
) const
inlineprivate

Definition at line 362 of file FDetector.cc.

References ERROR, and det::VManager::GetData().

unsigned int FDetector::GetFirstEyeId ( ) const

Get Id of first eye.

Definition at line 25 of file FDetector.cc.

const FDetector::InternalEyeIdCollection & FDetector::GetFullEyeList ( ) const
private

This method loads the Id's of all eyes available in the relevant XML file and/or database. The Id's in this list constitute the only eyes for which any information can be retrieved. Currently, there is no commission or decommission time for the eye's themselves, though individual telescopes do have commission and decommission times.

Definition at line 111 of file FDetector.cc.

References DEBUGLOG, and det::VManager::GetData().

unsigned int FDetector::GetLastEyeId ( ) const
double FDetector::GetModelMaxWavelength ( ) const
double FDetector::GetModelMinWavelength ( ) const
const Pixel & FDetector::GetPixel ( const fevt::Pixel eventPixel) const

Get fdet::Pixel from fevt::Channel.

Definition at line 198 of file FDetector.cc.

References fevt::Pixel::GetEyeId(), fevt::Pixel::GetId(), and fevt::Pixel::GetTelescopeId().

Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackgroundFromVariance(), FdProfileConstrainedGeometryFitPG::PCGFitter::AdjustGeometry(), FdCalibratorOG::FdCalibrator::ApplyCalibration(), DrumPhotonGeneratorOG::DrumPhotonGenerator::CalibrateTelescope(), otoa::FD2ADST::FillCloudCameraDataBrief(), HdAxisFinderUU::HdAxisFinder::FillPoints(), FdPulseFinderOG::FdPulseFinder::FindAdditionalPulse(), StereoGeometryFinderOG::StereoGeometryFinder::FindAxisStereo(), StereoGeometryFinderOG::StereoGeometryFinder::FindAxisStereoHybrid(), FdPulseFinderOG::FdPulseFinder::FindBestSignalOverNoise(), FdApertureLightFinderOG::FdApertureLightFinder::FindLightFlux(), FdPulseFinderOG::FdPulseFinder::FindPulse(), FdSDPFinderOG::FdSDPFinder::FindSDPFirstGuess(), FdApertureLightFinderOG::FdApertureLightFinder::FindZeta(), FdProfileConstrainedGeometryFitPG::ApertureLight::FindZeta(), FdProfileConstrainedGeometryFit::ApertureLight::FindZeta(), FdApertureLightFinderKG::FdApertureLightFinder::FindZeta(), FdNoiseAdderKG::GetCalibConst(), otoa::fd::GetCalibrationConstant(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), FdSDPFinderOG::FdSDPFinder::IsIsolated(), HybridGeometryFinderWG::HybridGeometryFinder::MinuitFitFuncAxis(), StereoGeometryFinderOG::StereoGeometryFinder::MinuitFitFuncStereo(), StereoGeometryFinderOG::StereoGeometryFinder::MinuitFitFuncStereoHybrid(), HybridGeometryFinderWG::HybridGeometryFinder::ReadmitPixel(), HybridGeometryFinderWG::HybridGeometryFinder::RecalculateChiSquare(), HybridGeometryFinderWG::HybridGeometryFinder::RemovePixel(), MeanNpeFillerKG::MeanNpeFiller::Run(), ThresholdCalculatorKG::ThresholdCalculator::Run(), HybridGeometryFinderWG::HybridGeometryFinder::SelectPixels(), FdEnergyDepositFinderKG::CFMatrixCalculator::SetTelescopeParameters(), UseMcGeometryOG::UseMcGeometry::SetTimeFit(), and HybridGeometryFinderWG::HybridGeometryFinder::StoreData().

const Pixel & FDetector::GetPixel ( const fevt::Channel c) const
const Pixel & FDetector::GetPixel ( const fdet::Channel c) const
double FDetector::GetReferenceLambda ( ) const
const Telescope & FDetector::GetTelescope ( const fevt::Telescope eventTel) const

Get fdet::Telescope from fevt::Telescope.

Definition at line 150 of file FDetector.cc.

References fevt::Telescope::GetEyeId(), and fevt::Telescope::GetId().

Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackground(), FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackgroundFromVariance(), DrumPhotonGeneratorOG::DrumPhotonGenerator::CalculateCalibrationConstants(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculatePixelTraceSum(), FdProfileConstrainedGeometryFit::ApertureLight::CalculateShowerGeometryData(), FdProfileConstrainedGeometryFitPG::ApertureLight::CalculateShowerGeometryData(), FdApertureLightFinderKG::FdApertureLightFinder::CalculateShowerGeometryData(), DrumPhotonGeneratorOG::DrumPhotonGenerator::CalibrateTelescope(), SpotPhotonGeneratorOG::SpotPhotonGenerator::DoSpot(), FdElectronicsSimulatorOG::FdElectronicsSimulator::ElecSim(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::EvaluateDirectCherenkovHits(), otoa::FD2ADST::FillCloudCameraDataBrief(), otoa::FD2ADST::FillRecPixel(), TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), FdPulseFinderOG::FdPulseFinder::FindAdditionalPulse(), FdApertureLightFinderOG::FdApertureLightFinder::FindLightFlux(), FdApertureLightFinderOG::FdApertureLightFinder::FindZeta(), DrumPhotonGeneratorOG::DrumPhotonGenerator::GenerateDrumPhotons(), fevt::Telescope::GenerateMirrorEventBorderPixels(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), MeanNpeFillerKG::MeanNpeFiller::Run(), ThresholdCalculatorKG::ThresholdCalculator::Run(), FdPulseFinderOG::FdPulseFinder::Run(), VirtualChannelCalibratorKG::VirtualChannelCalibrator::Run(), TelescopeSimulatorLX::TelescopeSimulator::Run(), TelescopeSimulatorKG::TelescopeSimulator::Run(), TelescopeSimulatorKG2::TelescopeSimulator::Run(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::Run(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Run(), UseMcGeometryOG::UseMcGeometry::SetSDP(), FdEnergyDepositFinderKG::CFMatrixCalculator::SetTelescopeParameters(), UseMcGeometryOG::UseMcGeometry::SetTimeFit(), and FdTriggerSimulatorOG::FdTriggerSimulator::ShiftEventToSLT().

bool FDetector::HasFdUpTime ( ) const

Definition at line 262 of file FDetector.cc.

Referenced by otoa::Detector2ADST::FillDetector().

bool FDetector::IsCDASInAquisition ( ) const

Definition at line 244 of file FDetector.cc.

FDetector& fdet::FDetector::operator= ( const FDetector )
private
void FDetector::Update ( )
private
void FDetector::UpdateFdUpTime ( ) const
private

Definition at line 271 of file FDetector.cc.

Friends And Related Function Documentation

friend class det::Detector
friend

Definition at line 156 of file FDetector.h.

Member Data Documentation

InternalEyeCollection fdet::FDetector::fCommissionedEyeList
mutableprivate

Definition at line 141 of file FDetector.h.

Referenced by AllEyesBegin(), and AllEyesEnd().

InternalEyeIdCollection* fdet::FDetector::fFullEyeList
mutableprivate

Definition at line 146 of file FDetector.h.

int fdet::FDetector::fHasFdUpTime
mutableprivate

Definition at line 153 of file FDetector.h.

double* fdet::FDetector::fReferenceLambda
mutableprivate

Definition at line 154 of file FDetector.h.

int fdet::FDetector::fStatus
mutableprivate

Definition at line 152 of file FDetector.h.

double fdet::FDetector::fUpTimeFraction
mutableprivate

Definition at line 150 of file FDetector.h.

det::ValidityStamp fdet::FDetector::fUpTimeValidityStamp
mutableprivate

Definition at line 149 of file FDetector.h.

double fdet::FDetector::fVetoFraction
mutableprivate

Definition at line 151 of file FDetector.h.


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

, generated on Tue Sep 26 2023.