7 #include <boost/format.hpp>
8 #include <cevt/CEvent.h>
9 #include <cevt/CEventSimData.h>
12 #include <cevt/Station.h>
14 #include <utl/ErrorLogger.h>
15 #include <utl/AugerException.h>
17 #include <utl/LameShadowPtr_imp.h>
39 sIt != fStations.end(); ++sIt)
45 CEvent::operator=(
const CEvent& cEvent)
47 if (
this != &cEvent) {
50 sIt != fStations.end(); ++sIt)
57 fStations.push_back(
new Station(*sIt));
68 CEvent::GetStation(
const int id)
72 if (sIt->GetId() == id)
76 error <<
"Station " <<
id <<
" not present";
83 CEvent::GetStation(
const int id)
88 if (sIt->GetId() == id)
92 error <<
"Station " <<
id <<
" not present";
99 CEvent::MakeStation(
const int id)
101 if (HasStation(
id)) {
104 error <<
"Station " <<
id <<
" already present";
110 fStations.push_back(
new Station(
id));
115 CEvent::HasStation(
const int id)
120 if (sIt->GetId() == id)
191 CEvent::MakeSimData()
194 ERROR(
"SimData already exists - Not Replacing");
InternalStationCollection::iterator InternalStationIterator
#define LAMESHADOWPTR_INST(_T_...)
StationIterator StationsEnd()
End of all stations.
Base class for exceptions trying to access non-existing components.
#define WARNING(message)
Macro for logging warning messages.
class to hold data at Station level
StationIterator StationsBegin()
Beginning of all stations.
boost::indirect_iterator< InternalConstStationIterator, const Station & > ConstStationIterator
boost::indirect_iterator< InternalStationIterator, Station & > StationIterator
Iterator over all stations.
#define ERROR(message)
Macro for logging error messages.
Interface class to hold simulated data belonging to surface events.
Interface class to access to the SD part of an event.