1 #include <revt/Station.h>
3 #include <revt/REvent.h>
4 #include <revt/Channel.h>
5 #include <revt/StationTriggerData.h>
6 #include <revt/StationSimData.h>
7 #include <revt/StationRecData.h>
8 #include <revt/StationGPSData.h>
9 #include <revt/StationHeader.h>
11 #include <det/Detector.h>
12 #include <rdet/RDetector.h>
13 #include <rdet/Station.h>
15 #include <utl/ErrorLogger.h>
16 #include <utl/AugerException.h>
27 Station::Station(
const int sId) :
30 const auto& dStation = det::Detector::GetInstance().GetRDetector().GetStation(sId);
31 for (
const auto cId : dStation.GetListOfChannelIds())
38 fSimData(station.fSimData),
39 fRecData(station.fRecData),
40 fTriggerData(station.fTriggerData),
41 fGPSData(station.fGPSData),
42 fStationHeader(station.fStationHeader),
43 fRawTraceStartTime(station.fRawTraceStartTime),
44 fRawTraceStartTimeLocked(station.fRawTraceStartTimeLocked),
45 fFFTDataContainer(station.fFFTDataContainer),
46 fReconstructionStatus(station.fReconstructionStatus),
47 fExcludedReason(station.fExcludedReason),
48 fIsSaturated(station.fIsSaturated),
49 fRejectedReason(station.fRejectedReason),
50 fHWTemperature(station.fHWTemperature),
51 fHWTemperatureInt(station.fHWTemperatureInt),
52 fHWTemperatureExt(station.fHWTemperatureExt)
69 if (
this != &station) {
91 for (
const auto& cp : station.ChannelsRange())
92 fChannels.push_back(
new Channel(cp));
103 const rdet::Station& dStation = det::Detector::GetInstance().GetRDetector().GetStation(
fId);
112 const rdet::Station& dStation = det::Detector::GetInstance().GetRDetector().GetStation(
fId);
115 std::ostringstream err;
116 err <<
"Invalid Channel id " << channelId;
137 ERROR(
"SimData already exists - Not Replacing");
156 ERROR(
"Rec Data already exists - Not Replacing");
174 ERROR(
"Trigger Data already exists - Not Replacing");
192 ERROR(
"GPS Data already exists - Not Replacing");
202 ERROR(
"Station header already exists - Not replacing");
220 ERROR(
"You are trying to manually set the station to eNotExcluded."
221 "This is not allowed.");
233 ERROR(
"You are trying to manually set the station to eNotRejected."
234 "This is not allowed.");
Class to access station level reconstructed data.
StationSimData & GetSimData()
Get simulated data at station level.
Station Level Simulated Data
Station & operator=(const Station &station)
StationTriggerData & GetTriggerData()
Get Trigger data for the station.
Detector description interface for Station-related data.
StationRecData & GetRecData()
Get station level reconstructed data.
void MakeSimData()
Make station simulated data object.
Station Trigger Data description
Station(const Station &station)
int GetInternalChannelId(const int channelId) const
bool fRawTraceStartTimeLocked
Base class for exceptions trying to access non-existing components.
utl::ShadowPtr< StationGPSData > fGPSData
void MakeGPSData()
Make GPS data object.
void MakeTriggerData()
Make trigger data object.
bool HasChannel(const int pmtId) const
Check if a particular Channel object exists.
class to hold data at the radio Station level.
ExcludedReason fExcludedReason
utl::InitializedShadowPtr< StationFFTDataContainer > fFFTDataContainer
container for the radio time and frequency data
void MakeStationHeader()
Make Station Header object.
utl::ShadowPtr< StationHeader > fStationHeader
std::vector< Channel * > fChannels
ReconstructionStatus fReconstructionStatus
StationGPSData & GetGPSData()
Get GPS data for the station.
bool HasChannel(const int channelId) const
void SetRejectedReason(const unsigned long long int reason)
utl::ShadowPtr< StationRecData > fRecData
Channel & GetChannel(const int pmtId)
Retrieve a Channel by Id.
void MakeRecData()
Make station reconstructed data object.
unsigned long long int fRejectedReason
Class that holds the data associated to an individual radio channel.
void SetExcludedReason(const ExcludedReason reason)
StationHeader & GetStationHeader()
Get the Station Header.
#define ERROR(message)
Macro for logging error messages.
utl::TimeStamp fRawTraceStartTime
utl::ShadowPtr< StationTriggerData > fTriggerData
utl::ShadowPtr< StationSimData > fSimData