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

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

#include <Channel.h>

Public Member Functions

const std::string & GetADCType () const
 Get description of ADC-Type. More...
 
const std::string & GetAntennaTypeName () const
 Get description of Antenna-Type. More...
 
int GetBitDepth () const
 Get number of bits of ADC. More...
 
const utl::TabulatedFunctionGetCalibrationFunction () const
 Get a TabulatedFunction with calibration factors for the frequency bins of the Channel, not yet implemented. More...
 
const std::string & GetChannelType () const
 Get description of Channel Type. More...
 
double GetDesignImpedance () const
 Get DesignImpediance of Antenna-Type. More...
 
double GetDesignLowerFreq () const
 Get design value of the freq-band. More...
 
double GetDesignUpperFreq () const
 Get design value of the freq-band. More...
 
std::pair< std::complex
< double >, std::complex
< double > > 
GetElectricFieldResponse (const double theta, const double phi, const double freq, std::string interpolationMode) const
 
int GetId () const
 return ID of the Channel More...
 
double GetIntegratedEffectiveAntennaHeight (const double freq) const
 
double GetIntegratedHorizontalGain () const
 Get IntegratedHorizontalGain of Antenna-Type. More...
 
double GetIntegratedVerticalGain () const
 Get IntegratedVerticalGain of Antenna-Type. More...
 
double GetMaxVoltage () const
 Get voltage corresponding to max number of counts. More...
 
double GetMinVoltage () const
 Get voltage corresponding to 0 counts. More...
 
int GetOkFlag () const
 Channel Ok flag (1 if the currently cached data are up to date, 0 if currently cached data are obsolete) More...
 
double GetOrientationAzimuth () const
 Get azimuth-direction of Antenna for this Channel. More...
 
double GetOrientationZenith () const
 Get zenith-direction of Antenna for this Channel. More...
 
double GetOrientationZeta () const
 Get zeta-tilt of Antenna for this Channel. More...
 
const utl::PointGetPosition () const
 Get Position of this Antenna-Channel. More...
 
const utl::ResponseMapGetResponseMap () const
 Get the ResponseMap of the Channel. More...
 
double GetSamplingFrequency () const
 Get sampling Frequency of ADC (unit?) More...
 

Private Member Functions

 Channel (const int stationId, const int ChannelId)
 
 Channel (const Channel &)
 
