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::TabulatedFunction & | GetCalibrationFunction () 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::Point & | GetPosition () const |
Get Position of this Antenna-Channel. More... | |
const utl::ResponseMap & | GetResponseMap () 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 |
Channel & | operator= (const Channel &) |
void | Update () const |
~Channel () | |
Private Attributes | |
utl::Validated< std::string > | fADCType |
AntennaType * | fAntenna |
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::Point > | fPosition |
utl::Validated< utl::ResponseMap > | fResponseMap |
utl::Validated< double > | fSamplingFrequency |
std::string | fStationIdString |
Friends | |
class | Station |
Detector description interface for Channel-related data.
Definition at line 27 of file RDetector/Channel.h.
|
private |
Definition at line 17 of file RDetector/Channel.cc.
References fAntenna, and GetAntennaTypeName().
|
private |
Definition at line 26 of file RDetector/Channel.cc.
References fAntenna.
|
private |
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 |
Get description of Antenna-Type.
Definition at line 130 of file RDetector/Channel.cc.
References fAntennaTypeName, and GetChannelData().
Referenced by Channel(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::CheckMatchingChannel(), RdStationTimingCalibratorOG::RdStationTimingCalibrator::Run(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), and RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run().
int Channel::GetBitDepth | ( | ) | const |
Get number of bits of ADC.
Definition at line 98 of file RDetector/Channel.cc.
References fBitDepth, and GetChannelData().
Referenced by RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::CheckMatchingChannel(), otoa::RdFiller::FillRadioChannels(), RdChannelVoltageToADCConverter::RdChannelVoltageToADCConverter::Run(), RdChannelADCToVoltageConverter::RdChannelADCToVoltageConverter::Run(), RdStationTimingCalibratorOG::RdStationTimingCalibrator::Run(), and RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run().
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().
|
inlineprivate |
Definition at line 171 of file RDetector/Channel.h.
References det::VManager::eNotFound, fChannelIdString, fStationIdString, utl::Validated< T >::Get(), det::VManager::GetData(), utl::Validated< T >::IsValid(), NotFoundAndExit(), and utl::Validated< T >::SetValid().
Referenced by GetADCType(), GetAntennaTypeName(), GetBitDepth(), GetChannelType(), GetDesignImpedance(), GetDesignLowerFreq(), GetDesignUpperFreq(), GetIntegratedHorizontalGain(), GetIntegratedVerticalGain(), GetMaxVoltage(), GetMinVoltage(), GetOkFlag(), GetOrientationAzimuth(), GetOrientationZenith(), GetOrientationZeta(), GetPosition(), GetResponseMap(), and GetSamplingFrequency().
const std::string & Channel::GetChannelType | ( | ) | const |
Get description of Channel Type.
Definition at line 82 of file RDetector/Channel.cc.
References fChannelType, and GetChannelData().
Referenced by RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::CheckMatchingChannel(), otoa::RdFiller::FillRadioChannels(), io::RadioFileAERAroot::Read(), RdScintSignalReconstructor::RdScintSignalReconstructor::Run(), and RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run().
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 |
Get design value of the freq-band.
Definition at line 42 of file RDetector/Channel.cc.
References fDesignLowerFreq, and GetChannelData().
Referenced by RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), RdChannelBandstopFilter::RdChannelBandstopFilter::Run(), RdAntennaStationToChannelConverter::RdAntennaStationToChannelConverter::Run(), RdChannelSineWaveSuppressor::RdChannelSineWaveSuppressor::Run(), RdChannelGalacticBackgroundCalibrator::RdChannelGalacticBackgroundCalibrator::Run(), RdChannelBeaconSuppressor::RdChannelBeaconSuppressor::Run(), RdChannelGalacticConstantsGenerator::RdChannelGalacticConstantsGenerator::Run(), RdDummyChannelToStationConverter::RdDummyChannelToStationConverter::Run(), RdChannelResponseIncorporator::RdChannelResponseIncorporator::Run(), RdStationInterpolator::RdStationInterpolator::Run(), RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Run(), and RDetectorTest::testRModel().
double Channel::GetDesignUpperFreq | ( | ) | const |
Get design value of the freq-band.
Definition at line 50 of file RDetector/Channel.cc.
References fDesignUpperFreq, and GetChannelData().
Referenced by RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), RdChannelBandstopFilter::RdChannelBandstopFilter::Run(), RdAntennaStationToChannelConverter::RdAntennaStationToChannelConverter::Run(), RdChannelSineWaveSuppressor::RdChannelSineWaveSuppressor::Run(), RdChannelGalacticBackgroundCalibrator::RdChannelGalacticBackgroundCalibrator::Run(), RdChannelBeaconSuppressor::RdChannelBeaconSuppressor::Run(), RdChannelGalacticConstantsGenerator::RdChannelGalacticConstantsGenerator::Run(), RdDummyChannelToStationConverter::RdDummyChannelToStationConverter::Run(), RdChannelResponseIncorporator::RdChannelResponseIncorporator::Run(), RdStationInterpolator::RdStationInterpolator::Run(), and RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Run().
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().
|
inline |
return ID of the Channel
Definition at line 31 of file RDetector/Channel.h.
References fChannelId.
Referenced by RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Run(), and RDetectorTest::testRModel().
double Channel::GetIntegratedEffectiveAntennaHeight | ( | const double | freq | ) | const |
Definition at line 173 of file RDetector/Channel.cc.
References fAntenna, and rdet::AntennaType::GetIntegratedEffectiveAntennaHeight().
Referenced by RdDummyChannelToStationConverter::RdDummyChannelToStationConverter::Run(), and RdChannelNoiseGenerator::RdChannelNoiseGenerator::Run().
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 |
Get voltage corresponding to max number of counts.
Definition at line 122 of file RDetector/Channel.cc.
References fMaxVoltage, and GetChannelData().
Referenced by otoa::RdFiller::FillRadioChannels(), RdChannelVoltageToADCConverter::RdChannelVoltageToADCConverter::Run(), and RdChannelADCToVoltageConverter::RdChannelADCToVoltageConverter::Run().
double Channel::GetMinVoltage | ( | ) | const |
Get voltage corresponding to 0 counts.
Definition at line 114 of file RDetector/Channel.cc.
References fMinVoltage, and GetChannelData().
Referenced by otoa::RdFiller::FillRadioChannels(), RdChannelVoltageToADCConverter::RdChannelVoltageToADCConverter::Run(), and RdChannelADCToVoltageConverter::RdChannelADCToVoltageConverter::Run().
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 |
Get azimuth-direction of Antenna for this Channel.
Definition at line 66 of file RDetector/Channel.cc.
References fOrientationAzimuth, and GetChannelData().
Referenced by RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::CheckMatchingChannel(), RdChannelBandstopFilter::RdChannelBandstopFilter::CutNoiseFrequencies(), GetElectricFieldResponse(), RdChannelSelector::RdChannelSelector::GetLowGainChannel(), RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), RdDummyStationToChannelConverter::RdDummyStationToChannelConverter::Run(), RdDummyChannelToStationConverter::RdDummyChannelToStationConverter::Run(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), and RDetectorTest::testRModel().
double Channel::GetOrientationZenith | ( | ) | const |
Get zenith-direction of Antenna for this Channel.
Definition at line 58 of file RDetector/Channel.cc.
References fOrientationZenith, and GetChannelData().
Referenced by RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::CheckMatchingChannel(), RdChannelSelector::RdChannelSelector::GetLowGainChannel(), RdAntennaChannelToStationConverter::RdAntennaChannelToStationConverter::Run(), RdDummyChannelToStationConverter::RdDummyChannelToStationConverter::Run(), RdDummyStationToChannelConverter::RdDummyStationToChannelConverter::Run(), and RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run().
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 |
Get Position of this Antenna-Channel.
Definition at line 190 of file RDetector/Channel.cc.
References fPosition, fStationIdString, utl::Validated< T >::Get(), GetChannelData(), utl::Validated< T >::IsValid(), and utl::Validated< T >::Set().
Referenced by RDetectorTest::testRModel().
const ResponseMap & Channel::GetResponseMap | ( | ) | const |
Get the ResponseMap of the Channel.
Definition at line 222 of file RDetector/Channel.cc.
References fResponseMap, utl::Validated< T >::Get(), GetChannelData(), utl::Validated< T >::IsValid(), utl::m, and utl::Validated< T >::Set().
Referenced by RdChannelResponseIncorporator::RdChannelResponseIncorporator::Run(), and RDetectorTest::testRModel().
double Channel::GetSamplingFrequency | ( | ) | const |
Get sampling Frequency of ADC (unit?)
Definition at line 106 of file RDetector/Channel.cc.
References fSamplingFrequency, and GetChannelData().
Referenced by RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::CheckMatchingChannel(), RdChannelResampler::RdChannelResampler::Run(), RdChannelVoltageToADCConverter::RdChannelVoltageToADCConverter::Run(), RdChannelADCToVoltageConverter::RdChannelADCToVoltageConverter::Run(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Run(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::Run(), and RSQLManagerTest::testStationListManager().
|
private |
Definition at line 209 of file RDetector/Channel.cc.
References ERROR, fChannelIdString, and fStationIdString.
Referenced by GetChannelData().
|
private |
Definition at line 181 of file RDetector/Channel.cc.
References fChannelOk, and utl::Validated< T >::SetValid().
|
friend |
Definition at line 164 of file RDetector/Channel.h.
|
mutableprivate |
Definition at line 142 of file RDetector/Channel.h.
Referenced by GetADCType().
|
private |
Definition at line 162 of file RDetector/Channel.h.
Referenced by Channel(), GetElectricFieldResponse(), GetIntegratedEffectiveAntennaHeight(), and ~Channel().
|
mutableprivate |
Definition at line 149 of file RDetector/Channel.h.
Referenced by GetAntennaTypeName().
|
mutableprivate |
Definition at line 143 of file RDetector/Channel.h.
Referenced by GetBitDepth().
|
private |
Definition at line 129 of file RDetector/Channel.h.
Referenced by GetId().
|
private |
Definition at line 127 of file RDetector/Channel.h.
Referenced by GetChannelData(), and NotFoundAndExit().
|
mutableprivate |
Definition at line 132 of file RDetector/Channel.h.
Referenced by GetOkFlag(), and Update().
|
mutableprivate |
Definition at line 139 of file RDetector/Channel.h.
Referenced by GetChannelType().
|
mutableprivate |
Definition at line 151 of file RDetector/Channel.h.
Referenced by GetDesignImpedance().
|
mutableprivate |
Definition at line 133 of file RDetector/Channel.h.
Referenced by GetDesignLowerFreq().
|
mutableprivate |
Definition at line 134 of file RDetector/Channel.h.
Referenced by GetDesignUpperFreq().
|
mutableprivate |
Definition at line 152 of file RDetector/Channel.h.
Referenced by GetIntegratedHorizontalGain().
|
mutableprivate |
Definition at line 153 of file RDetector/Channel.h.
Referenced by GetIntegratedVerticalGain().
|
mutableprivate |
Definition at line 146 of file RDetector/Channel.h.
Referenced by GetMaxVoltage().
|
mutableprivate |
Definition at line 145 of file RDetector/Channel.h.
Referenced by GetMinVoltage().
|
mutableprivate |
Definition at line 136 of file RDetector/Channel.h.
Referenced by GetOrientationAzimuth().
|
mutableprivate |
Definition at line 135 of file RDetector/Channel.h.
Referenced by GetOrientationZenith().
|
mutableprivate |
Definition at line 137 of file RDetector/Channel.h.
Referenced by GetOrientationZeta().
|
mutableprivate |
Definition at line 138 of file RDetector/Channel.h.
Referenced by GetPosition().
|
mutableprivate |
Definition at line 155 of file RDetector/Channel.h.
Referenced by GetResponseMap().
|
mutableprivate |
Definition at line 144 of file RDetector/Channel.h.
Referenced by GetSamplingFrequency().
|
private |
Definition at line 126 of file RDetector/Channel.h.
Referenced by GetChannelData(), GetPosition(), and NotFoundAndExit().