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