Interface class to access to the SD part of an event. More...
#include <cevt/CEvent.h>
Public Member Functions | |
CandidateStationIterator | CandidateStationsBegin () |
ConstCandidateStationIterator | CandidateStationsBegin () const |
CandidateStationIterator | CandidateStationsEnd () |
ConstCandidateStationIterator | CandidateStationsEnd () const |
CEvent (const CEvent &cEvent) | |
int | GetNumberOfStations () const |
Get total number of stations in the event. More... | |
Station & | GetStation (const int stationId) |
retrieve station by id throw utl::NonExistentComponentException if n.a. More... | |
const Station & | GetStation (const int stationId) const |
bool | HasStation (const int stationId) const |
Check whether station exists. More... | |
void | MakeStation (const int stationId) |
make a station with specifying Id, throw if invalid stationId More... | |
CEvent & | operator= (const CEvent &cEvent) |
RejectedStationIterator | RejectedStationsBegin (const int rejectionMask=~0) |
ConstRejectedStationIterator | RejectedStationsBegin (const int rejectionMask=~0) const |
RejectedStationIterator | RejectedStationsEnd (const int rejectionMask=~0) |
ConstRejectedStationIterator | RejectedStationsEnd (const int rejectionMask=~0) const |
SilentStationIterator | SilentStationsBegin () |
ConstSilentStationIterator | SilentStationsBegin () const |
SilentStationIterator | SilentStationsEnd () |
ConstSilentStationIterator | SilentStationsEnd () const |
template<class OrderingCriterion > | |
void | SortStations (const OrderingCriterion ord) |
Sort the list of stations by the criterion specified in an OrderingCriterion object. More... | |
StationIterator | StationsBegin () |
Beginning of all stations. More... | |
ConstStationIterator | StationsBegin () const |
Beginning of all const stations. More... | |
StationIterator | StationsEnd () |
End of all stations. More... | |
ConstStationIterator | StationsEnd () const |
End of all const stations. More... | |
Private Types | |
typedef InternalStationCollection::const_iterator | InternalConstStationIterator |
typedef std::vector< Station * > | InternalStationCollection |
typedef InternalStationCollection::iterator | InternalStationIterator |
Has/Make/Get methods | |
InternalStationCollection | fStations |
utl::LameShadowPtr< CEventSimData > | fSimData |
class | evt::Event |
class | utl::LameShadowPtr< CEvent > |
CEventSimData & | GetSimData () |
Get simulated data at event level. More... | |
const CEventSimData & | GetSimData () const |
void | MakeSimData () |
Make event simulated data object. More... | |
bool | HasSimData () const |
Check whether event simulated data exists. More... | |
CEvent () | |
~CEvent () | |
StationIterator | RemoveStation (const StationIterator it) |
remove a station from the list More... | |
Interface class to access to the SD part of an event.
typedef boost::filter_iterator<CandidateStationFilter, StationIterator> cevt::CEvent::CandidateStationIterator |
typedef boost::filter_iterator<CandidateStationFilter, ConstStationIterator> cevt::CEvent::ConstCandidateStationIterator |
typedef boost::filter_iterator<RejectedStationFilter, ConstStationIterator> cevt::CEvent::ConstRejectedStationIterator |
typedef boost::filter_iterator<SilentStationFilter, ConstStationIterator> cevt::CEvent::ConstSilentStationIterator |
typedef boost::indirect_iterator<InternalConstStationIterator, const Station&> cevt::CEvent::ConstStationIterator |
|
private |
|
private |
|
private |
typedef boost::filter_iterator<RejectedStationFilter, StationIterator> cevt::CEvent::RejectedStationIterator |
typedef boost::filter_iterator<SilentStationFilter, StationIterator> cevt::CEvent::SilentStationIterator |
typedef boost::indirect_iterator<InternalStationIterator, Station&> cevt::CEvent::StationIterator |
|
inline |
Definition at line 84 of file CEvent.h.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 89 of file CEvent.h.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 86 of file CEvent.h.
References StationsEnd().
|
inline |
Definition at line 91 of file CEvent.h.
References StationsEnd().
|
inline |
|
inline |
Get simulated data at event level.
Definition at line 178 of file CEvent.h.
Referenced by io::CEvent_ROOT::CEvent_ROOT(), and io::CEvent_ROOT::operator>>().
|
inline |
Station & CEvent::GetStation | ( | const int | stationId | ) |
retrieve station by id throw utl::NonExistentComponentException if n.a.
Definition at line 68 of file CEvent.cc.
References ERROR.
Referenced by io::CEvent_ROOT::operator>>(), G4StationSimulatorOG::G4StationSimulator::RunFast(), and G4StationSimulatorOG::G4StationSimulator::RunFull().
const Station & CEvent::GetStation | ( | const int | stationId | ) | const |
|
inline |
Check whether event simulated data exists.
Definition at line 183 of file CEvent.h.
References fSimData.
Referenced by io::CEvent_ROOT::CEvent_ROOT(), and io::CEvent_ROOT::operator>>().
bool CEvent::HasStation | ( | const int | stationId | ) | const |
Check whether station exists.
Definition at line 115 of file CEvent.cc.
Referenced by G4StationSimulatorOG::G4StationSimulator::RunFast(), and G4StationSimulatorOG::G4StationSimulator::RunFull().
void CEvent::MakeSimData | ( | ) |
Make event simulated data object.
Definition at line 191 of file CEvent.cc.
References ERROR.
Referenced by io::CEvent_ROOT::operator>>().
void CEvent::MakeStation | ( | const int | stationId | ) |
make a station with specifying Id, throw if invalid stationId
Definition at line 99 of file CEvent.cc.
References WARNING.
Referenced by io::CEvent_ROOT::operator>>(), G4StationSimulatorOG::G4StationSimulator::RunFast(), and G4StationSimulatorOG::G4StationSimulator::RunFull().
Definition at line 45 of file CEvent.cc.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 117 of file CEvent.h.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 122 of file CEvent.h.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 119 of file CEvent.h.
References StationsEnd().
|
inline |
Definition at line 124 of file CEvent.h.
References StationsEnd().
|
private |
remove a station from the list
|
inline |
Definition at line 100 of file CEvent.h.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 105 of file CEvent.h.
References StationsBegin(), and StationsEnd().
|
inline |
Definition at line 102 of file CEvent.h.
References StationsEnd().
|
inline |
Definition at line 107 of file CEvent.h.
References StationsEnd().
|
inline |
Sort the list of stations by the criterion specified in an OrderingCriterion object.
The OrderingCriterion class has to be specified in accordance with the STL strict weak ordering model http://www.sgi.com/tech/stl/StrictWeakOrdering.html
Predifined ordering are available in SortCriteria.h (see cevt::ByIncreasingSignal)
Example:
Definition at line 167 of file CEvent.h.
References fStations.
|
inline |
Beginning of all stations.
Definition at line 64 of file CEvent.h.
References fStations.
Referenced by CandidateStationsBegin(), operator=(), RejectedStationsBegin(), RPCEventBuilderLX::RPCEventBuilder::Run(), RPCElectronicsSimulatorLX::RPCElectronicsSimulator::Run(), RPCSimulatorLX::RPCSimulator::Run(), and SilentStationsBegin().
|
inline |
|
inline |
End of all stations.
Definition at line 67 of file CEvent.h.
References fStations.
Referenced by CandidateStationsBegin(), CandidateStationsEnd(), operator=(), RejectedStationsBegin(), RejectedStationsEnd(), RPCEventBuilderLX::RPCEventBuilder::Run(), RPCElectronicsSimulatorLX::RPCElectronicsSimulator::Run(), RPCSimulatorLX::RPCSimulator::Run(), SilentStationsBegin(), and SilentStationsEnd().
|
inline |
|
friend |
|
friend |
|
private |
Definition at line 212 of file CEvent.h.
Referenced by GetSimData(), and HasSimData().
|
private |
Definition at line 206 of file CEvent.h.
Referenced by GetNumberOfStations(), SortStations(), StationsBegin(), and StationsEnd().