ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
TReactionInfo.cc
Go to the documentation of this file.
1/**
2 * @file TReactionInfo.cc
3 * @brief
4 * @author Kodai Okawa <okawa@cns.s.u-tokyo.ac.jp>
5 * @date 2023-08-01 22:28:15
6 * @note last modified: 2024-09-03 16:15:36
7 * @details
8 */
9
10#include "TReactionInfo.h"
11
13
15
17 : fEnergy(kInvalidD),
18 fTheta(kInvalidD),
19 fThetaL(kInvalidD),
20 fBeamEnergy(kInvalidD),
21 fX(kInvalidD),
22 fY(kInvalidD),
23 fZ(kInvalidD),
24 fExEnergy(kInvalidD) {
25 TDataObject::SetID(kInvalidI);
26}
27
29
31 : TDataObject(rhs),
32 fEnergy(rhs.fEnergy),
33 fTheta(rhs.fTheta),
34 fThetaL(rhs.fThetaL),
35 fBeamEnergy(rhs.fBeamEnergy),
36 fX(rhs.fX),
37 fY(rhs.fY),
38 fZ(rhs.fZ),
39 fExEnergy(rhs.fExEnergy) {
40}
41
43 if (this != &rhs) {
44 ((TReactionInfo &)rhs).Copy(*this);
45 }
46 return *this;
47}
48
49void TReactionInfo::Copy(TObject &dest) const {
50 TDataObject::Copy(dest);
51 TReactionInfo &cobj = *(TReactionInfo *)&dest;
52 cobj.fEnergy = this->GetEnergy();
53 cobj.fTheta = this->GetTheta();
54 cobj.fThetaL = this->GetThetaL();
55 cobj.fBeamEnergy = this->GetBeamEnergy();
56 cobj.fX = this->GetX();
57 cobj.fY = this->GetY();
58 cobj.fZ = this->GetZ();
59 cobj.fExEnergy = this->GetExEnergy();
60}
61
62void TReactionInfo::Clear(Option_t *opt) {
63 TDataObject::Clear(opt);
64 TDataObject::SetID(kInvalidI);
65 fEnergy = kInvalidD;
66 fTheta = kInvalidD;
67 fThetaL = kInvalidD;
68 fBeamEnergy = kInvalidD;
69 fX = kInvalidD;
70 fY = kInvalidD;
71 fZ = kInvalidD;
72 fExEnergy = kInvalidD;
73}
ClassImp(TReactionInfo)
TReactionInfo & operator=(const TReactionInfo &rhs)
Double_t fThetaL
Theta LAB of the reaction.
Double_t GetZ() const
Double_t GetEnergy() const
Double_t GetThetaL() const
void Copy(TObject &dest) const override
Double_t fX
reaction position at LAB system, x
Double_t fEnergy
Ecm of the reaction.
void Clear(Option_t *opt="") override
Double_t GetTheta() const
Double_t fBeamEnergy
reconst beam lab energy
Double_t GetBeamEnergy() const
Double_t GetX() const
Double_t fZ
reaction position at LAB system, z
Double_t GetY() const
Double_t GetExEnergy() const
Double_t fY
reaction position at LAB system, y
Double_t fTheta
Theta cm of the reaction.
Double_t fExEnergy
excited energy of residual nucleus
return to the guide