ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
TTSData.cc
Go to the documentation of this file.
1/**
2 * @file TTSData.cc
3 * @brief
4 * @author Kodai Okawa <okawa@cns.s.u-tokyo.ac.jp>
5 * @date 2022?
6 * @note last modified: 2024-08-23 21:00:16
7 * @details
8 */
9
10#include "TTSData.h"
11
13
15
17 : fTS(kInvalidI), fTScal(kInvalidD) {
18 TDataObject::SetID(kInvalidI);
19}
20
22
24 : TDataObject(rhs),
25 fTS(rhs.fTS),
26 fTScal(rhs.fTScal) {}
27
29 if (this != &rhs) {
30 ((TTSData &)rhs).Copy(*this);
31 }
32 return *this;
33}
34
35void TTSData::Copy(TObject &dest) const {
36 TDataObject::Copy(dest);
37 TTSData &cobj = *(TTSData *)&dest;
38 cobj.fTS = this->GetTS();
39 cobj.fTScal = this->GetTScal();
40}
41
42void TTSData::Clear(Option_t *opt) {
43 TDataObject::Clear(opt);
44 TDataObject::SetID(kInvalidI);
45 fTS = kInvalidI;
46 fTScal = kInvalidD;
47}
ClassImp(TTSData)
void Clear(Option_t *opt="") override
Definition TTSData.cc:42
TTSData & operator=(const TTSData &rhs)
Definition TTSData.cc:28
Double_t GetTScal() const
Definition TTSData.h:35
~TTSData() override
Definition TTSData.cc:21
Double_t fTScal
Definition TTSData.h:43
void Copy(TObject &dest) const override
Definition TTSData.cc:35
ULong64_t GetTS() const
Definition TTSData.h:33
ULong64_t fTS
Definition TTSData.h:42
return to the guide