List of all members | Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
sdet::SDetector Class Reference

Detector description interface for SDetector-related data. More...

#include "sdet/SDetector.h"

Classes

class  StationIterator
 

Public Types

typedef std::map< int,
std::set< int > > 
StationGroups
 StationGroups: map key = groupId, value = stationId set. More...
 
typedef
StationGroups::const_iterator 
StationGroupsIterator
 

Public Member Functions

StationIterator AllStationsBegin () const
 Beginning of the collection of pointers to all stations in the history of the array. More...
 
StationIterator AllStationsEnd () const
 End of the collection of pointers to all stations in the history of the array. More...
 
const StationGetAllStation (const int stationId) const
 
const std::vector< int > & GetDenseStationList () const
 
const std::vector< int > & GetFullStationList () const
 Get list of ID's for all stations available in the database or configuration file. More...
 
const PMTGetPMT (const sevt::PMT &pmt) const
 
const StationGetStation (const int stationId) const
 Get station by Station Id. More...
 
const StationGetStation (const sevt::Station &station) const
 Get sdet::Station from a sevt::Station. More...
 
const StationGroupsGetStationGroups () const
 
StationIterator GridStationsBegin (const SDetectorConstants::GridIndex index) const
 Beginning of the collection of pointers to commissioned stations in a specific grid. More...
 
StationIterator GridStationsEnd (const SDetectorConstants::GridIndex index) const
 End of the collection of pointers to commissioned stations in a specific grid. More...
 
bool IsStationCommissioned (const int stationId) const
 Check if station with id is commisioned. More...
 
bool IsStationDense (const int stationId) const
 Check if station is Dense. More...
 
StationIterator StationsBegin () const
 Beginning of the collection of pointers to commissioned stations. More...
 
StationIterator StationsEnd () const
 End of the collection of pointers to commissioned stations. More...
 

Private Types

typedef
InternalStationMap::const_iterator 
InternalStationIterator
 
typedef std::map< int, const
sdet::Station * > 
InternalStationMap
 

Private Member Functions

void FetchStationGroups () const
 
SDetectoroperator= (const SDetector &sdetector)
 
 SDetector ()=default
 
 SDetector (const SDetector &sdetector)
 
void Update ()
 
void UpdateDense ()
 
 ~SDetector ()
 

Private Attributes

InternalStationMap fCommissionedStationList
 
std::vector< int > fDenseStationSubList
 
utl::Validated< std::vector
< int > > 
fFullStationList
 
InternalStationMap fFullStationMap
 
StationGroups fStationGroups
 

Friends

class det::Detector
 

Detailed Description

Detector description interface for SDetector-related data.

Author
T. Paul
Date
04 Mar 2003

Definition at line 42 of file SDetector.h.

Member Typedef Documentation

typedef InternalStationMap::const_iterator sdet::SDetector::InternalStationIterator
private

Definition at line 46 of file SDetector.h.

typedef std::map<int, const sdet::Station*> sdet::SDetector::InternalStationMap
private

Definition at line 45 of file SDetector.h.

typedef std::map<int, std::set<int> > sdet::SDetector::StationGroups

StationGroups: map key = groupId, value = stationId set.

Definition at line 154 of file SDetector.h.

typedef StationGroups::const_iterator sdet::SDetector::StationGroupsIterator

Definition at line 155 of file SDetector.h.

Constructor & Destructor Documentation

sdet::SDetector::SDetector ( )
privatedefault
SDetector::~SDetector ( )
private

Definition at line 22 of file SDetector.cc.

sdet::SDetector::SDetector ( const SDetector sdetector)
private

Member Function Documentation

StationIterator sdet::SDetector::AllStationsBegin ( ) const
inline

Beginning of the collection of pointers to all stations in the history of the array.

Use this iterator if you want to step through all stations that ever existed in the array (the current detector time is ignored)

Definition at line 121 of file SDetector.h.

References fFullStationMap.

Referenced by StationListCreatorModuleNS::StationListCreatorModule::Finish(), SdHorizontalReconstructionNS::SdHorizontalReconstruction::GetExternalGeometry(), G4TankSimulatorASCII::G4TankSimulator::Init(), G4TankSimulatorOG::G4TankSimulator::Init(), ShowerInventorNS::ShowerInventor::Run(), and SdHorizontalReconstructionNS::SdHorizontalReconstruction::UpdateBarycenter().

StationIterator sdet::SDetector::AllStationsEnd ( ) const
inline

End of the collection of pointers to all stations in the history of the array.

Use this iterator if you want to step through all stations that ever existed in the array (the current detector time is ignored)

Definition at line 126 of file SDetector.h.

References fFullStationMap.

