TelescopeSimData_ROOT.cc
Go to the documentation of this file.
1 #include <io/TelescopeSimData_ROOT.h>
2 #include <fevt/TelescopeSimData.h>
3 
4 using namespace io;
5 
6 ClassImp(TelescopeSimData_ROOT)
7 
8 
9 TelescopeSimData_ROOT::TelescopeSimData_ROOT(const fevt::TelescopeSimData& t) :
10  fTimeStamp(t.GetPhotonsStartTime()),
11  fNumberOfPhotonBins(t.GetNumberOfPhotonBins()),
12  fPhotonTraces(t.PhotonTracesSourceBegin(), t.PhotonTracesSourceEnd()),
13  fDistanceTrace(t.HasDistanceTrace() ? TraceD_ROOT(t.GetDistanceTrace()) : TraceD_ROOT()),
14  fNFltPixels(t.GetNumberOfFltPixels()),
15  fNFltPixelsFromShower(t.GetNumberOfFltPixelsFromShower()),
16  fNFltPixelsFromBackground(t.GetNumberOfFltPixelsFromBackground()),
17  fNPixelWithShowerLight(t.GetNumberOfPixelsWithShowerPhotons()),
18  fNReadOutPixels(t.GetNumberOfReadOutPixels()),
19  fSltTriggerTime(t.GetSltTriggerTime()),
20  fSltTimeShift(t.GetSltTimeShift()),
21  fConfigSignatureStr(t.GetConfigSignatureStr())
22 {
23  // FIXME remove
24  /*for (auto it = t.PhotonTracesSourceBegin(), end = t.PhotonTracesSourceEnd(); it != end; ++it)
25  if (t.PhotonTracesBegin(it->first) != t.PhotonTracesEnd(it->first))
26  fPhotonTraces.emplace(it->first, MultiTrace_ROOT<double>(t.PhotonTracesBegin(it->first), t.PhotonTracesEnd(it->first));
27 */
28  /*if (t.HasDistanceTrace())
29  ConvertCopy(fDistanceTrace, t.GetDistanceTrace());*/
30 }
31 
32 
33 void
35  const
36 {
38 
40 
41  for (const auto& sm : fPhotonTraces) {
42  const auto source = static_cast<fevt::FdConstants::LightSource>(sm.first);
43  for (const auto& wt : sm.second.fTraces) {
44  const auto wl = wt.first;
45  t.MakePhotonTrace(source, wl);
46  wt.second >> t.GetPhotonTrace(source, wl);
47  }
48  }
49 
50  if (!fDistanceTrace.fArray.empty()) {
53  }
54 
63 }
void operator>>(fevt::TelescopeSimData &sim) const
void SetNumberOfReadOutPixels(const int n)
void MakeDistanceTrace(const unsigned int size=0, const double binSize=0)
Make the trace of distance along the shower axis of light at the diaphragm.
utl::TimeStamp Convert() const
void SetPhotonsStartTime(const utl::TimeStamp &ts)
void SetConfigSignatureStr(const std::string &configSignatureStr)
void SetNumberOfFltPixelsFromBackground(const int n)
Description of simulated data for one Telescope.
void MakePhotonTrace(const fevt::FdConstants::LightSource source, const int wl, const unsigned int size=0, const double binSize=0)
LightSource
Possible light sources.
Definition: FdConstants.h:9
utl::TraceD & GetPhotonTrace(const fevt::FdConstants::LightSource source, const int wl)
Photon trace at diaphragm.
streaming class for TelescopeSimData_ROOT
void SetNumberOfFltPixels(const int n)
std::vector< T > fArray
Definition: Trace_ROOT.h:36
void SetSltTimeShift(const int n)
void SetNumberOfPixelsWithShowerPhotons(const int n)
void SetNumberOfFltPixelsFromShower(const int n)
std::map< int, MultiTraceD_ROOT > fPhotonTraces
void SetNumberOfPhotonBins(const int n)
utl::TraceD & GetDistanceTrace()
Trace for the distance along the shower axis of the light at the diaphragm.
void SetSltTriggerTime(const int n)

, generated on Tue Sep 26 2023.