Detector description interface for Station-related data. More...
#include <rdet/Station.h>
Public Types | |
typedef boost::indirect_iterator < InternalChannelIterator, const Channel & > | ChannelIterator |
ChannelIterator returns a pointer to a Channel. More... | |
Public Member Functions | |
ChannelIterator | ChannelsBegin () const |
Beginning of the collection of pointers to Channels. More... | |
ChannelIterator | ChannelsEnd () const |
End of the collection of pointers to Channels. More... | |
const Channel & | GetChannel (const int id) const |
Get specified Channel by id. More... | |
const Channel & | GetChannel (const revt::Channel &channel) const |
Get rdet::Channel from an revt::Channel. More... | |
const utl::TimeStamp & | GetCommissionTime () const |
Station commission time. More... | |
const utl::TimeRange & | GetCommissionTimeRange () const |
Station commission time range. More... | |
const utl::TimeStamp & | GetDecommissionTime () const |
Station decommission time. More... | |
int | GetId () const |
Station ID. More... | |
int | GetInternalChannelId (const int channelId) const |
std::vector< int > | GetListOfChannelIds () const |
returns a list with the commissioned channels ids of the station More... | |
utl::CoordinateSystemPtr | GetLocalCoordinateSystem () const |
Get the Auger reference system centered on the station. More... | |
std::string | GetName () const |
Station name. More... | |
int | GetNChannels () const |
Number of channels in station. More... | |
utl::Point | GetPosition () const |
Tank position in Site Cartesian Coordinates. More... | |
bool | HasChannel (const int channelId) const |
bool | IsInAcquisition () const |
Station in data acquisition. More... | |
bool | IsInEngineeringArray () const |
bool | IsInGrid (const int level=0) const |
Tells whether the station is in the regular triangular grid. More... | |
bool | IsVirtual () const |
void | SetListOfChannelIds () |
set list of channel ids of the station More... | |
Private Types | |
typedef InternalChannelVector::const_iterator | InternalChannelIterator |
typedef std::vector< const Channel * > | InternalChannelVector |
Private Member Functions | |
template<typename T > | |
det::VManager::Status | GetDefaultData (T &returnData, const std::string &componentProperty) const |
template<typename T > | |
det::VManager::Status | GetStationData (T &requestedData, const std::string &property, const std::string &component, const std::string &errorMsg, const bool throwOnFailure=true) const |
void | NotFoundAndThrow (const std::string &msg) const |
Station | operator= (const Station &) |
Station (const int) | |
Station (const Station &) | |
void | Update () const |
~Station () | |
Private Attributes | |
std::map< int, int > | fChannelIdToInternalChannelId |
InternalChannelVector | fChannelVector |
utl::Validated< utl::TimeRange > | fCommissionTimeRange |
utl::ReferenceEllipsoid::EllipsoidID | fEllipsoid |
utl::Validated< int > | fFirstChannelId |
int | fId |
utl::Validated< int > | fInGrid |
utl::Validated< int > | fIsInAcquisition |
utl::Validated< int > | fLastChannelId |
std::vector< int > | fListOfChannelIds |
utl::Validated< std::string > | fName |
utl::Validated< int > | fNChannels |
utl::Validated< utl::Point > | fPosition |
utl::CoordinateSystemPtr | fReferenceSystem |
std::string | fStationIdString |
Friends | |
class | RDetector |
Detector description interface for Station-related data.
Definition at line 50 of file RDetector/Station.h.
typedef boost::indirect_iterator<InternalChannelIterator, const Channel&> rdet::Station::ChannelIterator |
ChannelIterator returns a pointer to a Channel.
Definition at line 78 of file RDetector/Station.h.
|
private |
Definition at line 54 of file RDetector/Station.h.
|
private |
Definition at line 53 of file RDetector/Station.h.
|
private |
Definition at line 32 of file RDetector/Station.cc.
References fChannelVector, fListOfChannelIds, and SetListOfChannelIds().
|
private |
Definition at line 44 of file RDetector/Station.cc.
References fChannelVector.
|
private |
|
inline |
Beginning of the collection of pointers to Channels.
Definition at line 81 of file RDetector/Station.h.
References fChannelVector.
Referenced by RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), and RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run().
|
inline |
End of the collection of pointers to Channels.
Definition at line 85 of file RDetector/Station.h.
References fChannelVector.
Referenced by RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), and RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run().
const Channel & Station::GetChannel | ( | const int | id | ) | const |
Get specified Channel by id.
Definition at line 53 of file RDetector/Station.cc.
References ERROR, fChannelIdToInternalChannelId, fChannelVector, and fListOfChannelIds.
Referenced by GetChannel(), io::RadioFileAERAroot::Read(), RdChannelAmplitudeTemperatureDependenceCorrector::RdChannelAmplitudeTemperatureDependenceCorrector::Run(), RdChannelNoiseImporter_RD::RdChannelNoiseImporter_RD::Run(), RdChannelASCIINoiseImporterRD::RdChannelASCIINoiseImporterRD::Run(), RdAntennaStationToChannelConverter::RdAntennaStationToChannelConverter::Run(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::Run(), RDetectorTest::testAntennaType(), RDetectorTest::testRModel(), and RSQLManagerTest::testStationListManager().
const Channel & Station::GetChannel | ( | const revt::Channel & | channel | ) | const |
Get rdet::Channel from an revt::Channel.
Definition at line 72 of file RDetector/Station.cc.
References GetChannel(), and revt::Channel::GetId().
|
inline |
Station commission time.
Definition at line 91 of file RDetector/Station.h.
References GetCommissionTimeRange(), and utl::TimeRange::GetStartTime().
const TimeRange & Station::GetCommissionTimeRange | ( | ) | const |
Station commission time range.
Definition at line 111 of file RDetector/Station.cc.
References fCommissionTimeRange, utl::Validated< T >::Get(), GetStationData(), and utl::Validated< T >::IsValid().
Referenced by GetCommissionTime(), and GetDecommissionTime().
|
inline |
Station decommission time.
Definition at line 95 of file RDetector/Station.h.
References GetCommissionTimeRange(), and utl::TimeRange::GetStopTime().
|
private |
|
inline |
Station ID.
Definition at line 75 of file RDetector/Station.h.
References fId.
Referenced by RdAirplane::DataWriter::registerStationInfo(), RdChannelNoiseImporter_RD::RdChannelNoiseImporter_RD::Run(), RdStationRejector::RdStationRejector::Run(), RdChannelSelector::RdChannelSelector::Run(), RdChannelBeaconSimulator::RdChannelBeaconSimulator::Run(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run(), RDetectorTest::testRModel(), and RdAirplane::PulseInfoWriter::writePulseInfo().
|
inline |
Definition at line 61 of file RDetector/Station.h.
References fChannelIdToInternalChannelId.
Referenced by revt::Station::GetChannel().
|
inline |
returns a list with the commissioned channels ids of the station
Definition at line 59 of file RDetector/Station.h.
References fListOfChannelIds.
Referenced by io::revtStation_ROOT::operator>>().
utl::CoordinateSystemPtr Station::GetLocalCoordinateSystem | ( | ) | const |
Get the Auger reference system centered on the station.
Definition at line 186 of file RDetector/Station.cc.
References fwk::LocalCoordinateSystemConstructor< Policy >::Create(), fReferenceSystem, and GetPosition().
Referenced by RdSphericalFit::RdSphericalFit::Run(), RdAirplane::RdAirplaneArrivalDirectionSetter::Run(), RDetectorTest::testStationListManager(), and RdAirplane::PulseInfoWriter::writePulseInfo().
string Station::GetName | ( | ) | const |
Station name.
Definition at line 80 of file RDetector/Station.cc.
References fName, utl::Validated< T >::Get(), GetStationData(), utl::Validated< T >::IsValid(), and utl::Validated< T >::SetValid().
Referenced by RSQLManagerTest::testStationListManager(), and RDetectorTest::testStationListManager().
|
inline |
Number of channels in station.
Definition at line 69 of file RDetector/Station.h.
References fListOfChannelIds.
Referenced by io::revtStation_ROOT::operator>>(), io::RadioFileAERA::Read(), io::IoAugerEventFile::Read(), and io::RadioFileAERAroot::Read().
Point Station::GetPosition | ( | ) | const |
Tank position in Site Cartesian Coordinates.
Definition at line 127 of file RDetector/Station.cc.
References fEllipsoid, fPosition, utl::Validated< T >::Get(), utl::UTMPoint::GetPoint(), GetStationData(), and utl::Validated< T >::IsValid().
Referenced by RdPlaneFit::RdPlaneFit::CalculateTimeResidual(), RdScintPlaneFit::RdScintPlaneFit::CalculateTimeResidual(), RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::CalculateTimeResidual(), RdScintSignalReconstructor::RdScintSignalReconstructor::ComputeBaryCenter(), RdWaveFit::RdWaveFit::ComputeBaryCenter(), RdEventInitializer::RdEventInitializer::ComputeCoordinateOrigin(), RdWaveFit::RdWaveFit::ConicalWaveFit(), RdBeamTimeOptimizer::RdBeamTimeOptimizer::delaysFromRRec(), RdEVASimPreparator::RdEVASimPreparator::EVAFileWriter(), RdLDFFitter::RdLDFFitter::GetAnglesToEFieldExpectation(), RdLDFFitter::RdLDFFitter::GetAnglesToLorentzVector(), EventGeneratorOG::EventGenerator::GetCoreShiftForRadioSimulation(), GetLocalCoordinateSystem(), 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(), RdClusterFinder::RdClusterFinder::Run(), RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), ShowerMaker::ShowerMaker::Run(), RdEventPostSelector::RdEventPostSelector::Run(), RdStationSimulationRejector::RdStationSimulationRejector::Run(), RdStationEFieldVectorCalculator::RdStationEFieldVectorCalculator::Run(), RdAntennaStationToChannelConverter::RdAntennaStationToChannelConverter::Run(), RdChannelBeaconSimulator::RdChannelBeaconSimulator::Run(), RdStationPolarizationRejector::RdStationPolarizationRejector::Run(), Rd2dLDFFitter::Rd2dLDFFitter::Run(), RdChannelBeaconTimingCalibrator::RdChannelBeaconTimingCalibrator::Run(), RdLDFChargeExcessCorrector::RdLDFChargeExcessCorrector::Run(), RdStationBeamFormer::RdStationBeamFormer::Run(), RdChannelNoisePulseCounter::RdChannelNoisePulseCounter::Run(), RdPlaneFit::RdPlaneFit::Run(), RdTimeCalibration::RdTimeCalibration::Run(), RdCheckFootprint::RdCheckFootprint::Run(), RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::Run(), RdGlobalFit::RdGlobalFit::Run(), RdLDFMultiFitter::RdLDFMultiFitter::Run(), RdStationSignalInterpolator::RdStationSignalInterpolator::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(), and RSQLManagerTest::testStationListManager().
|
private |
Definition at line 271 of file RDetector/Station.cc.
References det::VManager::eNotFound, fId, fStationIdString, det::VManager::GetData(), and NotFoundAndThrow().
Referenced by GetCommissionTimeRange(), GetName(), GetPosition(), IsInAcquisition(), IsInGrid(), and IsVirtual().
|
inline |
Definition at line 63 of file RDetector/Station.h.
References fChannelIdToInternalChannelId.
Referenced by revt::Station::GetChannel(), and revt::Station::HasChannel().
bool Station::IsInAcquisition | ( | ) | const |
Station in data acquisition.
Definition at line 101 of file RDetector/Station.cc.
References GetStationData().
|
inline |
Definition at line 112 of file RDetector/Station.h.
References fId.
bool Station::IsInGrid | ( | const int | level = 0 | ) | const |
Tells whether the station is in the regular triangular grid.
Definition at line 158 of file RDetector/Station.cc.
References fId, fInGrid, utl::Validated< T >::Get(), GetStationData(), utl::Validated< T >::IsValid(), and utl::Validated< T >::SetValid().
bool Station::IsVirtual | ( | ) | const |
Definition at line 91 of file RDetector/Station.cc.
References GetStationData().
|
private |
Definition at line 174 of file RDetector/Station.cc.
References ERROR, and fStationIdString.
Referenced by GetStationData(), and SetListOfChannelIds().
void Station::SetListOfChannelIds | ( | ) |
set list of channel ids of the station
Definition at line 242 of file RDetector/Station.cc.
References det::VManager::eNotFound, fChannelIdToInternalChannelId, fId, fListOfChannelIds, fStationIdString, det::VManager::GetData(), and NotFoundAndThrow().
Referenced by Station().
|
private |
Definition at line 198 of file RDetector/Station.cc.
References fChannelVector, fIsInAcquisition, and utl::Validated< T >::SetValid().
|
friend |
Definition at line 188 of file RDetector/Station.h.
|
private |
Definition at line 184 of file RDetector/Station.h.
Referenced by GetChannel(), GetInternalChannelId(), HasChannel(), and SetListOfChannelIds().
|
private |
Definition at line 167 of file RDetector/Station.h.
Referenced by ChannelsBegin(), ChannelsEnd(), GetChannel(), Station(), Update(), and ~Station().
|
mutableprivate |
Definition at line 186 of file RDetector/Station.h.
Referenced by GetCommissionTimeRange().
|
mutableprivate |
Definition at line 173 of file RDetector/Station.h.
Referenced by GetPosition().
|
mutableprivate |
Definition at line 180 of file RDetector/Station.h.
|
private |
Definition at line 162 of file RDetector/Station.h.
Referenced by GetId(), GetStationData(), IsInEngineeringArray(), IsInGrid(), and SetListOfChannelIds().
|
mutableprivate |
Definition at line 172 of file RDetector/Station.h.
Referenced by IsInGrid().
|
mutableprivate |
Definition at line 177 of file RDetector/Station.h.
Referenced by Update().
|
mutableprivate |
Definition at line 181 of file RDetector/Station.h.
|
private |
Definition at line 183 of file RDetector/Station.h.
Referenced by GetChannel(), GetListOfChannelIds(), GetNChannels(), SetListOfChannelIds(), and Station().
|
mutableprivate |
Definition at line 171 of file RDetector/Station.h.
Referenced by GetName().
|
mutableprivate |
Definition at line 179 of file RDetector/Station.h.
|
mutableprivate |
Definition at line 175 of file RDetector/Station.h.
Referenced by GetPosition().
|
mutableprivate |
Definition at line 174 of file RDetector/Station.h.
Referenced by GetLocalCoordinateSystem().
|
private |
Definition at line 165 of file RDetector/Station.h.
Referenced by GetStationData(), NotFoundAndThrow(), and SetListOfChannelIds().