GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TPacesHit.cxx
Go to the documentation of this file.
1#include "TPaces.h"
2#include "TPacesHit.h"
3
8
10{
11 Clear();
12 rhs.Copy(*this);
13}
14
15void TPacesHit::Copy(TObject& rhs) const
16{
18 static_cast<TPacesHit&>(rhs).fFilter = fFilter;
19}
20
21void TPacesHit::Copy(TObject& rhs, bool waveform) const
22{
23 Copy(rhs);
24 if(waveform) {
25 CopyWave(rhs);
26 }
27}
28
30{
31 // check if the desired filter is in wanted filter;
32 // return the answer;
33 return true;
34}
35
36void TPacesHit::Clear(Option_t* opt)
37{
38 TDetectorHit::Clear(opt); // clears the base (address, position and waveform)
39 fFilter = 0;
40}
41
42void TPacesHit::Print(Option_t*) const
43{
44 Print(std::cout);
45}
46
47void TPacesHit::Print(std::ostream& out) const
48{
49 std::ostringstream str;
50 str << "Paces Detector: " << GetDetector() << std::endl;
51 str << "Paces Energy: " << GetEnergy() << std::endl;
52 str << "Paces hit time: " << GetTime() << std::endl;
53 out << str.str();
54}
55
56TVector3 TPacesHit::GetPosition(Double_t) const
57{
58 auto vec = TPaces::GetPosition(GetDetector());
59 return {vec.X(), vec.Y(), vec.Z()};
60}
61
62TVector3 TPacesHit::GetPosition() const
63{
65}
virtual double GetEnergy(Option_t *opt="") const
void Clear(Option_t *opt="") override
!
virtual Int_t GetDetector() const
!
void Copy(TObject &) const override
!
virtual Double_t GetTime(const ETimeFlag &correct_flag=ETimeFlag::kAll, Option_t *opt="") const
Returns a time value to the nearest nanosecond!
virtual void CopyWave(TObject &) const
!
bool InFilter(Int_t)
!
Definition TPacesHit.cxx:29
void Copy(TObject &) const override
!
Definition TPacesHit.cxx:15
Double_t GetDefaultDistance() const
Definition TPacesHit.h:51
TVector3 GetPosition() const override
!
Definition TPacesHit.cxx:62
void Clear(Option_t *opt="") override
!
Definition TPacesHit.cxx:36
Int_t fFilter
Definition TPacesHit.h:29
void Print(Option_t *opt="") const override
!
Definition TPacesHit.cxx:42
static ROOT::Math::Polar3DVector GetPosition(int DetNbr)
!
Definition TPaces.h:34