List of all members | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
sevt::SEvent Class Reference

Interface class to access to the SD part of an event. More...

#include <sevt/SEvent.h>

Public Types

typedef boost::filter_iterator
< CandidateStationFilter,
StationIterator
CandidateStationIterator
 Iterator over candidate stations. More...
 
typedef boost::filter_iterator
< CandidateStationFilter,
ConstStationIterator
ConstCandidateStationIterator
 
typedef boost::filter_iterator
< RejectedStationFilter,
ConstStationIterator
ConstRejectedStationIterator
 
typedef boost::filter_iterator
< SilentStationFilter,
ConstStationIterator
ConstSilentStationIterator
 
typedef
boost::indirect_iterator
< InternalConstStationIterator,
const Station & > 
ConstStationIterator
 
typedef boost::filter_iterator
< RejectedStationFilter,
StationIterator
RejectedStationIterator
 Iterator over rejected stations that match some rejection mask. More...
 
typedef boost::filter_iterator
< SilentStationFilter,
StationIterator
SilentStationIterator
 Iterator over silent stations. More...
 
typedef
boost::indirect_iterator
< InternalStationIterator,
Station & > 
StationIterator
 Iterator over all stations. More...
 

Public Member Functions

CandidateStationIterator CandidateStationsBegin ()
 
ConstCandidateStationIterator CandidateStationsBegin () const
 
CandidateStationIterator CandidateStationsEnd ()
 
ConstCandidateStationIterator CandidateStationsEnd () const
 
sevt::HeaderGetHeader ()
 
const sevt::HeaderGetHeader () const
 
MeteoGetMeteo ()
 
const MeteoGetMeteo () const
 
int GetNErrorZeroStations () const
 Get number of error zero stations (mapped over from IoSdEvent) More...
 
int GetNumberOfStations () const
 Get total number of stations in the event. More...
 
SEventSimDataGetSimData ()
 Get the object with simulated data, throw if n.a. More...
 
const SEventSimDataGetSimData () const
 
StationGetStation (const int stationId)
 retrieve station by id throw utl::NonExistentComponentException if n.a. More...
 
const StationGetStation (const int stationId) const
 
EventTriggerGetTrigger ()
 Get the object with central trigger data, throw if n.a. More...
 
const EventTriggerGetTrigger () const
 
bool HasMeteo () const
 
bool HasSimData () const
 check whether the SimData object exists More...
 
bool HasStation (const int stationId) const
 Check whether station exists. More...
 
bool HasTrigger () const
 check whether the central trigger object exists More...
 
void MakeMeteo ()
 
void MakeSimData ()
 Create the SimData object. More...
 
void MakeStation (const int stationId)
 make a station with specifying Id, throw if invalid stationId More...
 
void MakeTrigger ()
 Create the central trigger object. More...
 
SEventoperator= (const SEvent &sEvent)
 
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
 
void SetNErrorZeroStations (const unsigned int n)
 Set number of error zero stations. More...
 
 SEvent (const SEvent &sEvent)
 
SilentStationIterator SilentStationsBegin ()
 
ConstSilentStationIterator SilentStationsBegin () const
 
SilentStationIterator SilentStationsEnd ()
 
ConstSilentStationIterator SilentStationsEnd () const
 
template<class OrderingCriterion >
void SortStations (const OrderingCriterion ord) const
 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
 

Private Member Functions

StationIterator RemoveStation (const StationIterator &it)
 remove a station from the list More...
 
 SEvent ()=default
 
 ~SEvent ()
 

Private Attributes

Header fHeader
 
utl::LameShadowPtr< MeteofMeteo
 
unsigned int fNErrorZeroStations = 0
 
utl::LameShadowPtr< SEventSimDatafSimData
 
InternalStationCollection fStations
 
utl::LameShadowPtr< EventTriggerfTrigger
 

Friends

class evt::Event
 
class utl::LameShadowPtr< SEvent >
 

Detailed Description

Interface class to access to the SD part of an event.

Author
Stefano Argiro
Darko Veberic
Date
28 january 2003

Definition at line 39 of file SEvent.h.

Member Typedef Documentation

Iterator over candidate stations.

Definition at line 68 of file SEvent.h.

Definition at line 70 of file SEvent.h.

Definition at line 102 of file SEvent.h.

Definition at line 86 of file SEvent.h.

