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#include "Globals.h"
4
9
11{
12 Clear();
13 rhs.Copy(*this);
14}
15
16void TPacesHit::Copy(TObject& rhs) const
17{
19 static_cast<TPacesHit&>(rhs).fFilter = fFilter;
20}
21
22void TPacesHit::Copy(TObject& rhs, bool waveform) const
23{
24 Copy(rhs);
25 if(waveform) {
26 CopyWave(rhs);
27 }
28}
29
31{
32 // check if the desired filter is in wanted filter;
33 // return the answer;
34 return true;
35}
36
37void TPacesHit::Clear(Option_t* opt)
38{
39 TDetectorHit::Clear(opt); // clears the base (address, position and waveform)
40 fFilter = 0;
41}
42
43void TPacesHit::Print(Option_t*) const
44{
45 Print(std::cout);
46}
47
48void TPacesHit::Print(std::ostream& out) const
49{
50 std::ostringstream str;
51 str << "Paces Detector: " << GetDetector() << std::endl;
52 str << "Paces Energy: " << GetEnergy() << std::endl;
53 str << "Paces hit time: " << GetTime() << std::endl;
54 out << str.str();
55}
56
57TVector3 TPacesHit::GetPosition(Double_t) const
58{
59 auto vec = TPaces::GetPosition(GetDetector());
60 return {vec.X(), vec.Y(), vec.Z()};
61}
62
63TVector3 TPacesHit::GetPosition() const
64{
66}
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:30
void Copy(TObject &) const override
!
Definition TPacesHit.cxx:16
Double_t GetDefaultDistance() const
Definition TPacesHit.h:51
TVector3 GetPosition() const override
!
Definition TPacesHit.cxx:63
void Clear(Option_t *opt="") override
!
Definition TPacesHit.cxx:37
Int_t fFilter
Definition TPacesHit.h:29
void Print(Option_t *opt="") const override
!
Definition TPacesHit.cxx:43
static ROOT::Math::Polar3DVector GetPosition(int DetNbr)
!
Definition TPaces.h:34