List of all members | Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
rdet::RDetector Class Reference

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

#include "rdet/RDetector.h"

Classes

struct  InternalStationFunctor
 

Public Types

typedef
boost::transform_iterator
< InternalStationFunctor,
InternalStationIterator, const
Station & > 
StationIterator
 StationIterator returns a pointer to a station. More...
 

Public Member Functions

bool AddStationListFromSManager () const
 
unsigned long long int GetBadStationReason (const int stationId) const
 
const std::vector< double > & GetBeaconFrequencies () const
 Get vector of Beacon Frequencies for given detector-time from Manager. More...
 
double GetBeaconReferencePhase (const int stationId, const double beaconFreq) const
 Get beacon reference phases for one station. More...
 
template<typename T >
void GetDetectorData (T *&requestedData, const std::string &property, const std::string &component, const std::string &errorMsg, const det::VManager::IndexMap &indexMap=det::VManager::IndexMap()) const
 
const std::vector< int > & GetFullStationList () const
 Get list of ID's for all stations available in the database or configuration file. More...
 
const
utl::TabulatedFunctionComplexLgAmpPhase
GetHardwareResponseProfile (const std::string &identifier) const
 Get the response (TabulatedFunctionComplexLgAmpPhase) which corresponds to a hardware profile identifier. More...
 
int GetRdSdStationIdLink () const
 Get Rd - Sd Station Id link. More...
 
const StationGetStation (const int stationId) const
 Get station by Station Id. More...
 
const StationGetStation (const revt::Station &station) const
 Get rdet::Station from a revt::Station. More...
 
double GetTemperature (const std::string &site) const
 
StationIterator StationsBegin () const
 Beginning of the collection of pointers to commissioned stations. More...
 
StationIterator StationsEnd () const
 End of the collection of pointers to commissioned stations. More...
 

Private Types

typedef std::map< std::string,
const
utl::TabulatedFunctionComplexLgAmpPhase * > 
HardwareResponseProfileMap
 
typedef
InternalStationMap::const_iterator 
InternalStationIterator
 
typedef std::map< int, const
rdet::Station * > 
InternalStationMap
 

Private Member Functions

RDetectoroperator= (const RDetector &rdetector)
 
 RDetector ()
 
 RDetector (const RDetector &rdetector)
 
void Update ()
 
 ~RDetector ()
 

Private Attributes

utl::Validated< bool > fAddStationListFromSManager
 
std::vector< double > * fBeaconFreq = nullptr
 
double * fBeaconReferencePhase = nullptr
 
utl::Validated< std::vector
< int > > 
fFullStationList
 
InternalStationMap fFullStationMap
 internal map of station id and station object More...
 
HardwareResponseProfileMap fHardwareResponseProfileMap
 
const std::string fRDetectorName = "AERA"
 
int fRdSdStationIdLink = 30000
 

Friends

class det::Detector
 

Detailed Description

Detector description interface for RDetector-related data.

Author
J. Rautenberg
Date
Aug 2007

Definition at line 46 of file RDetector.h.

Member Typedef Documentation

Definition at line 153 of file RDetector.h.

typedef InternalStationMap::const_iterator rdet::RDetector::InternalStationIterator
private

Definition at line 50 of file RDetector.h.

typedef std::map<int, const rdet::Station*> rdet::RDetector::InternalStationMap
private

Definition at line 49 of file RDetector.h.

StationIterator returns a pointer to a station.

Definition at line 61 of file RDetector.h.

Constructor & Destructor Documentation

rdet::RDetector::RDetector ( )
inlineprivate

Definition at line 130 of file RDetector.h.

RDetector::~RDetector ( )
private

Definition at line 28 of file RDetector.cc.

References is().

rdet::RDetector::RDetector ( const RDetector rdetector)
private

Member Function Documentation