template<typename T >
const T & GetChannelData (utl::Validated< T > &requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
 
void NotFoundAndExit (const std::string &msg) const
 
Channeloperator= (const Channel &)
 
void Update () const
 
 ~Channel ()
 

Private Attributes

utl::Validated< std::string > fADCType
 
AntennaTypefAntenna
 
utl::Validated< std::string > fAntennaTypeName
 
utl::Validated< int > fBitDepth
 
int fChannelId
 
std::string fChannelIdString
 
utl::Validated< int > fChannelOk
 
utl::Validated< std::string > fChannelType
 
utl::Validated< double > fDesignImpedance
 
utl::Validated< double > fDesignLowerFreq
 
utl::Validated< double > fDesignUpperFreq
 
utl::Validated< double > fIntegratedHorizontalGain
 
utl::Validated< double > fIntegratedVerticalGain
 
utl::Validated< double > fMaxVoltage
 
utl::Validated< double > fMinVoltage
 
utl::Validated< double > fOrientationAzimuth
 
utl::Validated< double > fOrientationZenith
 
utl::Validated< double > fOrientationZeta
 
utl::Validated< utl::PointfPosition
 
utl::Validated< utl::ResponseMapfResponseMap
 
utl::Validated< double > fSamplingFrequency
 
std::string fStationIdString
 

Friends

class Station
 

Detailed Description

Detector description interface for Channel-related data.

Author
T. Paul
J. Rautenberg
Date
4 March 2003
June 2009

Definition at line 27 of file RDetector/Channel.h.

Constructor & Destructor Documentation

Channel::Channel ( const int  stationId,
const int  ChannelId 
)
private

Definition at line 17 of file RDetector/Channel.cc.

References fAntenna, and GetAntennaTypeName().

Channel::~Channel ( )
private

Definition at line 26 of file RDetector/Channel.cc.

References fAntenna.

rdet::Channel::Channel ( const Channel )
private

Member Function Documentation

const std::string & Channel::GetADCType ( ) const

Get description of ADC-Type.

Definition at line 90 of file RDetector/Channel.cc.

References fADCType, and GetChannelData().

const std::string & Channel::GetAntennaTypeName ( ) const
int Channel::GetBitDepth ( ) const
const TabulatedFunction & Channel::GetCalibrationFunction ( ) const

Get a TabulatedFunction with calibration factors for the frequency bins of the Channel, not yet implemented.

Definition at line 235 of file RDetector/Channel.cc.

References ERROR.

Referenced by RdChannelAmplitudeCalibrator::RdChannelAmplitudeCalibrator::Run().

template<typename T >
const T& rdet::Channel::GetChannelData ( utl::Validated< T > &  requestedData,
const std::string &  property,
const std::string &  component,
const std::string &  errorMsg 
) const
inlineprivate
const std::string & Channel::GetChannelType ( ) const
double Channel::GetDesignImpedance ( ) const

Get DesignImpediance of Antenna-Type.

Definition at line 138 of file RDetector/Channel.cc.

References fDesignImpedance, and GetChannelData().

double Channel::GetDesignLowerFreq ( ) const
double Channel::GetDesignUpperFreq ( ) const
pair< complex< double >, complex< double > > Channel::GetElectricFieldResponse ( const double  theta,
const double  phi,
const double  freq,
std::string  interpolationMode 
) const

Get GetElectricFieldResponse returns the response of the antenna belonging to this channel for a certain incoming direction of the wave (theta, phi) (Poynting vector) at a certain frequency f. The antenna has to be thought of to be placed in the center of the corresponding spherical coordinate system. This function will take into account the orientation of the antenna in azimuth properly. When the antenna is tilted in zenith, this is allowed as well. However, note that the gain pattern of the antenna is changing when the antenna is tilted, which cannot be taken into account properly by this function. The returned result is (H_theta,H_phi), the effective antenna height, where the response has already been transferred into the 50Ohm System.

Definition at line 162 of file RDetector/Channel.cc.

References fAntenna, rdet::AntennaType::GetElectricFieldResponse(), and GetOrientationAzimuth().

Referenced by RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), RdAntennaStationToChannelConverter::RdAntennaStationToChannelConverter::Run(), and RDetectorTest::testAntennaType().

int rdet::Channel::GetId ( ) const
inline
double Channel::GetIntegratedEffectiveAntennaHeight ( const double  freq) const
double Channel::GetIntegratedHorizontalGain ( ) const

Get IntegratedHorizontalGain of Antenna-Type.

Definition at line 146 of file RDetector/Channel.cc.

References fIntegratedHorizontalGain, and GetChannelData().

double Channel::GetIntegratedVerticalGain ( ) const

Get IntegratedVerticalGain of Antenna-Type.

Definition at line 154 of file RDetector/Channel.cc.

References fIntegratedVerticalGain, and GetChannelData().

double Channel::GetMaxVoltage ( ) const
double Channel::GetMinVoltage ( ) const
int Channel::GetOkFlag ( ) const

Channel Ok flag (1 if the currently cached data are up to date, 0 if currently cached data are obsolete)

Definition at line 34 of file RDetector/Channel.cc.

References fChannelOk, and GetChannelData().

double Channel::GetOrientationAzimuth ( ) const
double Channel::GetOrientationZenith ( ) const
double Channel::GetOrientationZeta ( ) const

Get zeta-tilt of Antenna for this Channel.

Definition at line 74 of file RDetector/Channel.cc.

References fOrientationZeta, and GetChannelData().

Referenced by RdChannelSelector::RdChannelSelector::GetLowGainChannel(), and RDetectorTest::testRModel().

const Point & Channel::GetPosition ( ) const
const ResponseMap & Channel::GetResponseMap ( ) const
double Channel::GetSamplingFrequency ( ) const
void Channel::NotFoundAndExit ( const std::string &  msg) const
private

Definition at line 209 of file RDetector/Channel.cc.

References ERROR, fChannelIdString, and fStationIdString.

