GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TLaBrHit.cxx
Go to the documentation of this file.
1#include "TLaBrHit.h"
2
3#include <iostream>
4#include <climits>
5
6#include "TLaBr.h"
7
9{
10 // Default Constructor
11 Clear();
12}
13
15{
16 // Copy Constructor
17 Clear();
18 rhs.Copy(*this);
19}
20
21void TLaBrHit::Copy(TObject& rhs) const
22{
23 // Copies a TLaBrHit
25 static_cast<TLaBrHit&>(rhs).fFilter = fFilter;
26}
27
28void TLaBrHit::Copy(TObject& obj, bool waveform) const
29{
30 Copy(obj);
31 if(waveform) {
32 CopyWave(obj);
33 }
34}
35
36TVector3 TLaBrHit::GetPosition(Double_t) const
37{
38 // Gets the position of the current TLaBrHit
40}
41
42TVector3 TLaBrHit::GetPosition() const
43{
44 // Gets the position of the current TLaBrHit
46}
47
49{
50 // check if the desired filter is in wanted filter;
51 // return the answer;
52 // currently does nothing
53 return true;
54}
55
56void TLaBrHit::Clear(Option_t*)
57{
58 // Clears the LaBrHit
59 fFilter = 0;
61}
62
63void TLaBrHit::Print(Option_t*) const
64{
65 /// Prints the LaBrHit. Returns:
66 /// Detector
67 /// Energy
68 /// Time
69 Print(std::cout);
70}
71
72void TLaBrHit::Print(std::ostream& out) const
73{
74 std::ostringstream str;
75 str << "LaBr Detector: " << GetDetector() << std::endl;
76 str << "LaBr hit energy: " << GetEnergy() << std::endl;
77 str << "LaBr hit time: " << GetTime() << std::endl;
78 out << str.str();
79}
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
!
void Copy(TObject &) const override
!
Definition TLaBrHit.cxx:21
void Print(Option_t *opt="") const override
!
Definition TLaBrHit.cxx:63
bool InFilter(Int_t)
!
Definition TLaBrHit.cxx:48
Double_t GetDefaultDistance() const
Definition TLaBrHit.h:56
void Clear(Option_t *opt="") override
!
Definition TLaBrHit.cxx:56
Int_t fFilter
Definition TLaBrHit.h:54
TVector3 GetPosition() const override
!
Definition TLaBrHit.cxx:42
static TVector3 GetPosition(int DetNbr)
!
Definition TLaBr.h:72