1 #include <det/Detector.h>
3 #include <rdet/RDetector.h>
4 #include <rdet/Channel.h>
6 #include <utl/ErrorLogger.h>
7 #include <utl/AugerException.h>
17 Channel::Channel(
const int sid,
const int cid) :
18 fStationIdString(boost::lexical_cast<string>(sid)),
19 fChannelIdString(boost::lexical_cast<string>(cid)),
161 pair<complex<double>, complex<double>>
163 const std::string interpolationMode)
200 Detector::GetInstance().GetRDetector().GetStation(
id).GetLocalCoordinateSystem();
213 err <<
"Did not find requested component :" << msg <<
"\n"
227 GetChannelData(m,
"ResponseMapEntry",
"RResponseMapList",
"ResponseMap");
240 const string err =
"Channel::GetCalibrationFunction() not implemented!";
int GetBitDepth() const
Get number of bits of ADC.
utl::Validated< double > fOrientationAzimuth
utl::Validated< double > fIntegratedHorizontalGain
utl::Validated< double > fSamplingFrequency
double GetOrientationZeta() const
Get zeta-tilt of Antenna for this Channel.
double GetDesignUpperFreq() const
Get design value of the freq-band.
const T & GetChannelData(utl::Validated< T > &requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
std::pair< std::complex< double >, std::complex< double > > GetElectricFieldResponse(const double theta, const double phi, const double freq, const std::string &interpolationMode)
Get GetElectricFieldResponse returns the response of the antenna for a certain incoming direction of ...
Class to hold collection (x,y) points and provide interpolation between them.
double GetIntegratedEffectiveAntennaHeight(const double freq)
Get GetIntegratedEffectiveAntennaHeight returns the response of the antenna integrated over the full ...
double GetDesignLowerFreq() const
Get design value of the freq-band.
double GetIntegratedHorizontalGain() const
Get IntegratedHorizontalGain of Antenna-Type.
const utl::Point & GetPosition() const
Get Position of this Antenna-Channel.
utl::Validated< double > fOrientationZenith
utl::Validated< int > fBitDepth
double GetMaxVoltage() const
Get voltage corresponding to max number of counts.
double GetDesignImpedance() const
Get DesignImpediance of Antenna-Type.
utl::Validated< double > fMaxVoltage
Base class for exceptions trying to access non-existing components.
double GetOrientationZenith() const
Get zenith-direction of Antenna for this Channel.
const utl::TabulatedFunction & GetCalibrationFunction() const
Get a TabulatedFunction with calibration factors for the frequency bins of the Channel, not yet implemented.
Interface to access antenna characteristics.
Wrapper class for initially unset data.
utl::Validated< std::string > fChannelType
utl::Validated< double > fDesignLowerFreq
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
const std::string & GetChannelType() const
Get description of Channel Type.
double GetMinVoltage() const
Get voltage corresponding to 0 counts.
utl::Validated< std::string > fAntennaTypeName
utl::Validated< utl::ResponseMap > fResponseMap
const utl::ResponseMap & GetResponseMap() const
Get the ResponseMap of the Channel.
utl::Validated< double > fDesignImpedance
A helper class which manages a list of system response identifiers (std::strings) and their correspon...
void NotFoundAndExit(const std::string &msg) const
double GetIntegratedVerticalGain() const
Get IntegratedVerticalGain of Antenna-Type.
int GetOkFlag() const
Channel Ok flag (1 if the currently cached data are up to date, 0 if currently cached data are obsole...
utl::Validated< utl::Point > fPosition
std::string fStationIdString
utl::Validated< std::string > fADCType
utl::Validated< double > fDesignUpperFreq
utl::Validated< int > fChannelOk
utl::Validated< double > fOrientationZeta
const std::string & GetAntennaTypeName() const
Get description of Antenna-Type.
const std::string & GetADCType() const
Get description of ADC-Type.
void SetValid(const bool valid=true)
double GetSamplingFrequency() const
Get sampling Frequency of ADC (unit?)
utl::Validated< double > fIntegratedVerticalGain
std::pair< std::complex< double >, std::complex< double > > GetElectricFieldResponse(const double theta, const double phi, const double freq, std::string interpolationMode) const
#define ERROR(message)
Macro for logging error messages.
double GetIntegratedEffectiveAntennaHeight(const double freq) const
std::string fChannelIdString
utl::Validated< double > fMinVoltage
double GetOrientationAzimuth() const
Get azimuth-direction of Antenna for this Channel.