Referenced by GetChannelData().

Channel& rdet::Channel::operator= ( const Channel )
private
void Channel::Update ( ) const
private

Definition at line 181 of file RDetector/Channel.cc.

References fChannelOk, and utl::Validated< T >::SetValid().

Friends And Related Function Documentation

friend class Station
friend

Definition at line 164 of file RDetector/Channel.h.

Member Data Documentation

utl::Validated<std::string> rdet::Channel::fADCType
mutableprivate

Definition at line 142 of file RDetector/Channel.h.

Referenced by GetADCType().

AntennaType* rdet::Channel::fAntenna
private
utl::Validated<std::string> rdet::Channel::fAntennaTypeName
mutableprivate

Definition at line 149 of file RDetector/Channel.h.

Referenced by GetAntennaTypeName().

utl::Validated<int> rdet::Channel::fBitDepth
mutableprivate

Definition at line 143 of file RDetector/Channel.h.

Referenced by GetBitDepth().

int rdet::Channel::fChannelId
private

Definition at line 129 of file RDetector/Channel.h.

Referenced by GetId().

std::string rdet::Channel::fChannelIdString
private

Definition at line 127 of file RDetector/Channel.h.

Referenced by GetChannelData(), and NotFoundAndExit().

utl::Validated<int> rdet::Channel::fChannelOk
mutableprivate

Definition at line 132 of file RDetector/Channel.h.

Referenced by GetOkFlag(), and Update().

utl::Validated<std::string> rdet::Channel::fChannelType
mutableprivate

Definition at line 139 of file RDetector/Channel.h.

Referenced by GetChannelType().

utl::Validated<double> rdet::Channel::fDesignImpedance
mutableprivate

Definition at line 151 of file RDetector/Channel.h.

Referenced by GetDesignImpedance().

utl::Validated<double> rdet::Channel::fDesignLowerFreq
mutableprivate

Definition at line 133 of file RDetector/Channel.h.

Referenced by GetDesignLowerFreq().

utl::Validated<double> rdet::Channel::fDesignUpperFreq
mutableprivate

Definition at line 134 of file RDetector/Channel.h.

Referenced by GetDesignUpperFreq().

utl::Validated<double> rdet::Channel::fIntegratedHorizontalGain
mutableprivate

Definition at line 152 of file RDetector/Channel.h.

Referenced by GetIntegratedHorizontalGain().

utl::Validated<double> rdet::Channel::fIntegratedVerticalGain
mutableprivate

Definition at line 153 of file RDetector/Channel.h.

Referenced by GetIntegratedVerticalGain().

utl::Validated<double> rdet::Channel::fMaxVoltage
mutableprivate

Definition at line 146 of file RDetector/Channel.h.

Referenced by GetMaxVoltage().

utl::Validated<double> rdet::Channel::fMinVoltage
mutableprivate

Definition at line 145 of file RDetector/Channel.h.

Referenced by GetMinVoltage().

utl::Validated<double> rdet::Channel::fOrientationAzimuth
mutableprivate

Definition at line 136 of file RDetector/Channel.h.

Referenced by GetOrientationAzimuth().

utl::Validated<double> rdet::Channel::fOrientationZenith
mutableprivate

Definition at line 135 of file RDetector/Channel.h.

Referenced by GetOrientationZenith().

utl::Validated<double> rdet::Channel::fOrientationZeta
mutableprivate

Definition at line 137 of file RDetector/Channel.h.

Referenced by GetOrientationZeta().

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

Definition at line 138 of file RDetector/Channel.h.

Referenced by GetPosition().

utl::Validated<utl::ResponseMap> rdet::Channel::fResponseMap
mutableprivate

Definition at line 155 of file RDetector/Channel.h.

Referenced by GetResponseMap().

utl::Validated<double> rdet::Channel::fSamplingFrequency
mutableprivate

Definition at line 144 of file RDetector/Channel.h.

Referenced by GetSamplingFrequency().

std::string rdet::Channel::fStationIdString
private

Definition at line 126 of file RDetector/Channel.h.

Referenced by GetChannelData(), GetPosition(), and NotFoundAndExit().


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

, generated on Tue Sep 26 2023.