bool RDetector::AddStationListFromSManager ( ) const
unsigned long long int RDetector::GetBadStationReason ( const int  stationId) const
const std::vector< double > & RDetector::GetBeaconFrequencies ( ) const

Get vector of Beacon Frequencies for given detector-time from Manager.

Get vector of Beacon Frequencies for given detector-time from manager.

Definition at line 183 of file RDetector.cc.

Referenced by RdChannelBeaconSuppressor::RdChannelBeaconSuppressor::Run(), RdChannelBeaconTimingCalibrator::RdChannelBeaconTimingCalibrator::Run(), RdMonitoring::RdMonitoring::Run(), and RSQLManagerTest::testBeaconManager().

double RDetector::GetBeaconReferencePhase ( const int  stationId,
const double  beaconFreq 
) const

Get beacon reference phases for one station.

Get beacon reference phase for one station and given frequency.

Definition at line 197 of file RDetector.cc.

Referenced by RdChannelBeaconTimingCalibrator::RdChannelBeaconTimingCalibrator::Run(), and RSQLManagerTest::testBeaconManager().

template<typename T >
void rdet::RDetector::GetDetectorData ( T *&  requestedData,
const std::string &  property,
const std::string &  component,
const std::string &  errorMsg,
const det::VManager::IndexMap indexMap = det::VManager::IndexMap() 
) const
inline

Definition at line 103 of file RDetector.h.

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

const vector< int > & RDetector::GetFullStationList ( ) const

Get list of ID's for all stations available in the database or configuration file.

This method loads the ID's of all stations available in the relevant XML file and/or database. These ID's can then be used when searching through available stations for those with desired quantities, such as a commission time before the current "detector time". By doing it this way, we do not have to hardwire upper and lower bounds on the station ID's anyplace in the code - instead they are determined from the available data.

Definition at line 84 of file RDetector.cc.

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

