Station Level Simulated Data More...
#include "sevt/StationSimData.h"
Public Types | |
typedef ParticleVector::const_iterator | ConstParticleIterator |
typedef TriggerTimeIterator | ConstTriggerTimeIterator |
typedef ParticleVector::iterator | ParticleIterator |
typedef std::vector < utl::Particle > | ParticleVector |
Public Member Functions | |
void | ClearParticleList () |
Clear the station particle list. More... | |
utl::TimeInterval | GetAbsoluteTimeOffset () const |
sevt::StationGPSData & | GetGPSData (const utl::TimeStamp &time) |
Get simulated GPSData. More... | |
const sevt::StationGPSData & | GetGPSData (const utl::TimeStamp &time) const |
unsigned int | GetMaxNParticles () const |
unsigned int | GetNParticles () const |
unsigned int | GetNumberOfElectrons () const |
Get the number of electrons whose trajectories intersected the WCD. More... | |
unsigned int | GetNumberOfMuons () const |
Get the number of muons whose trajectories intersected the WCD. More... | |
unsigned int | GetNumberOfPhotons () const |
Get the number of photons whose trajectories intersected the WCD. More... | |
const utl::TimeStamp & | GetPlaneFrontTime () const |
Get Shower front plane arrival time. More... | |
const std::string & | GetSimulatorSignature () const |
Get name of the tank simulator module used to simulate this station. More... | |
double | GetThinning () const |
double | GetThinningFactor () const |
unsigned int | GetTotalParticleCount () const |
Get the total number of particles whose trajectories intersected the WCD. More... | |
unsigned int | GetTotalSimCandidateParticleCount () const |
Get the total number of particles that were candidates for simulation (before thinning) More... | |
unsigned int | GetTotalSimParticleCount () const |
Get the total number of particles that were actually simulated (after thinning) More... | |
sevt::StationTriggerData & | GetTriggerData (const utl::TimeStamp &time) |
Get simulated TriggerData. More... | |
const sevt::StationTriggerData & | GetTriggerData (const utl::TimeStamp &time) const |
double | GetUsedWeight () const |
bool | HasGPSData (const utl::TimeStamp &time) const |
Check whether there is a GPS data at the given time. More... | |
bool | HasTriggerData (const utl::TimeStamp &time) const |
Check whether there is trigger data at the given time. More... | |
bool | IsInsideMinRadius () const |
Check whether the station is in the shower hole. More... | |
void | MakeTriggerAndGPSData (const utl::TimeStamp &time) |
Creates the trigger data at the given time and also the GPS data to guarantee they are both created. More... | |
ParticleIterator | ParticlesBegin () |
Beginning of simulated particles entering the station. More... | |
ConstParticleIterator | ParticlesBegin () const |
ParticleIterator | ParticlesEnd () |
End of simulated particles entering the station. More... | |
ConstParticleIterator | ParticlesEnd () const |
void | SetAbsoluteTimeOffset (const utl::TimeInterval &dt) |
void | SetIsInsideMinRadius (const bool isIn=true) |
Set flag indicating whether station is in the shower hole. More... | |
void | SetMaxNParticles (const unsigned int max) |
void | SetNumberOfElectrons (const unsigned int n) |
void | SetNumberOfMuons (const unsigned int n) |
void | SetNumberOfPhotons (const unsigned int n) |
void | SetPlaneFrontTime (const utl::TimeStamp &time) |
Set shower front plane arrival time. More... | |
void | SetSimulatorSignature (const std::string &name) |
Set name of the tank simulator module used to simulate this station. More... | |
void | SetThinning (const double th) |
void | SetThinningFactor (const double f) |
void | SetTotalParticleCount (const unsigned int n) |
void | SetTotalSimCandidateParticleCount (const unsigned int n) |
void | SetTotalSimParticleCount (const unsigned int n) |
void | SetUsedWeight (const double w) |
TriggerTimeIterator | TriggerTimesBegin () const |
Beginning of simulated local trigger times list. More... | |
TriggerTimeIterator | TriggerTimesEnd () const |
End of simulated local trigger times list. More... | |
Public Attributes | |
decltype(std::begin(boost::adaptors::keys(TriggerGPSMap()))) typedef | TriggerTimeIterator |
Private Types | |
typedef TriggerGPSMap::const_iterator | ConstTriggerGPSMapIterator |
typedef std::map < utl::TimeStamp, TriggerGPSPair > | TriggerGPSMap |
typedef TriggerGPSMap::iterator | TriggerGPSMapIterator |
typedef std::pair < StationTriggerData, StationGPSData > | TriggerGPSPair |
Private Member Functions | |
void | AddParticle (const utl::Particle &particle) |
void | AlwaysInsertParticle (const utl::Particle &particle) |
void | CountParticle (const utl::Particle &particle) |
void | Shrink () |
void | SometimesInsertParticle (const utl::Particle &particle) |
StationSimData ()=default | |
~StationSimData ()=default | |
Private Attributes | |
utl::TimeInterval | fAbsoluteTimeOffset |
bool | fHoleStation = false |
unsigned int | fMaxNParticles = std::numeric_limits<unsigned int>::max() |
unsigned int | fNumberOfElectrons = 0 |
unsigned int | fNumberOfMuons = 0 |
unsigned int | fNumberOfPhotons = 0 |
ParticleVector | fParticles |
utl::TimeStamp | fPlaneFrontTime |
std::string | fSimulatorSignature |
double | fThinning = 1 |
double | fThinningFactor = 1 |
unsigned int | fTotalParticleCount = 0 |
unsigned int | fTotalSimCandidateParticleCount = 0 |
unsigned int | fTotalSimParticleCount = 0 |
TriggerGPSMap | fTriggerAndGPSData |
double | fUsedWeight = 1 |
Friends | |
class | io::StationSimData_ROOT |
class | Station |
class | utl::ShadowPtr< StationSimData > |
Station Level Simulated Data
Definition at line 32 of file SEvent/StationSimData.h.
typedef ParticleVector::const_iterator sevt::StationSimData::ConstParticleIterator |
Definition at line 43 of file SEvent/StationSimData.h.
|
private |
Definition at line 38 of file SEvent/StationSimData.h.
Definition at line 143 of file SEvent/StationSimData.h.
typedef ParticleVector::iterator sevt::StationSimData::ParticleIterator |
Definition at line 42 of file SEvent/StationSimData.h.
typedef std::vector<utl::Particle> sevt::StationSimData::ParticleVector |
Definition at line 41 of file SEvent/StationSimData.h.
|
private |
Definition at line 36 of file SEvent/StationSimData.h.
|
private |
Definition at line 37 of file SEvent/StationSimData.h.
|
private |
Definition at line 35 of file SEvent/StationSimData.h.
|
privatedefault |
|
privatedefault |
|
private |
Definition at line 19 of file SEvent/StationSimData.cc.
Referenced by io::StationSimData_ROOT::operator>>(), and CachedShowerRegeneratorASCII::CachedShowerRegenerator::Run().
|
inlineprivate |
Definition at line 175 of file SEvent/StationSimData.h.
References fParticles.
void sevt::StationSimData::ClearParticleList | ( | ) |
Clear the station particle list.
Definition at line 80 of file SEvent/StationSimData.cc.
References utl::swap().
Referenced by LEInjectorOG::LEInjector::Run(), and CachedDirectInjectorOG::CachedDirectInjector::Run().
|
private |
Definition at line 39 of file SEvent/StationSimData.cc.
References utl::Particle::eAntiMuon, utl::Particle::eElectron, utl::Particle::eMuon, utl::Particle::ePhoton, utl::Particle::ePositron, and utl::Particle::GetType().
|
inline |
Definition at line 168 of file SEvent/StationSimData.h.
References fAbsoluteTimeOffset.
Referenced by RdTimeJitterAdder::RdTimeJitterAdder::Run().
StationGPSData & sevt::StationSimData::GetGPSData | ( | const utl::TimeStamp & | time | ) |
Get simulated GPSData.
Definition at line 120 of file SEvent/StationSimData.cc.
References ERROR.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), io::StationSimData_ROOT::operator>>(), and testSEventImpl::setStationSimDataValues().
const StationGPSData & sevt::StationSimData::GetGPSData | ( | const utl::TimeStamp & | time | ) | const |
Definition at line 134 of file SEvent/StationSimData.cc.
References ERROR.
|
inline |
Definition at line 100 of file SEvent/StationSimData.h.
References fMaxNParticles.
|
inline |
Definition at line 53 of file SEvent/StationSimData.h.
References fParticles.
Referenced by G4StationSimulatorOG::G4StationSimulator::ConstructTraces(), SdSimulationCalibratorOG::SdSimulationCalibrator::ProcessStation(), and G4StationSimulatorOG::G4StationSimulator::RunFast().
|
inline |
Get the number of electrons whose trajectories intersected the WCD.
Definition at line 76 of file SEvent/StationSimData.h.
References fNumberOfElectrons.
|
inline |
Get the number of muons whose trajectories intersected the WCD.
Definition at line 71 of file SEvent/StationSimData.h.
References fNumberOfMuons.
Referenced by ShowerInventorAnalyzerNS::ShowerInventorAnalyzer::Run().
|
inline |
Get the number of photons whose trajectories intersected the WCD.
Definition at line 81 of file SEvent/StationSimData.h.
References fNumberOfPhotons.
|
inline |
Get Shower front plane arrival time.
Definition at line 117 of file SEvent/StationSimData.h.
References fPlaneFrontTime.
Referenced by SdInspectorOG::SdInspector::Run(), and CachedDirectInjectorOG::CachedDirectInjector::Run().
const std::string & sevt::StationSimData::GetSimulatorSignature | ( | ) | const |
Get name of the tank simulator module used to simulate this station.
Definition at line 99 of file SEvent/StationSimData.cc.
References ERROR.
Referenced by G4StationSimulatorOG::G4StationStackingAction::ClassifyNewTrack().
|
inline |
Definition at line 104 of file SEvent/StationSimData.h.
References fThinning.
|
inline |
Definition at line 108 of file SEvent/StationSimData.h.
References fThinningFactor.
|
inline |
Get the total number of particles whose trajectories intersected the WCD.
Definition at line 86 of file SEvent/StationSimData.h.
References fTotalParticleCount.
|
inline |
Get the total number of particles that were candidates for simulation (before thinning)
Definition at line 96 of file SEvent/StationSimData.h.
References fTotalSimCandidateParticleCount.
|
inline |
Get the total number of particles that were actually simulated (after thinning)
Definition at line 91 of file SEvent/StationSimData.h.
References fTotalSimParticleCount.
Referenced by FastTankSimulatorOG::FastTankSimulator::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4StationSimulatorOG::G4StationSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4StationSimulatorOG::G4StationSimulator::RunFull(), and TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation().
StationTriggerData & sevt::StationSimData::GetTriggerData | ( | const utl::TimeStamp & | time | ) |
Get simulated TriggerData.
Definition at line 149 of file SEvent/StationSimData.cc.
References ERROR.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), UnderGrdInjectorAG::UnderGrdInjector::GetTriggerTimeFromSD(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD(), MdCounterSimulatorAG::MdCounterSimulator::GetTriggerTimeFromSD(), io::StationSimData_ROOT::operator>>(), and testSEventImpl::setStationSimDataValues().
const StationTriggerData & sevt::StationSimData::GetTriggerData | ( | const utl::TimeStamp & | time | ) | const |
Definition at line 163 of file SEvent/StationSimData.cc.
References ERROR.
|
inline |
Definition at line 112 of file SEvent/StationSimData.h.
References fUsedWeight.
bool sevt::StationSimData::HasGPSData | ( | const utl::TimeStamp & | time | ) | const |
Check whether there is a GPS data at the given time.
Definition at line 112 of file SEvent/StationSimData.cc.
Referenced by HasTriggerData().
|
inline |
Check whether there is trigger data at the given time.
Definition at line 152 of file SEvent/StationSimData.h.
References HasGPSData().
Referenced by testSEventImpl::setStationSimDataValues().
|
inline |
Check whether the station is in the shower hole.
For some air shower simulations there is a cut on the minimum distance from the core for which shower particles are simulated. This flag indicates if a station falls in this region. See also evt::ShowerSimData::GetMinRadiusCut()
Definition at line 136 of file SEvent/StationSimData.h.
References fHoleStation.
Referenced by SdMonteCarloEventSelectorOG::SdMonteCarloEventSelector::Run(), and MdShowerRegeneratorAG::MdShowerRegenerator::Run().
void sevt::StationSimData::MakeTriggerAndGPSData | ( | const utl::TimeStamp & | time | ) |
Creates the trigger data at the given time and also the GPS data to guarantee they are both created.
Definition at line 87 of file SEvent/StationSimData.cc.
References WARNING.
Referenced by io::StationSimData_ROOT::operator>>(), and testSEventImpl::setStationSimDataValues().
|
inline |
Beginning of simulated particles entering the station.
Definition at line 46 of file SEvent/StationSimData.h.
References fParticles.
Referenced by G4TankSimulatorASCII::G4TankSimulator::ConstructTraces(), G4TankSimulatorOG::G4TankSimulator::ConstructTraces(), G4XTankSimulatorAG::G4XTankSimulator::ConstructTraces(), SdInspectorOG::SdInspector::Run(), FastTankSimulatorOG::FastTankSimulator::Run(), SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4TankSimulatorASCII::G4TankSimulator::RunFast(), G4XTankSimulatorAG::G4XTankSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4TankSimulatorASCII::G4TankSimulator::RunFull(), G4XTankSimulatorAG::G4XTankSimulator::RunFull(), G4StationSimulatorOG::G4StationSimulator::RunFull(), TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation(), and DataWriter::WriteInfo().
|
inline |
Definition at line 47 of file SEvent/StationSimData.h.
References fParticles.
|
inline |
End of simulated particles entering the station.
Definition at line 49 of file SEvent/StationSimData.h.
References fParticles.
Referenced by G4TankSimulatorASCII::G4TankSimulator::ConstructTraces(), G4TankSimulatorOG::G4TankSimulator::ConstructTraces(), G4XTankSimulatorAG::G4XTankSimulator::ConstructTraces(), SdInspectorOG::SdInspector::Run(), FastTankSimulatorOG::FastTankSimulator::Run(), SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4TankSimulatorASCII::G4TankSimulator::RunFast(), G4XTankSimulatorAG::G4XTankSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4TankSimulatorASCII::G4TankSimulator::RunFull(), G4XTankSimulatorAG::G4XTankSimulator::RunFull(), G4StationSimulatorOG::G4StationSimulator::RunFull(), TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation(), and DataWriter::WriteInfo().
|
inline |
Definition at line 50 of file SEvent/StationSimData.h.
References fParticles.
|
inline |
Definition at line 169 of file SEvent/StationSimData.h.
References fAbsoluteTimeOffset.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Set flag indicating whether station is in the shower hole.
see also IsInsideMinRadius()
Definition at line 140 of file SEvent/StationSimData.h.
References fHoleStation.
Referenced by CachedXShowerRegeneratorAG::CachedXShowerRegenerator::InitNewShower(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::InitNewShower(), io::StationSimData_ROOT::operator>>(), and testSEventImpl::setStationSimDataValues().
|
inline |
Definition at line 102 of file SEvent/StationSimData.h.
References fMaxNParticles, and max.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 78 of file SEvent/StationSimData.h.
References fNumberOfElectrons.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 73 of file SEvent/StationSimData.h.
References fNumberOfMuons.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 83 of file SEvent/StationSimData.h.
References fNumberOfPhotons.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Set shower front plane arrival time.
Definition at line 120 of file SEvent/StationSimData.h.
References fPlaneFrontTime.
Referenced by CachedXShowerRegeneratorAG::CachedXShowerRegenerator::InitNewShower(), CachedShowerRegeneratorASCII::CachedShowerRegenerator::InitNewShower(), io::StationSimData_ROOT::operator>>(), SdSimpleSimKG::SdSimpleSim::Run(), CachedDirectInjectorOG::CachedDirectInjector::Run(), and testSEventImpl::setStationSimDataValues().
|
inline |
Set name of the tank simulator module used to simulate this station.
The Simulator signature must be set by the tank simulator. If it is not, the SdSimCalibrationFiller will fail
Definition at line 125 of file SEvent/StationSimData.h.
References fSimulatorSignature.
Referenced by EventGeneratorOG::EventGenerator::FlagHoleStations(), SdSimpleSimKG::SdSimpleSim::Noise(), io::StationSimData_ROOT::operator>>(), FastTankSimulatorOG::FastTankSimulator::Run(), SdSimpleSimKG::SdSimpleSim::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(), testSEventImpl::setStationSimDataValues(), and TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation().
|
inline |
Definition at line 106 of file SEvent/StationSimData.h.
References fThinning.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 110 of file SEvent/StationSimData.h.
References fThinningFactor.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 88 of file SEvent/StationSimData.h.
References fTotalParticleCount.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 98 of file SEvent/StationSimData.h.
References fTotalSimCandidateParticleCount.
Referenced by io::StationSimData_ROOT::operator>>().
|
inline |
Definition at line 93 of file SEvent/StationSimData.h.
References fTotalSimParticleCount.
Referenced by io::StationSimData_ROOT::operator>>(), FastTankSimulatorOG::FastTankSimulator::Run(), G4TankSimulatorOG::G4TankSimulator::RunFast(), G4StationSimulatorOG::G4StationSimulator::RunFast(), G4TankSimulatorOG::G4TankSimulator::RunFull(), G4StationSimulatorOG::G4StationSimulator::RunFull(), and TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation().
|
inline |
Definition at line 114 of file SEvent/StationSimData.h.
References fUsedWeight.
Referenced by io::StationSimData_ROOT::operator>>().
|
private |
Definition at line 67 of file SEvent/StationSimData.cc.
References G4StationSimulatorOG::p.
|
private |
Definition at line 57 of file SEvent/StationSimData.cc.
|
inline |
Beginning of simulated local trigger times list.
Definition at line 146 of file SEvent/StationSimData.h.
References fTriggerAndGPSData.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), UnderGrdInjectorAG::UnderGrdInjector::GetTriggerTimeFromSD(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD(), and MdCounterSimulatorAG::MdCounterSimulator::GetTriggerTimeFromSD().
|
inline |
End of simulated local trigger times list.
Definition at line 148 of file SEvent/StationSimData.h.
References fTriggerAndGPSData.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), UnderGrdInjectorAG::UnderGrdInjector::GetTriggerTimeFromSD(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD(), and MdCounterSimulatorAG::MdCounterSimulator::GetTriggerTimeFromSD().
|
friend |
Definition at line 203 of file SEvent/StationSimData.h.
|
friend |
Definition at line 202 of file SEvent/StationSimData.h.
|
friend |
Definition at line 204 of file SEvent/StationSimData.h.
|
private |
Definition at line 200 of file SEvent/StationSimData.h.
Referenced by GetAbsoluteTimeOffset(), and SetAbsoluteTimeOffset().
|
private |
Definition at line 182 of file SEvent/StationSimData.h.
Referenced by IsInsideMinRadius(), and SetIsInsideMinRadius().
|
private |
Definition at line 195 of file SEvent/StationSimData.h.
Referenced by GetMaxNParticles(), and SetMaxNParticles().
|
private |
Definition at line 189 of file SEvent/StationSimData.h.
Referenced by GetNumberOfElectrons(), and SetNumberOfElectrons().
|
private |
Definition at line 188 of file SEvent/StationSimData.h.
Referenced by GetNumberOfMuons(), and SetNumberOfMuons().
|
private |
Definition at line 190 of file SEvent/StationSimData.h.
Referenced by GetNumberOfPhotons(), and SetNumberOfPhotons().
|
private |
Definition at line 184 of file SEvent/StationSimData.h.
Referenced by AlwaysInsertParticle(), GetNParticles(), ParticlesBegin(), and ParticlesEnd().
|
private |
Definition at line 181 of file SEvent/StationSimData.h.
Referenced by GetPlaneFrontTime(), and SetPlaneFrontTime().
|
private |
Definition at line 183 of file SEvent/StationSimData.h.
Referenced by SetSimulatorSignature().
|
private |
Definition at line 196 of file SEvent/StationSimData.h.
Referenced by GetThinning(), and SetThinning().
|
private |
Definition at line 197 of file SEvent/StationSimData.h.
Referenced by GetThinningFactor(), and SetThinningFactor().
|
private |
Definition at line 191 of file SEvent/StationSimData.h.
Referenced by GetTotalParticleCount(), and SetTotalParticleCount().
|
private |
Definition at line 193 of file SEvent/StationSimData.h.
Referenced by GetTotalSimCandidateParticleCount(), and SetTotalSimCandidateParticleCount().
|
private |
Definition at line 192 of file SEvent/StationSimData.h.
Referenced by GetTotalSimParticleCount(), and SetTotalSimParticleCount().
|
private |
Definition at line 186 of file SEvent/StationSimData.h.
Referenced by TriggerTimesBegin(), and TriggerTimesEnd().
|
private |
Definition at line 198 of file SEvent/StationSimData.h.
Referenced by GetUsedWeight(), and SetUsedWeight().
decltype(std::begin(boost::adaptors::keys(TriggerGPSMap()))) typedef sevt::StationSimData::TriggerTimeIterator |
Definition at line 142 of file SEvent/StationSimData.h.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), UnderGrdInjectorAG::UnderGrdInjector::GetTriggerTimeFromSD(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD(), and MdCounterSimulatorAG::MdCounterSimulator::GetTriggerTimeFromSD().