Referenced by StationListCreatorModuleNS::StationListCreatorModule::Finish(), SdHorizontalReconstructionNS::SdHorizontalReconstruction::GetExternalGeometry(), ShowerInventorNS::ShowerInventor::Run(), and SdHorizontalReconstructionNS::SdHorizontalReconstruction::UpdateBarycenter().

void SDetector::FetchStationGroups ( ) const
private

Definition at line 152 of file SDetector.cc.

References WARNING.

const Station & SDetector::GetAllStation ( const int  stationId) const

Definition at line 282 of file SDetector.cc.

const std::vector<int>& sdet::SDetector::GetDenseStationList ( ) const
inline

Definition at line 150 of file SDetector.h.

References fDenseStationSubList.

const vector< int > & SDetector::GetFullStationList ( ) const

Get list of ID's for all stations available in the database or configuration file.

This method loads the ID's of all stations available in the relevant XML file and/or database. These ID's can then be used when searching through available stations for those with desired quantities, such as a commission time before the current "detector time". By doing it this way, we do not have to hardwire upper and lower bounds on the station ID's anyplace in the code - instead they are determined from the available data.

Definition at line 110 of file SDetector.cc.

References DEBUGLOG, and INFO.

Referenced by testSEventImpl::checkStationValues(), and StationListCreatorModuleNS::StationListCreatorModule::Run().

const PMT & SDetector::GetPMT ( const sevt::PMT pmt) const

Definition at line 296 of file SDetector.cc.

References sevt::PMT::GetId(), and sevt::PMT::GetStationId().

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

Get station by Station Id.

Definition at line 192 of file SDetector.cc.

References sdet::Station::IsDense(), and WARNING.