Referenced by RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::EventHasStations(), RdLDFFitter::RdLDFFitter::PlotScan(), ShowerMaker::ShowerMaker::Run(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run(), and RdChannelNoisePulseCounter::RdChannelNoisePulseCounter::Run().

const TabulatedFunctionComplexLgAmpPhase & RDetector::GetHardwareResponseProfile ( const std::string &  identifier) const

Get the response (TabulatedFunctionComplexLgAmpPhase) which corresponds to a hardware profile identifier.

This loads an RResponse from xml-file using the RHardweProfileXMLManager.

Definition at line 164 of file RDetector.cc.

Referenced by RdChannelResponseIncorporator::RdChannelResponseIncorporator::CalculateOverallResponse(), and RDetectorTest::testRModel().

int rdet::RDetector::GetRdSdStationIdLink ( ) const
inline
const Station & RDetector::GetStation ( const int  stationId) const

Get station by Station Id.

Definition at line 141 of file RDetector.cc.

References ERROR.

Referenced by RdPlaneFit::RdPlaneFit::CalculateTimeResidual(), RdScintPlaneFit::RdScintPlaneFit::CalculateTimeResidual(), RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::CalculateTimeResidual(), RdScintSignalReconstructor::RdScintSignalReconstructor::ComputeBaryCenter(), RdWaveFit::RdWaveFit::ComputeBaryCenter(), RdEventInitializer::RdEventInitializer::ComputeCoordinateOrigin(), RdWaveFit::RdWaveFit::ConicalWaveFit(), RdStationNoiseAnalyser::ConvertChannelToStation(), RdEventPreSelector::RdEventPreSelector::CountStationWithPulse(), RdBeamTimeOptimizer::RdBeamTimeOptimizer::delaysFromRRec(), RdEVASimPreparator::RdEVASimPreparator::EVAFileWriter(), otoa::RdFiller::FillRadioChannels(), RdLDFFitter::RdLDFFitter::GetAnglesToEFieldExpectation(), RdLDFFitter::RdLDFFitter::GetAnglesToLorentzVector(), EventGeneratorOG::EventGenerator::GetCoreShiftForRadioSimulation(), RdChannelSelector::RdChannelSelector::GetLowGainChannel(), RdPolarizationReconstructor::RdPolarizationReconstructor::GetRotatedPolarizationTraces(), RdStationPositionCorrectionOG::RdStationPositionCorrection::Init(), RdPlaneFit::RdPlaneFit::LinearFit(), RdScintPlaneFit::RdScintPlaneFit::LinearFit(), RdPlaneFit::RdPlaneFit::PlaneFit3DFnc(), RdScintPlaneFit::RdScintPlaneFit::PlaneFit3DFnc(), RdPlaneFit::RdPlaneFit::PlaneFit3DHorizonFnc(), RdScintPlaneFit::RdScintPlaneFit::PlaneFit3DHorizonFnc(), RdPreWaveFitter::RdPreWaveFitter::PlaneWaveFit(), RdWaveFit::RdWaveFit::PlaneWaveFit(), RdLDFFitter::RdLDFFitter::PlotGoodnessOfFit(), RdLDFFitter::RdLDFFitter::PlotScan(), RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFnc(), RdSphericalFit::RdSphericalFit::Run(), RdHASLDFFitter::RdHASLDFFitter::Run(), RdTopDownStationSelector::RdTopDownStationSelector::Run(), RdChannelResampler::RdChannelResampler::Run(), RdChannelVoltageToADCConverter::RdChannelVoltageToADCConverter::Run(), RdChannelADCToVoltageConverter::RdChannelADCToVoltageConverter::Run(), RdChannelAmplitudeTemperatureDependenceCorrector::RdChannelAmplitudeTemperatureDependenceCorrector::Run(), RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), RdClusterFinder::RdClusterFinder::Run(), RdStationSimulationRejector::RdStationSimulationRejector::Run(), RdEventPostSelector::RdEventPostSelector::Run(), ShowerMaker::ShowerMaker::Run(), RdStationEFieldVectorCalculator::RdStationEFieldVectorCalculator::Run(), RdChannelNoiseImporter_RD::RdChannelNoiseImporter_RD::Run(), RdStationRejector::RdStationRejector::Run(), RdChannelASCIINoiseImporterRD::RdChannelASCIINoiseImporterRD::Run(), RdChannelBandstopFilter::RdChannelBandstopFilter::Run(), RdAntennaStationToChannelConverter::RdAntennaStationToChannelConverter::Run(), RdScintSignalReconstructor::RdScintSignalReconstructor::Run(), RdChannelGalacticBackgroundCalibrator::RdChannelGalacticBackgroundCalibrator::Run(), RdChannelSineWaveSuppressor::RdChannelSineWaveSuppressor::Run(), RdChannelSelector::RdChannelSelector::Run(), RdChannelBeaconSuppressor::RdChannelBeaconSuppressor::Run(), RdStationPolarizationRejector::RdStationPolarizationRejector::Run(), RdStationTimingCalibratorOG::RdStationTimingCalibrator::Run(), RdChannelBeaconSimulator::RdChannelBeaconSimulator::Run(), RdChannelGalacticConstantsGenerator::RdChannelGalacticConstantsGenerator::Run(), RdDummyChannelToStationConverter::RdDummyChannelToStationConverter::Run(), RdDummyStationToChannelConverter::RdDummyStationToChannelConverter::Run(), RdChannelResponseIncorporator::RdChannelResponseIncorporator::Run(), Rd2dLDFFitter::Rd2dLDFFitter::Run(), RdChannelBeaconTimingCalibrator::RdChannelBeaconTimingCalibrator::Run(), RdLDFChargeExcessCorrector::RdLDFChargeExcessCorrector::Run(), RdChannelNoiseASCIIImporter::RdChannelNoiseASCIIImporter::Run(), RdChannelAmplitudeCalibrator::RdChannelAmplitudeCalibrator::Run(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run(), RdStationBeamFormer::RdStationBeamFormer::Run(), RdChannelNoiseGenerator::RdChannelNoiseGenerator::Run(), RdChannelNoisePulseCounter::RdChannelNoisePulseCounter::Run(), RdAirplane::RdAirplaneTiming::Run(), RdPlaneFit::RdPlaneFit::Run(), RdStationInterpolator::RdStationInterpolator::Run(), RdTimeCalibration::RdTimeCalibration::Run(), RdAirplane::RdAirplaneArrivalDirectionSetter::Run(), RdCheckFootprint::RdCheckFootprint::Run(), RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::Run(), RdGlobalFit::RdGlobalFit::Run(), RdLDFMultiFitter::RdLDFMultiFitter::Run(), RdStationSignalInterpolator::RdStationSignalInterpolator::Run(), RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Run(), RdLDFFitter::RdLDFFitter::Run(), RdGeoCeLDFFitter::RdGeoCeLDFFitter::Run(), RdWaveFit::RdWaveFit::Run(), RdEventInitializer::RdEventInitializer::SetSignalSearchWindowFromExternal(), RdEventInitializer::RdEventInitializer::SetSignalSearchWindowFromFD(), RdEventInitializer::RdEventInitializer::SetSignalSearchWindowFromSD(), RdBeamTimeOptimizer::RdBeamTimeOptimizer::shiftsFromRRec(), RdBeamFormer::RdBeamFormer::shiftTraces(), RdWaveFit::RdWaveFit::SphericalWaveFit(), RdWaveFit::RdWaveFit::SphericalWaveFitVarC(), RDetectorTest::testAntennaType(), RDetectorTest::testRModel(), RSQLManagerTest::testStationListManager(), and RDetectorTest::testStationListManager().

const Station & RDetector::GetStation ( const revt::Station station) const

Get rdet::Station from a revt::Station.

Definition at line 133 of file RDetector.cc.

References revt::Station::GetId().

double RDetector::GetTemperature ( const std::string &  site) const
RDetector& rdet::RDetector::operator= ( const RDetector rdetector)
private
StationIterator rdet::RDetector::StationsBegin ( ) const
inline
StationIterator rdet::RDetector::StationsEnd ( ) const
inline
void RDetector::Update ( )
private

Definition at line 38 of file RDetector.cc.

References is().

Friends And Related Function Documentation

friend class det::Detector
friend

Definition at line 159 of file RDetector.h.

Member Data Documentation

utl::Validated<bool> rdet::RDetector::fAddStationListFromSManager
mutableprivate

Definition at line 148 of file RDetector.h.

std::vector<double>* rdet::RDetector::fBeaconFreq = nullptr
mutableprivate

Definition at line 156 of file RDetector.h.

double* rdet::RDetector::fBeaconReferencePhase = nullptr
mutableprivate

Definition at line 157 of file RDetector.h.

utl::Validated<std::vector<int> > rdet::RDetector::fFullStationList
mutableprivate

Definition at line 145 of file RDetector.h.

InternalStationMap rdet::RDetector::fFullStationMap
mutableprivate

internal map of station id and station object

Definition at line 151 of file RDetector.h.

Referenced by StationsBegin(), and StationsEnd().

HardwareResponseProfileMap rdet::RDetector::fHardwareResponseProfileMap
mutableprivate

Definition at line 154 of file RDetector.h.

const std::string rdet::RDetector::fRDetectorName = "AERA"
private

Definition at line 140 of file RDetector.h.

int rdet::RDetector::fRdSdStationIdLink = 30000
private

Link between RD antenna stations on top of the corresponding SD (WCD) station. During read-in the REvent stations are initialized with an Id = Tank Id + fRdSdStationIdLink Never change this value!

Definition at line 164 of file RDetector.h.

Referenced by GetRdSdStationIdLink().


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

, generated on Tue Sep 26 2023.