GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTdrSiLiHit.cxx
Go to the documentation of this file.
1#include "TTdrSiLi.h"
2#include "TTdrSiLiHit.h"
3#include "Globals.h"
4
7{
8#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
9 Class()->IgnoreTObjectStreamer(kTRUE);
10#endif
11 Clear();
12}
13
15{
16#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
17 Class()->IgnoreTObjectStreamer(kTRUE);
18#endif
19 Clear();
20 rhs.Copy(*this);
21}
22
24
25void TTdrSiLiHit::Copy(TObject& rhs) const
26{
28 static_cast<TTdrSiLiHit&>(rhs).fFilter = fFilter;
29}
30
32{
33 // check if the desired filter is in wanted filter;
34 // return the answer;
35 return true;
36}
37
38void TTdrSiLiHit::Clear(Option_t* opt)
39{
40 TDetectorHit::Clear(opt); // clears the base (address, position and waveform)
41 fFilter = 0;
42}
43
44void TTdrSiLiHit::Print(Option_t*) const
45{
46 Print(std::cout);
47}
48
49void TTdrSiLiHit::Print(std::ostream& out) const
50{
51 std::ostringstream str;
52 str << "TdrSiLi Detector: " << GetDetector() << std::endl;
53 str << "TdrSiLi Energy: " << GetEnergy() << std::endl;
54 str << "TdrSiLi hit time: " << GetTime() << std::endl;
55 out << str.str();
56}
57
58TVector3 TTdrSiLiHit::GetPosition(Double_t) const
59{
61}
62
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!
TVector3 GetPosition() const override
!
void Copy(TObject &) const override
!
~TTdrSiLiHit() override
void Print(Option_t *opt="") const override
!
bool InFilter(Int_t)
!
Int_t fFilter
Definition TTdrSiLiHit.h:26
Double_t GetDefaultDistance() const
Definition TTdrSiLiHit.h:48
void Clear(Option_t *opt="") override
!
static TVector3 GetPosition(int DetNbr)
!
Definition TTdrSiLi.cxx:76