typedef boost::indirect_iterator<InternalConstStationIterator, const Station&> sevt::SEvent::ConstStationIterator

Definition at line 54 of file SEvent.h.

typedef InternalStationCollection::const_iterator sevt::SEvent::InternalConstStationIterator
private

Definition at line 44 of file SEvent.h.

typedef std::vector<Station*> sevt::SEvent::InternalStationCollection
private

Definition at line 42 of file SEvent.h.

typedef InternalStationCollection::iterator sevt::SEvent::InternalStationIterator
private

Definition at line 43 of file SEvent.h.

Iterator over rejected stations that match some rejection mask.

Definition at line 100 of file SEvent.h.

Iterator over silent stations.

Definition at line 84 of file SEvent.h.

typedef boost::indirect_iterator<InternalStationIterator, Station&> sevt::SEvent::StationIterator

Iterator over all stations.

Definition at line 52 of file SEvent.h.

Constructor & Destructor Documentation

sevt::SEvent::SEvent ( const SEvent sEvent)
inline

Definition at line 47 of file SEvent.h.

sevt::SEvent::SEvent ( )
privatedefault
SEvent::~SEvent ( )
private

Definition at line 19 of file SEvent.cc.

References G4StationSimulatorOG::p.

Member Function Documentation

CandidateStationIterator sevt::SEvent::CandidateStationsBegin ( )
inline
ConstCandidateStationIterator sevt::SEvent::CandidateStationsBegin ( ) const
inline

Definition at line 76 of file SEvent.h.

References StationsBegin(), and StationsEnd().

CandidateStationIterator sevt::SEvent::CandidateStationsEnd ( )
inline
ConstCandidateStationIterator sevt::SEvent::CandidateStationsEnd ( ) const
inline

Definition at line 78 of file SEvent.h.

References StationsEnd().

sevt::Header& sevt::SEvent::GetHeader ( )
inline
const sevt::Header& sevt::SEvent::GetHeader ( ) const
inline

Definition at line 156 of file SEvent.h.

References fHeader.

Meteo& sevt::SEvent::GetMeteo ( )
inline

Definition at line 181 of file SEvent.h.

References fMeteo.

Referenced by io::SEvent_ROOT::operator>>(), and io::SEvent_ROOT::SEvent_ROOT().

const Meteo& sevt::SEvent::GetMeteo ( ) const
inline

Definition at line 182 of file SEvent.h.

References fMeteo.

int sevt::SEvent::GetNErrorZeroStations ( ) const
inline

Get number of error zero stations (mapped over from IoSdEvent)

Definition at line 131 of file SEvent.h.

References fNErrorZeroStations.

Referenced by evt::ConvertEventToIoSd(), and SdInspectorOG::SdInspector::Run().

int sevt::SEvent::GetNumberOfStations ( ) const
inline
SEventSimData& sevt::SEvent::GetSimData ( )
inline
const SEventSimData& sevt::SEvent::GetSimData ( ) const
inline

Definition at line 139 of file SEvent.h.

References fSimData.

Station& sevt::SEvent::GetStation ( const int  stationId)
inline

retrieve station by id throw utl::NonExistentComponentException if n.a.

Definition at line 116 of file SEvent.h.

