cevtStationSimData_ROOT.cc
Go to the documentation of this file.
1 #include <io/cevtStationSimData_ROOT.h>
2 #include <utl/Particle.h>
3 #include <utl/ShadowPtr.h>
4 
5 #include <det/Detector.h>
6 
7 using namespace io;
8 
9 
11 
12 
13 cevtStationSimData_ROOT::cevtStationSimData_ROOT(const cevt::StationSimData& s) :
14  fNumberOfMuons(s.GetNumberOfMuons()),
15  fNumberOfElectrons(s.GetNumberOfElectrons()),
16  fNumberOfElectronsFromMuons(s.GetNumberOfElectronsFromMuons()),
17  fNumberOfElectronsFromPhotons(s.GetNumberOfElectronsFromPhotons())
18 {
19  // fill particle list
20  for (cevt::StationSimData::ConstParticleIterator pIt = s.ParticlesBegin();
21  pIt != s.ParticlesEnd(); ++pIt)
22  fParticles.push_back(new Particle_ROOT(*pIt));
23 }
24 
25 
26 void
28  const
29 {
30  for (const auto& p : fParticles)
31  {
34  utl::Point(0, 0, 0,
35  utl::CoordinateSystem::GetRootCoordinateSystem()),
36  utl::Vector(0, 0, 0,
37  utl::CoordinateSystem::GetRootCoordinateSystem()),
39  0);
40 
41  *p >> tmpParticle;
42  s.AddParticle(tmpParticle);
43  }
44 
45  // this has to be after the addParticle
50 }
Point object.
Definition: Point.h:32
void AddParticle(const utl::Particle &particle)
Add a simulated particle to the station.
Station Level Simulated Data
Describes a particle for Simulation.
Definition: Particle.h:26
std::vector< Particle_ROOT * > fParticles
void SetNumberOfMuons(const unsigned int number)
Set the number of muons that entered the station.
constexpr double s
Definition: AugerUnits.h:163
void SetNumberOfElectrons(const unsigned int number)
boost::indirect_iterator< InternalConstParticleIterator, const utl::Particle & > ConstParticleIterator
void SetNumberOfElectronsFromMuons(const unsigned int number)
A TimeInterval is used to represent time elapsed between two events.
Definition: TimeInterval.h:43
streamer for utl::Particle
Definition: Particle_ROOT.h:26
Vector object.
Definition: Vector.h:30
void operator>>(cevt::StationSimData &s) const
Persistent StationSimData using ROOT.
void SetNumberOfElectronsFromPhotons(const unsigned int number)

, generated on Tue Sep 26 2023.