MEvent/ScintillatorSimData.cc
Go to the documentation of this file.
1 #include <mevt/ScintillatorSimData.h>
2 #include <utl/ShadowPtr.h>
3 #include <utl/Particle.h>
4 
5 
6 namespace mevt {
7 
8  void
10  {
11  fParticles.push_back(ParticlePtr(new utl::Particle(particle)));
12  ++fNParticles;
13  }
14 
15 
16  void
18  {
19  fParticles.clear();
20  fNParticles = 0;
21  }
22 
23 
26  {
27  return *fAnalogicTrace;
28  }
29 
30 
31  const utl::TraceD&
33  const
34  {
35  return *fAnalogicTrace;
36  }
37 
38 
39  void
41  {
42  if (fAnalogicTrace)
43  ERROR("Analogic trace already present.");
44  else
46  }
47 
48 
49  bool
51  const
52  {
53  return bool(fAnalogicTrace);
54  }
55 
56 
57  void
58  ScintillatorSimData::AddSPEPulse(const double mu, const double sigma, const double amplitude,
59  const int destPixelId)
60  {
61  const SPEPulse newpulse = { mu, sigma, amplitude, destPixelId };
62  fSPEPulses.push_back(newpulse);
63  }
64 
65 
66  void
68  const double amplitude1, const double amplitude2, const double amplitude3,
69  const double riseTime,
70  const double riseFall1, const double riseFall2, const double riseFall3,
71  const int destPixelId)
72  {
73  const PEPulse newpulse = { t0, amplitude1, amplitude2, amplitude3, riseTime, riseFall1, riseFall2, riseFall3, destPixelId };
74  fPEPulses.push_back(newpulse);
75  }
76 
77 
78  void
80  {
81  const PhotonTime newphoton = { t0 };
82  fPhotonTimes.push_back(newphoton);
83  }
84 
85 
86  double
88  const
89  {
90  return photon.fTime;
91  }
92 
93 }
Describes a particle for Simulation.
Definition: Particle.h:26
void AddSPEPulse(const double mu, const double sigma, const double amplitude, const int destPixelId)
void AddParticle(const utl::Particle &particle)
Trace< double > TraceD
Definition: Trace-fwd.h:26
utl::TraceD & GetAnalogicTrace()
Return the trace of current pulse signal prior to the electronic amplification stage.
InternalParticleContainer fParticles
void AddPEPulse(const double t0, const double a1, const double a2, const double a3, const double timeRise, const double timeFall1, const double timeFall2, const double timeFall3, const int destPixelId)
double GetPhotonTime(const PhotonTime &photon) const
struct particle_info particle[80]
utl::ShadowPtr< utl::Particle > ParticlePtr
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165
utl::ShadowPtr< utl::TraceD > fAnalogicTrace

, generated on Tue Sep 26 2023.