References GetStation(), and OFFLINE_CAST_CONST_METHOD.

Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), SdHorizontalReconstructionNS::SdHorizontalReconstruction::CleanEvent(), evt::ConvertIoMdToEvent(), otoa::FD2ADST::FillFdCoreAxis(), EventGeneratorOG::EventGenerator::FlagHoleStations(), GetStation(), UnderGrdInjectorAG::UnderGrdInjector::GetTriggerTimeFromSD(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD(), MdCounterSimulatorAG::MdCounterSimulator::GetTriggerTimeFromSD(), CachedXShowerRegeneratorAG::CachedXShowerRegenerator::InitNewShower(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::InitNewShower(), ParticleInjectorOG::ParticleInjector::InjectParticles(), SdSimpleSimKG::SdSimpleSim::Noise(), io::SEvent_ROOT::operator>>(), MdEventSelectorAG::MdEventSelector::RejectTimeOutliers(), RdSimulationRadioTrigger::RdSimulationRadioTrigger::Run(), RdStationSimulationRejector::RdStationSimulationRejector::Run(), RdTimeJitterAdder::RdTimeJitterAdder::Run(), SdAccidentalInjectorKG::SdAccidentalInjector::Run(), RdStationAssociator::RdStationAssociator::Run(), MdShowerRegeneratorAG::MdShowerRegenerator::Run(), LEInjectorOG::LEInjector::Run(), SdSimpleSimKG::SdSimpleSim::Run(), RdStationSignalInterpolator::RdStationSignalInterpolator::Run(), CachedXShowerRegeneratorAG::CachedXShowerRegenerator::Run(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::Run(), CachedDirectInjectorOG::CachedDirectInjector::Run(), SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::Run(), and SDetectorTest::testBasic().

const Station & SEvent::GetStation ( const int  stationId) const

Definition at line 49 of file SEvent.cc.

References ERROR.

EventTrigger& sevt::SEvent::GetTrigger ( )
inline
const EventTrigger& sevt::SEvent::GetTrigger ( ) const
inline

Definition at line 149 of file SEvent.h.

References fTrigger.

bool sevt::SEvent::HasMeteo ( ) const
inline

Definition at line 177 of file SEvent.h.

References fMeteo.

Referenced by io::SEvent_ROOT::operator>>(), and io::SEvent_ROOT::SEvent_ROOT().

bool sevt::SEvent::HasSimData ( ) const
inline
bool SEvent::HasStation ( const int  stationId) const
bool sevt::SEvent::HasTrigger ( ) const
inline
void SEvent::MakeMeteo ( )

Definition at line 122 of file SEvent.cc.

References ERROR.

Referenced by io::SEvent_ROOT::operator>>().

void SEvent::MakeSimData ( )

Create the SimData object.

Definition at line 112 of file SEvent.cc.

References ERROR.

Referenced by io::SEvent_ROOT::operator>>(), and testSEventImpl::testSEventSimData().

void SEvent::MakeStation ( const int  stationId)
void SEvent::MakeTrigger ( )
SEvent & SEvent::operator= ( const SEvent sEvent)

Definition at line 27 of file SEvent.cc.

References fHeader, fNErrorZeroStations, fTrigger, G4StationSimulatorOG::p, and utl::s.

RejectedStationIterator sevt::SEvent::RejectedStationsBegin ( const int  rejectionMask = ~0)
inline

Definition at line 105 of file SEvent.h.

References StationsBegin(), and StationsEnd().

ConstRejectedStationIterator sevt::SEvent::RejectedStationsBegin ( const int  rejectionMask = ~0) const
inline

Definition at line 109 of file SEvent.h.

References StationsBegin(), and StationsEnd().

RejectedStationIterator sevt::SEvent::RejectedStationsEnd ( const int  rejectionMask = ~0)
inline

Definition at line 107 of file SEvent.h.

References StationsEnd().

ConstRejectedStationIterator sevt::SEvent::RejectedStationsEnd ( const int  rejectionMask = ~0) const
inline

Definition at line 111 of file SEvent.h.

References StationsEnd().

SEvent::StationIterator SEvent::RemoveStation ( const StationIterator it)
private

remove a station from the list

Note
the same caveats of STL removal apply. The right way to remove stations is
for (StationIterator it = sevent.StationsBegin();
it != sevent.StationsEnd(); )
if (condition ...)
it = sevent.RemoveStation(it);
else
++it;
Note that removal of stations from the event is strongly discouraged!

Definition at line 94 of file SEvent.cc.

void sevt::SEvent::SetNErrorZeroStations ( const unsigned int  n)
inline

Set number of error zero stations.

Definition at line 133 of file SEvent.h.

References fNErrorZeroStations.

Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), and io::SEvent_ROOT::operator>>().

SilentStationIterator sevt::SEvent::SilentStationsBegin ( )
inline
ConstSilentStationIterator sevt::SEvent::SilentStationsBegin ( ) const
inline

Definition at line 92 of file SEvent.h.

References StationsBegin(), and StationsEnd().

SilentStationIterator sevt::SEvent::SilentStationsEnd ( )
inline
ConstSilentStationIterator sevt::SEvent::SilentStationsEnd ( ) const
inline

Definition at line 94 of file SEvent.h.

References StationsEnd().

template<class OrderingCriterion >
void sevt::SEvent::SortStations ( const OrderingCriterion  ord) const
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 sevt::ByIncreasingSignal)

Example:

Definition at line 172 of file SEvent.h.

References fStations.

Referenced by TopDownSelectorNS::TopDownSelector::InitializeEvent(), ValidationNS::Validation::Run(), SdHorizontalReconstructionNS::SdHorizontalReconstruction::Run(), SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::Run(), and UniversalityFitter::UniversalityFitter::Run().

StationIterator sevt::SEvent::StationsBegin ( )
inline

Beginning of all stations.

Definition at line 57 of file SEvent.h.

References fStations.

Referenced by SdHorizontalEventSelectorHOG::SdHorizontalEventSelector::CalculateT5HASTrigger(), CandidateStationsBegin(), FdAxisFinderOG::FdAxisFinder::CheckForLasers(), evt::ConvertEventToEc(), evt::ConvertEventToIoSd(), DLECorrection::DLECorrection::CorrectDLE(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), LDFFinderOG::LDFFinder::EstimateNStationsInFit(), otoa::Detector2ADST::FillDetector(), otoa::FD2ADST::FillFdRecStations(), otoa::FD2ADST::FillHybridStations(), Sd5T5Tester::Sd5T5Tester::GetCrown(), MuonProductionDepthFinderGL::MuonProductionDepthFinder::IsContained(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsPreselected(), LDFFinderOG::LDFFinder::LDFFitChi2Fnc(), LDFFinderOG::LDFFinder::LDFFitMaxLikeFnc(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::MakeStationFitData(), HybridGeometryFinderOG::HybridGeometryFinder::MinuitFitFuncHybrid(), StereoGeometryFinderOG::StereoGeometryFinder::MinuitFitFuncStereoHybrid(), LDFFinderOG::LDFFinder::OutputStations(), RejectedStationsBegin(), SelectEvents::SelectEvents::Run(), SdInspectorOG::SdInspector::Run(), ValidationNS::Validation::Run(), SdMonteCarloEventSelectorOG::SdMonteCarloEventSelector::Run(), SdBaselineSimulatorASCII::SdBaselineSimulator::Run(), ShowerInventorAnalyzerNS::ShowerInventorAnalyzer::Run(), TabulatedTankSimulatorNS::TabulatedTankSimulator::Run(), FdEventSelectorKG::FdEventSelector::Run(), FastTankSimulatorOG::FastTankSimulator::Run(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::Run(), G4TankSimulatorASCII::G4TankSimulator::Run(), G4TankSimulatorOG::G4TankSimulator::Run(), SdFilterFADCSimulatorASCII::SdFilterFADCSimulator::Run(), G4XTankSimulatorAG::G4XTankSimulator::Run(), SdPMTSimulatorASCII::SdPMTSimulator::Run(), LDFFinderOG::LDFFinder::Run(), SdSimpleSimKG::SdSimpleSim::Run(), G4StationSimulatorOG::G4StationSimulator::Run(), SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::Run(), SdCompParam::SdCompositionParameters::Run(), UniversalityFitter::UniversalityFitter::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4TankSimulatorASCII::G4TankSimulator::RunFast(), G4XTankSimulatorAG::G4XTankSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4TankSimulatorASCII::G4TankSimulator::RunFull(), G4XTankSimulatorAG::G4XTankSimulator::RunFull(), HybridGeometryFinderWG::HybridGeometryFinder::SelectHybridStation(), MuonProductionDepthFinderGL::MuonProductionDepthFinder::SetMuonProductionDepthHist(), testSEventImpl::setPMTValues(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::SetRecData(), LDFFinderOG::LDFFinder::SetRecData(), testSEventImpl::setSEventIterators(), SilentStationsBegin(), and DataWriter::WriteInfo().

ConstStationIterator sevt::SEvent::StationsBegin ( ) const
inline

Beginning of all const stations.

Definition at line 61 of file SEvent.h.

References fStations.

StationIterator sevt::SEvent::StationsEnd ( )
inline

End of all stations.

Definition at line 59 of file SEvent.h.

References fStations.

Referenced by SdHorizontalEventSelectorHOG::SdHorizontalEventSelector::CalculateT5HASTrigger(), CandidateStationsBegin(), CandidateStationsEnd(), FdAxisFinderOG::FdAxisFinder::CheckForLasers(), evt::ConvertEventToEc(), evt::ConvertEventToIoSd(), DLECorrection::DLECorrection::CorrectDLE(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), LDFFinderOG::LDFFinder::EstimateNStationsInFit(), otoa::Detector2ADST::FillDetector(), otoa::FD2ADST::FillFdRecStations(), otoa::FD2ADST::FillHybridStations(), Sd5T5Tester::Sd5T5Tester::GetCrown(), MuonProductionDepthFinderGL::MuonProductionDepthFinder::IsContained(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsPreselected(), LDFFinderOG::LDFFinder::LDFFitChi2Fnc(), LDFFinderOG::LDFFinder::LDFFitMaxLikeFnc(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::MakeStationFitData(), HybridGeometryFinderOG::HybridGeometryFinder::MinuitFitFuncHybrid(), StereoGeometryFinderOG::StereoGeometryFinder::MinuitFitFuncStereoHybrid(), LDFFinderOG::LDFFinder::OutputStations(), RejectedStationsBegin(), RejectedStationsEnd(), SelectEvents::SelectEvents::Run(), SdInspectorOG::SdInspector::Run(), ValidationNS::Validation::Run(), SdMonteCarloEventSelectorOG::SdMonteCarloEventSelector::Run(), SdBaselineSimulatorASCII::SdBaselineSimulator::Run(), ShowerInventorAnalyzerNS::ShowerInventorAnalyzer::Run(), TabulatedTankSimulatorNS::TabulatedTankSimulator::Run(), FdEventSelectorKG::FdEventSelector::Run(), FastTankSimulatorOG::FastTankSimulator::Run(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::Run(), G4TankSimulatorASCII::G4TankSimulator::Run(), G4XTankSimulatorAG::G4XTankSimulator::Run(), SdFilterFADCSimulatorASCII::SdFilterFADCSimulator::Run(), G4TankSimulatorOG::G4TankSimulator::Run(), SdPMTSimulatorASCII::SdPMTSimulator::Run(), LDFFinderOG::LDFFinder::Run(), SdSimpleSimKG::SdSimpleSim::Run(), G4StationSimulatorOG::G4StationSimulator::Run(), SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::Run(), SdCompParam::SdCompositionParameters::Run(), UniversalityFitter::UniversalityFitter::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4TankSimulatorASCII::G4TankSimulator::RunFast(), G4XTankSimulatorAG::G4XTankSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4TankSimulatorASCII::G4TankSimulator::RunFull(), G4XTankSimulatorAG::G4XTankSimulator::RunFull(), HybridGeometryFinderWG::HybridGeometryFinder::SelectHybridStation(), MuonProductionDepthFinderGL::MuonProductionDepthFinder::SetMuonProductionDepthHist(), testSEventImpl::setPMTValues(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::SetRecData(), LDFFinderOG::LDFFinder::SetRecData(), testSEventImpl::setSEventIterators(), SilentStationsBegin(), and SilentStationsEnd().

ConstStationIterator sevt::SEvent::StationsEnd ( ) const
inline

End of all const stations.

Definition at line 63 of file SEvent.h.

References fStations.

Friends And Related Function Documentation

friend class evt::Event
friend

Definition at line 211 of file SEvent.h.

friend class utl::LameShadowPtr< SEvent >
friend

Definition at line 212 of file SEvent.h.

Member Data Documentation

Header sevt::SEvent::fHeader
private

Definition at line 207 of file SEvent.h.

Referenced by GetHeader(), and operator=().

utl::LameShadowPtr<Meteo> sevt::SEvent::fMeteo
private

Definition at line 209 of file SEvent.h.

Referenced by GetMeteo(), and HasMeteo().

unsigned int sevt::SEvent::fNErrorZeroStations = 0
private

Definition at line 208 of file SEvent.h.

Referenced by GetNErrorZeroStations(), operator=(), and SetNErrorZeroStations().

utl::LameShadowPtr<SEventSimData> sevt::SEvent::fSimData
private

Definition at line 205 of file SEvent.h.

Referenced by GetSimData(), and HasSimData().

InternalStationCollection sevt::SEvent::fStations
mutableprivate

Definition at line 204 of file SEvent.h.

Referenced by GetNumberOfStations(), SortStations(), StationsBegin(), and StationsEnd().

utl::LameShadowPtr<EventTrigger> sevt::SEvent::fTrigger
private

Definition at line 206 of file SEvent.h.

Referenced by GetTrigger(), HasTrigger(), and operator=().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.