Referenced by SdHorizontalReconstructionNS::SdHorizontalReconstruction::CleanEvent(), SdFootprintAnalyzerNS::SdFootprintAnalyzer::ComputeBarycenter(), MdMuonCounterAG::MdMuonCounter::ComputeSignalT50(), evt::ConvertEventToIoSd(), LDFFinderOG::LDFFinder::CurvatureFitFnc(), SdRecPlotterOG::SdRecPlotter::DrawEvent(), TopDownSelectorNS::TopDownSelector::EstimateCore(), SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::EstimateCore(), LDFFinderOG::LDFFinder::EstimateCurvature(), LDFFinderOG::LDFFinder::EstimateNStationsInFit(), LDFFinderOG::LDFFinder::EstimateS1000(), otoa::Detector2ADST::FillDetector(), otoa::FD2ADST::FillFdRecStations(), otoa::FD2ADST::FillHybridStations(), LDFFinderOG::LDFFinder::FixBeta(), LDFFinderOG::LDFFinder::FixGamma(), EventGeneratorOG::EventGenerator::GenerateArrayCentricRandomizedCoreAroundRandomStation(), RdZHAireSSimPreparator::RdZHAireSSimPreparator::GenerateCoreAroundRandomSDStation(), RdREASSimPreparatorNG::RdREASSimPreparatorNG::GenerateCoreAroundRandomSDStation(), EventGeneratorOG::EventGenerator::GenerateCoreAroundStation(), Sd5T5Tester::Sd5T5Tester::GetCrown(), SdHorizontalReconstructionNS::SdHorizontalReconstruction::GetExternalGeometry(), SdFootprintAnalyzerNS::SdFootprintAnalyzer::GetFootprintStations(), MdMuonCounterAG::MdMuonCounter::GetTraceOffset(), TopDownSelectorNS::TopDownSelector::InitializeEvent(), MuonProductionDepthFinderGL::MuonProductionDepthFinder::IsContained(), fdDoubleBumpFinder::FdDoubleBumpFinder::IsPreselected(), LDFFinderOG::LDFFinder::LDFFitChi2Fnc(), LDFFinderOG::LDFFinder::LDFFitMaxLikeFnc(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::MakeStationFitData(), HdAxisFinderUU::HdAxisFinder::MinuitFitFunc(), HybridGeometryFinderWG::HybridGeometryFinder::MinuitFitFuncAxis(), SdFootprintAnalyzerNS::ByIncreasingDistanceToAxis::operator()(), LDFFinderOG::LDFFinder::OutputStations(), SdHorizontalReconstructionNS::SdHorizontalReconstruction::PrepareStationData(), HybridGeometryFinderWG::HybridGeometryFinder::RecalculateChiSquare(), TopDownSelectorNS::TopDownSelector::Recover3Stations(), SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::Recover3Stations(), TopDownSelectorNS::TopDownSelector::RemoveDoublets(), SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::RemoveDoublets(), TopDownSelectorNS::TopDownSelector::RemoveIsolatedStations(), SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::RemoveIsolatedStations(), SdMonteCarloEventSelectorOG::SdMonteCarloEventSelector::Run(), GeometryExampleNS::GeometryExample::Run(), RPCSimulatorLX::RPCSimulator::Run(), FastTankSimulatorOG::FastTankSimulator::Run(), ParticleInjectorOG::ParticleInjector::Run(), HdAxisFinderUU::HdAxisFinder::Run(), EventGeneratorOG::EventGenerator::Run(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::Run(), G4TankSimulatorASCII::G4TankSimulator::Run(), G4TankSimulatorOG::G4TankSimulator::Run(), SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::Run(), UniversalityFitter::UniversalityFitter::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4TankSimulatorASCII::G4TankSimulator::RunFast(), G4XTankSimulatorAG::G4XTankSimulator::RunFast(), G4StationSimulatorOG::G4StationSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4TankSimulatorASCII::G4TankSimulator::RunFull(), G4XTankSimulatorAG::G4XTankSimulator::RunFull(), G4StationSimulatorOG::G4StationSimulator::RunFull(), MuonProductionDepthFinderGL::MuonProductionDepthFinder::SetMuonProductionDepthHist(), testSEventImpl::setPMTValues(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::SetRecData(), LDFFinderOG::LDFFinder::SetRecData(), testSEventImpl::setStationSimDataValues(), TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation(), SDetectorTest::testBasic(), SDenseDetectorTestBasic::testBasic1(), SDenseDetectorTestAzimuth::testBasicAzimuth(), SDetectorTest::testBug594(), SDetectorTest::testCrowns(), SDetectorTest::testGroups(), SDenseDetectorTestBasic::testNoCorePosition(), SDenseDetectorTestBasic::testNoSimShower(), SDetectorTest::testOffGridStations(), SDetectorTest::testSModelsXMLManager(), SDetectorTest::testStationListManager(), SDetectorTest::testStationNotCommissioned(), and SdHorizontalReconstructionNS::SdHorizontalReconstruction::UpdateBarycenter().

const Station & SDetector::GetStation ( const sevt::Station station) const

Get sdet::Station from a sevt::Station.

Definition at line 184 of file SDetector.cc.

References sevt::Station::GetId().

const StationGroups& sdet::SDetector::GetStationGroups ( ) const
inline

Definition at line 157 of file SDetector.h.

References fStationGroups.

Referenced by SDetectorTest::testGroups().

StationIterator sdet::SDetector::GridStationsBegin ( const SDetectorConstants::GridIndex  index) const
inline

Beginning of the collection of pointers to commissioned stations in a specific grid.

Use this iterator if you want to step through only those stations that were commissioned for the current detector time and belong to a certain grid

Definition at line 109 of file SDetector.h.

References fCommissionedStationList.

StationIterator sdet::SDetector::GridStationsEnd ( const SDetectorConstants::GridIndex  index) const
inline

End of the collection of pointers to commissioned stations in a specific grid.

Use this iterator if you want to step through only those stations that were commissioned for the current detector time and belong to a certain grid

Definition at line 114 of file SDetector.h.

References fCommissionedStationList.

bool sdet::SDetector::IsStationCommissioned ( const int  stationId) const
inline

Check if station with id is commisioned.

Definition at line 131 of file SDetector.h.

References fCommissionedStationList.

bool sdet::SDetector::IsStationDense ( const int  stationId) const
inline

Check if station is Dense.

Definition at line 135 of file SDetector.h.

References fDenseStationSubList.

SDetector& sdet::SDetector::operator= ( const SDetector sdetector)
private
StationIterator sdet::SDetector::StationsBegin ( ) const
inline
StationIterator sdet::SDetector::StationsEnd ( ) const
inline
void SDetector::Update ( )
private
void SDetector::UpdateDense ( )
private

Definition at line 30 of file SDetector.cc.

References Update().

Friends And Related Function Documentation

friend class det::Detector
friend

Definition at line 187 of file SDetector.h.

Member Data Documentation

InternalStationMap sdet::SDetector::fCommissionedStationList
mutableprivate
std::vector<int> sdet::SDetector::fDenseStationSubList
mutableprivate

Definition at line 185 of file SDetector.h.

Referenced by GetDenseStationList(), and IsStationDense().

utl::Validated<std::vector<int> > sdet::SDetector::fFullStationList
mutableprivate

Definition at line 180 of file SDetector.h.

InternalStationMap sdet::SDetector::fFullStationMap
mutableprivate

Definition at line 181 of file SDetector.h.

Referenced by AllStationsBegin(), and AllStationsEnd().

StationGroups sdet::SDetector::fStationGroups
mutableprivate

Definition at line 182 of file SDetector.h.

Referenced by GetStationGroups().


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

, generated on Tue Sep 26 2023.