SmallPMTData_ROOT.cc
Go to the documentation of this file.
1 #include <io/SmallPMTData_ROOT.h>
2 #include <io/SmallPMTCalibData_ROOT.h>
3 #include <io/StreamerUtilities.h>
4 
5 
6 ClassImp(io::SmallPMTData_ROOT)
7 
8 
9 namespace io {
10 
11  SmallPMTData_ROOT::~SmallPMTData_ROOT()
12  {
13  delete fCalibData;
14  }
15 
16 
18  SmallPMTData_ROOT::operator=(const SmallPMTData_ROOT& s)
19  {
20  if (this != &s) {
21  fIsTubeOk = s.fIsTubeOk;
22  DeepCopy(fCalibData, s.fCalibData);
23  }
24  return *this;
25  }
26 
27 
28  SmallPMTData_ROOT::SmallPMTData_ROOT(const sevt::SmallPMTData& s) :
29  fIsTubeOk(s.IsTubeOk())
30  {
31  if (s.HasCalibData())
33  }
34 
35 
36  void
38  const
39  {
41  if (fCalibData) {
42  if (!s.HasCalibData())
43  s.MakeCalibData();
44  *fCalibData >> s.GetCalibData();
45  }
46  }
47 
48 }
void ConvertCopy(T *&destination, const U &source)
SmallPMTCalibData_ROOT * fCalibData
void SetIsTubeOk(const bool ok=true)
Definition: SmallPMTData.h:27
void operator>>(sevt::SmallPMTData &s) const
SmallPMTCalibData & GetCalibData()
Definition: SmallPMTData.h:21
constexpr double s
Definition: AugerUnits.h:163
void DeepCopy(T *&destination, U *const source)
class to hold data for station SPMT
Definition: SmallPMTData.h:18
bool HasCalibData() const
Definition: SmallPMTData.h:24

, generated on Tue Sep 26 2023.