ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
TTelescopeData.cc
Go to the documentation of this file.
1/**
2 * @file TTelescopeData.cc
3 * @brief
4 * @author Kodai Okawa<okawa@cns.s.u-tokyo.ac.jp>
5 * @date 2024-01-17 17:14:39
6 * @note last modified: 2024-08-23 21:02:18
7 * @details
8 */
9
10#include "TTelescopeData.h"
11
13
15
17 : fTelID(kInvalidI), fXID(kInvalidI), fYID(kInvalidI), fNE(0),
18 fdE(0.0), fdEX(0.0), fdEY(0.0), fE(0.0), fEtotal(0.0),
19 fXTiming(kInvalidD), fYTiming(kInvalidD), fTheta_L(kInvalidD) {
20 TDataObject::SetID(kInvalidI);
21 fPos.SetXYZ(kInvalidD, kInvalidD, kInvalidD);
22 fEnergyArray.clear();
23 fEnergyArray.shrink_to_fit();
24 fTimingArray.clear();
25 fTimingArray.shrink_to_fit();
26}
27
30
32 : TDataObject(rhs),
33 fPos(rhs.fPos),
34 fTelID(rhs.fTelID),
35 fXID(rhs.fXID),
36 fYID(rhs.fYID),
37 fNE(rhs.fNE),
38 fdE(rhs.fdE),
39 fdEX(rhs.fdEX),
40 fdEY(rhs.fdEY),
41 fE(rhs.fE),
42 fEtotal(rhs.fEtotal),
43 fXTiming(rhs.fXTiming),
44 fYTiming(rhs.fYTiming),
45 fTheta_L(rhs.fTheta_L),
46 fEnergyArray(rhs.fEnergyArray),
47 fTimingArray(rhs.fTimingArray) {
48}
49
51 if (this != &rhs) {
52 ((TTelescopeData &)rhs).Copy(*this);
53 }
54 return *this;
55}
56
57void TTelescopeData::Copy(TObject &dest) const {
58 TDataObject::Copy(dest);
59 TTelescopeData &cobj = *(TTelescopeData *)&dest;
60
61 cobj.fPos = this->GetPosition();
62
63 cobj.fTelID = this->GetTelID();
64 cobj.fXID = this->GetXID();
65 cobj.fYID = this->GetYID();
66 cobj.fNE = this->GetN();
67
68 cobj.fdE = this->GetdE();
69 cobj.fdEX = this->GetdEX();
70 cobj.fdEY = this->GetdEY();
71
72 cobj.fE = this->GetE();
73 cobj.fEtotal = this->GetEtotal();
74 cobj.fXTiming = this->GetTelXTiming();
75 cobj.fYTiming = this->GetTelYTiming();
76
77 cobj.fTheta_L = this->GetTheta_L();
78
79 cobj.fEnergyArray = this->GetEnergyArray();
80 cobj.fTimingArray = this->GetTimingArray();
81}
82
83void TTelescopeData::Clear(Option_t *opt) {
84 TDataObject::Clear(opt);
85 TDataObject::SetID(kInvalidI);
86
87 fPos.SetXYZ(kInvalidD, kInvalidD, kInvalidD);
88
89 fTelID = kInvalidI;
90 fXID = kInvalidI;
91 fYID = kInvalidI;
92 fNE = 0;
93
94 fdE = 0.0;
95 fdEX = 0.0;
96 fdEY = 0.0;
97
98 fE = 0.0;
99 fEtotal = 0.0;
100 fXTiming = kInvalidD;
101 fYTiming = kInvalidD;
102
103 fTheta_L = kInvalidD;
104
105 fEnergyArray.clear();
106 fEnergyArray.shrink_to_fit();
107 fTimingArray.clear();
108 fTimingArray.shrink_to_fit();
109}
ClassImp(TTelescopeData)
TVector3 GetPosition() const
void Copy(TObject &dest) const override
DoubleVec_t GetTimingArray() const
void Clear(Option_t *opt="") override
DoubleVec_t GetEnergyArray() const
Double_t GetEtotal() const
Double_t GetTelYTiming() const
TTelescopeData & operator=(const TTelescopeData &rhs)
Double_t GetTheta_L() const
Double_t GetTelXTiming() const
return to the guide