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 Station & | GetAllStation (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 PMT & | GetPMT (const sevt::PMT &pmt) const |
const Station & | GetStation (const int stationId) const |
Get station by Station Id. More... | |
const Station & | GetStation (const sevt::Station &station) const |
Get sdet::Station from a sevt::Station. More... | |
const StationGroups & | GetStationGroups () 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 |
SDetector & | operator= (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 |
Detector description interface for SDetector-related data.
Definition at line 42 of file SDetector.h.
|
private |
Definition at line 46 of file SDetector.h.
|
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.
|
privatedefault |
|
private |
Definition at line 22 of file SDetector.cc.
|
private |
|
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().
|
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().
|
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.
|
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().
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().
|
inline |
Definition at line 157 of file SDetector.h.
References fStationGroups.
Referenced by SDetectorTest::testGroups().
|
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.
|
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.
|
inline |
Check if station with id is commisioned.
Definition at line 131 of file SDetector.h.
References fCommissionedStationList.
|
inline |
Check if station is Dense.
Definition at line 135 of file SDetector.h.
References fDenseStationSubList.
|
inline |
Beginning of the collection of pointers to commissioned stations.
Use this iterator if you want to step through only those stations that were commissioned for the current detector time
Definition at line 97 of file SDetector.h.
References fCommissionedStationList.
Referenced by SdAccidentalInjectorKG::SdAccidentalInjector::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), CachedXShowerRegeneratorAG::CachedXShowerRegenerator::InitNewShower(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::InitNewShower(), SdAccidentalInjectorKG::SdAccidentalInjector::Run(), ParticleInjectorOG::ParticleInjector::Run(), SdSimpleSimKG::SdSimpleSim::Run(), CachedXShowerRegeneratorAG::CachedXShowerRegenerator::Run(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::Run(), and CachedDirectInjectorOG::CachedDirectInjector::Run().
|
inline |
End of the collection of pointers to commissioned stations.
Use this iterator if you want to step through only those stations that were commissioned for the current detector time
Definition at line 102 of file SDetector.h.
References fCommissionedStationList.
Referenced by G4XTankSimulatorAG::G4XTankSimulator::Init(), CachedXShowerRegeneratorAG::CachedXShowerRegenerator::InitNewShower(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::InitNewShower(), SdAccidentalInjectorKG::SdAccidentalInjector::Run(), ParticleInjectorOG::ParticleInjector::Run(), SdSimpleSimKG::SdSimpleSim::Run(), CachedXShowerRegeneratorAG::CachedXShowerRegenerator::Run(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::Run(), and CachedDirectInjectorOG::CachedDirectInjector::Run().
|
private |
Definition at line 41 of file SDetector.cc.
References sdet::Station::GetCommissionTimeRange(), is(), and sdet::Station::Update().
|
private |
Definition at line 30 of file SDetector.cc.
References Update().
|
friend |
Definition at line 187 of file SDetector.h.
|
mutableprivate |
Definition at line 175 of file SDetector.h.
Referenced by GridStationsBegin(), GridStationsEnd(), IsStationCommissioned(), StationsBegin(), and StationsEnd().
|
mutableprivate |
Definition at line 185 of file SDetector.h.
Referenced by GetDenseStationList(), and IsStationDense().
|
mutableprivate |
Definition at line 180 of file SDetector.h.
|
mutableprivate |
Definition at line 181 of file SDetector.h.
Referenced by AllStationsBegin(), and AllStationsEnd().
|
mutableprivate |
Definition at line 182 of file SDetector.h.
Referenced by GetStationGroups().