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

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 ChannelGetChannel (const int id) const
 Get specified Channel by id. More...
 
const ChannelGetChannel (const revt::Channel &channel) const
 Get rdet::Channel from an revt::Channel. More...
 
const utl::TimeStampGetCommissionTime () const
 Station commission time. More...
 
const utl::TimeRangeGetCommissionTimeRange () const
 Station commission time range. More...
 
const utl::TimeStampGetDecommissionTime () 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::TimeRangefCommissionTimeRange
 
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::PointfPosition
 
utl::CoordinateSystemPtr fReferenceSystem
 
std::string fStationIdString
 

Friends

class RDetector
 

Detailed Description

Detector description interface for Station-related data.

Author
T. Paul

Definition at line 50 of file RDetector/Station.h.

Member Typedef Documentation

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.

typedef InternalChannelVector::const_iterator rdet::Station::InternalChannelIterator
private

Definition at line 54 of file RDetector/Station.h.

typedef std::vector<const Channel*> rdet::Station::InternalChannelVector
private

Definition at line 53 of file RDetector/Station.h.

Constructor & Destructor Documentation

Station::Station ( const int  id)
private

Definition at line 32 of file RDetector/Station.cc.

References fChannelVector, fListOfChannelIds, and SetListOfChannelIds().

Station::~Station ( )
private

Definition at line 44 of file RDetector/Station.cc.

References fChannelVector.

rdet::Station::Station ( const Station )
private

Member Function Documentation

ChannelIterator rdet::Station::ChannelsBegin ( ) const
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().

ChannelIterator rdet::Station::ChannelsEnd ( ) const
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
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().

const utl::TimeStamp& rdet::Station::GetCommissionTime ( ) const
inline

Station commission time.

Definition at line 91 of file RDetector/Station.h.

References GetCommissionTimeRange(), and utl::TimeRange::GetStartTime().

const TimeRange & Station::GetCommissionTimeRange ( ) const
const utl::TimeStamp& rdet::Station::GetDecommissionTime ( ) const
inline

Station decommission time.

Definition at line 95 of file RDetector/Station.h.

References GetCommissionTimeRange(), and utl::TimeRange::GetStopTime().

template<typename T >
det::VManager::Status rdet::Station::GetDefaultData ( T &  returnData,
const std::string &  componentProperty 
) const
private
int rdet::Station::GetId ( ) const
inline
int rdet::Station::GetInternalChannelId ( const int  channelId) const
inline

Definition at line 61 of file RDetector/Station.h.

References fChannelIdToInternalChannelId.

Referenced by revt::Station::GetChannel().

std::vector<int> rdet::Station::GetListOfChannelIds ( ) const
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
string Station::GetName ( ) const
int rdet::Station::GetNChannels ( ) const
inline
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().

template<typename T >
det::VManager::Status Station::GetStationData ( T &  requestedData,
const std::string &  property,
const std::string &  component,
const std::string &  errorMsg,
const bool  throwOnFailure = true 
) const
private
bool rdet::Station::HasChannel ( const int  channelId) const
inline
bool Station::IsInAcquisition ( ) const

Station in data acquisition.

Definition at line 101 of file RDetector/Station.cc.

References GetStationData().

bool rdet::Station::IsInEngineeringArray ( ) const
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().

void Station::NotFoundAndThrow ( const std::string &  msg) const
private

Definition at line 174 of file RDetector/Station.cc.

References ERROR, and fStationIdString.

Referenced by GetStationData(), and SetListOfChannelIds().

Station rdet::Station::operator= ( const Station )
private
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().

void Station::Update ( ) const
private

Friends And Related Function Documentation

friend class RDetector
friend

Definition at line 188 of file RDetector/Station.h.

Member Data Documentation

std::map<int, int> rdet::Station::fChannelIdToInternalChannelId
private
InternalChannelVector rdet::Station::fChannelVector
private

Definition at line 167 of file RDetector/Station.h.

Referenced by ChannelsBegin(), ChannelsEnd(), GetChannel(), Station(), Update(), and ~Station().

utl::Validated<utl::TimeRange> rdet::Station::fCommissionTimeRange
mutableprivate

Definition at line 186 of file RDetector/Station.h.

Referenced by GetCommissionTimeRange().

utl::ReferenceEllipsoid::EllipsoidID rdet::Station::fEllipsoid
mutableprivate

Definition at line 173 of file RDetector/Station.h.

Referenced by GetPosition().

utl::Validated<int> rdet::Station::fFirstChannelId
mutableprivate

Definition at line 180 of file RDetector/Station.h.

int rdet::Station::fId
private
utl::Validated<int> rdet::Station::fInGrid
mutableprivate

Definition at line 172 of file RDetector/Station.h.

Referenced by IsInGrid().

utl::Validated<int> rdet::Station::fIsInAcquisition
mutableprivate

Definition at line 177 of file RDetector/Station.h.

Referenced by Update().

utl::Validated<int> rdet::Station::fLastChannelId
mutableprivate

Definition at line 181 of file RDetector/Station.h.

std::vector<int> rdet::Station::fListOfChannelIds
private
utl::Validated<std::string> rdet::Station::fName
mutableprivate

Definition at line 171 of file RDetector/Station.h.

Referenced by GetName().

utl::Validated<int> rdet::Station::fNChannels
mutableprivate

Definition at line 179 of file RDetector/Station.h.

utl::Validated<utl::Point> rdet::Station::fPosition
mutableprivate

Definition at line 175 of file RDetector/Station.h.

Referenced by GetPosition().

utl::CoordinateSystemPtr rdet::Station::fReferenceSystem
mutableprivate

Definition at line 174 of file RDetector/Station.h.

Referenced by GetLocalCoordinateSystem().

std::string rdet::Station::fStationIdString
private

Definition at line 165 of file RDetector/Station.h.

Referenced by GetStationData(), NotFoundAndThrow(), and SetListOfChannelIds().


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

, generated on Tue Sep 26 2023.