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

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::StationGPSDataGetGPSData (const utl::TimeStamp &time)
 Get simulated GPSData. More...
 
const sevt::StationGPSDataGetGPSData (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::TimeStampGetPlaneFrontTime () 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::StationTriggerDataGetTriggerData (const utl::TimeStamp &time)
 Get simulated TriggerData. More...
 
const sevt::StationTriggerDataGetTriggerData (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 >
 

Detailed Description

Station Level Simulated Data

Author
Stefano Argiro'
Darko Veberic
Date
28 january 2003

Definition at line 32 of file SEvent/StationSimData.h.

Member Typedef Documentation

typedef ParticleVector::const_iterator sevt::StationSimData::ConstParticleIterator

Definition at line 43 of file SEvent/StationSimData.h.

typedef TriggerGPSMap::const_iterator sevt::StationSimData::ConstTriggerGPSMapIterator
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.

Definition at line 41 of file SEvent/StationSimData.h.

Definition at line 36 of file SEvent/StationSimData.h.

typedef TriggerGPSMap::iterator sevt::StationSimData::TriggerGPSMapIterator
private

Definition at line 37 of file SEvent/StationSimData.h.

Definition at line 35 of file SEvent/StationSimData.h.

Constructor & Destructor Documentation

sevt::StationSimData::StationSimData ( )
privatedefault
sevt::StationSimData::~StationSimData ( )
privatedefault

Member Function Documentation

void sevt::StationSimData::AddParticle ( const utl::Particle particle)
private
void sevt::StationSimData::AlwaysInsertParticle ( const utl::Particle particle)
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().

void sevt::StationSimData::CountParticle ( const utl::Particle particle)
private
utl::TimeInterval sevt::StationSimData::GetAbsoluteTimeOffset ( ) const
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)
const StationGPSData & sevt::StationSimData::GetGPSData ( const utl::TimeStamp time) const

Definition at line 134 of file SEvent/StationSimData.cc.

References ERROR.

unsigned int sevt::StationSimData::GetMaxNParticles ( ) const
inline

Definition at line 100 of file SEvent/StationSimData.h.

References fMaxNParticles.

unsigned int sevt::StationSimData::GetNParticles ( ) const
inline
unsigned int sevt::StationSimData::GetNumberOfElectrons ( ) const
inline

Get the number of electrons whose trajectories intersected the WCD.

Definition at line 76 of file SEvent/StationSimData.h.

References fNumberOfElectrons.

unsigned int sevt::StationSimData::GetNumberOfMuons ( ) const
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().

unsigned int sevt::StationSimData::GetNumberOfPhotons ( ) const
inline

Get the number of photons whose trajectories intersected the WCD.

Definition at line 81 of file SEvent/StationSimData.h.

References fNumberOfPhotons.

const utl::TimeStamp& sevt::StationSimData::GetPlaneFrontTime ( ) const
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().

double sevt::StationSimData::GetThinning ( ) const
inline

Definition at line 104 of file SEvent/StationSimData.h.

References fThinning.

double sevt::StationSimData::GetThinningFactor ( ) const
inline

Definition at line 108 of file SEvent/StationSimData.h.

References fThinningFactor.

unsigned int sevt::StationSimData::GetTotalParticleCount ( ) const
inline

Get the total number of particles whose trajectories intersected the WCD.

Definition at line 86 of file SEvent/StationSimData.h.

References fTotalParticleCount.

unsigned int sevt::StationSimData::GetTotalSimCandidateParticleCount ( ) const
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.

unsigned int sevt::StationSimData::GetTotalSimParticleCount ( ) const
inline
StationTriggerData & sevt::StationSimData::GetTriggerData ( const utl::TimeStamp time)
const StationTriggerData & sevt::StationSimData::GetTriggerData ( const utl::TimeStamp time) const

Definition at line 163 of file SEvent/StationSimData.cc.

References ERROR.

double sevt::StationSimData::GetUsedWeight ( ) const
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().

bool sevt::StationSimData::HasTriggerData ( const utl::TimeStamp time) const
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().

bool sevt::StationSimData::IsInsideMinRadius ( ) const
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().

ParticleIterator sevt::StationSimData::ParticlesBegin ( )
inline
ConstParticleIterator sevt::StationSimData::ParticlesBegin ( ) const
inline

Definition at line 47 of file SEvent/StationSimData.h.

References fParticles.

ParticleIterator sevt::StationSimData::ParticlesEnd ( )
inline
ConstParticleIterator sevt::StationSimData::ParticlesEnd ( ) const
inline

Definition at line 50 of file SEvent/StationSimData.h.

References fParticles.

void sevt::StationSimData::SetAbsoluteTimeOffset ( const utl::TimeInterval dt)
inline

Definition at line 169 of file SEvent/StationSimData.h.

References fAbsoluteTimeOffset.

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

void sevt::StationSimData::SetIsInsideMinRadius ( const bool  isIn = true)
inline
void sevt::StationSimData::SetMaxNParticles ( const unsigned int  max)
inline

Definition at line 102 of file SEvent/StationSimData.h.

References fMaxNParticles, and max.

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

void sevt::StationSimData::SetNumberOfElectrons ( const unsigned int  n)
inline

Definition at line 78 of file SEvent/StationSimData.h.

References fNumberOfElectrons.

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

void sevt::StationSimData::SetNumberOfMuons ( const unsigned int  n)
inline

Definition at line 73 of file SEvent/StationSimData.h.

References fNumberOfMuons.

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

void sevt::StationSimData::SetNumberOfPhotons ( const unsigned int  n)
inline

Definition at line 83 of file SEvent/StationSimData.h.

References fNumberOfPhotons.

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

void sevt::StationSimData::SetPlaneFrontTime ( const utl::TimeStamp time)
inline
void sevt::StationSimData::SetSimulatorSignature ( const std::string &  name)
inline
void sevt::StationSimData::SetThinning ( const double  th)
inline

Definition at line 106 of file SEvent/StationSimData.h.

References fThinning.

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

void sevt::StationSimData::SetThinningFactor ( const double  f)
inline

Definition at line 110 of file SEvent/StationSimData.h.

References fThinningFactor.

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

void sevt::StationSimData::SetTotalParticleCount ( const unsigned int  n)
inline

Definition at line 88 of file SEvent/StationSimData.h.

References fTotalParticleCount.

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

void sevt::StationSimData::SetTotalSimCandidateParticleCount ( const unsigned int  n)
inline
void sevt::StationSimData::SetTotalSimParticleCount ( const unsigned int  n)
inline
void sevt::StationSimData::SetUsedWeight ( const double  w)
inline

Definition at line 114 of file SEvent/StationSimData.h.

References fUsedWeight.

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

void sevt::StationSimData::Shrink ( )
private

Definition at line 67 of file SEvent/StationSimData.cc.

References G4StationSimulatorOG::p.

void sevt::StationSimData::SometimesInsertParticle ( const utl::Particle particle)
private

Definition at line 57 of file SEvent/StationSimData.cc.

TriggerTimeIterator sevt::StationSimData::TriggerTimesBegin ( ) const
inline
TriggerTimeIterator sevt::StationSimData::TriggerTimesEnd ( ) const
inline

Friends And Related Function Documentation

friend class io::StationSimData_ROOT
friend

Definition at line 203 of file SEvent/StationSimData.h.

friend class Station
friend

Definition at line 202 of file SEvent/StationSimData.h.

friend class utl::ShadowPtr< StationSimData >
friend

Definition at line 204 of file SEvent/StationSimData.h.

Member Data Documentation

utl::TimeInterval sevt::StationSimData::fAbsoluteTimeOffset
private

Definition at line 200 of file SEvent/StationSimData.h.

Referenced by GetAbsoluteTimeOffset(), and SetAbsoluteTimeOffset().

bool sevt::StationSimData::fHoleStation = false
private

Definition at line 182 of file SEvent/StationSimData.h.

Referenced by IsInsideMinRadius(), and SetIsInsideMinRadius().

unsigned int sevt::StationSimData::fMaxNParticles = std::numeric_limits<unsigned int>::max()
private

Definition at line 195 of file SEvent/StationSimData.h.

Referenced by GetMaxNParticles(), and SetMaxNParticles().

unsigned int sevt::StationSimData::fNumberOfElectrons = 0
private

Definition at line 189 of file SEvent/StationSimData.h.

Referenced by GetNumberOfElectrons(), and SetNumberOfElectrons().

unsigned int sevt::StationSimData::fNumberOfMuons = 0
private

Definition at line 188 of file SEvent/StationSimData.h.

Referenced by GetNumberOfMuons(), and SetNumberOfMuons().

unsigned int sevt::StationSimData::fNumberOfPhotons = 0
private

Definition at line 190 of file SEvent/StationSimData.h.

Referenced by GetNumberOfPhotons(), and SetNumberOfPhotons().

ParticleVector sevt::StationSimData::fParticles
private
utl::TimeStamp sevt::StationSimData::fPlaneFrontTime
private

Definition at line 181 of file SEvent/StationSimData.h.

Referenced by GetPlaneFrontTime(), and SetPlaneFrontTime().

std::string sevt::StationSimData::fSimulatorSignature
private

Definition at line 183 of file SEvent/StationSimData.h.

Referenced by SetSimulatorSignature().

double sevt::StationSimData::fThinning = 1
private

Definition at line 196 of file SEvent/StationSimData.h.

Referenced by GetThinning(), and SetThinning().

double sevt::StationSimData::fThinningFactor = 1
private

Definition at line 197 of file SEvent/StationSimData.h.

Referenced by GetThinningFactor(), and SetThinningFactor().

unsigned int sevt::StationSimData::fTotalParticleCount = 0
private

Definition at line 191 of file SEvent/StationSimData.h.

Referenced by GetTotalParticleCount(), and SetTotalParticleCount().

unsigned int sevt::StationSimData::fTotalSimCandidateParticleCount = 0
private
unsigned int sevt::StationSimData::fTotalSimParticleCount = 0
private

Definition at line 192 of file SEvent/StationSimData.h.

Referenced by GetTotalSimParticleCount(), and SetTotalSimParticleCount().

TriggerGPSMap sevt::StationSimData::fTriggerAndGPSData
private

Definition at line 186 of file SEvent/StationSimData.h.

Referenced by TriggerTimesBegin(), and TriggerTimesEnd().

double sevt::StationSimData::fUsedWeight = 1
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

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

, generated on Tue Sep 26 2023.