GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTrificHit.cxx
Go to the documentation of this file.
1#include "TTrific.h"
2#include "TTrificHit.h"
3
8
10{
11 Clear();
12 rhs.Copy(*this);
13}
14
15void TTrificHit::Copy(TObject& rhs) const
16{
18 static_cast<TTrificHit&>(rhs).fFilter = fFilter;
19}
20
21void TTrificHit::Copy(TObject& rhs, bool waveform) const
22{
23 Copy(rhs);
24 if(waveform) {
25 CopyWave(rhs);
26 }
27}
28
29void TTrificHit::Clear(Option_t* opt)
30{
31 TDetectorHit::Clear(opt); // clears the base (address, position and waveform)
32}
33
34void TTrificHit::Print(Option_t*) const
35{
36 Print(std::cout);
37}
38
39void TTrificHit::Print(std::ostream& out) const
40{
41 std::ostringstream str;
42 str << "TRIFIC Detector: " << GetDetector() << std::endl;
43 str << "TRIFIC Segment: " << GetSegment() << std::endl;
44 str << "TRIFIC Energy: " << GetEnergy() << std::endl;
45 str << "TRIFIC Hit Time: " << GetTime() << std::endl;
46 out << str.str();
47}
48
50{
51 //calling GetPosition() on a TRIFIC hit will return the position vector to the centre of the grid
52 //calling TTrific::GetPosition(det) will give the vector to the position itself.
53
55}
virtual double GetEnergy(Option_t *opt="") const
void Clear(Option_t *opt="") override
!
virtual Int_t GetDetector() const
!
virtual Int_t GetSegment() 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
!
Int_t fFilter
Definition TTrificHit.h:50
void Copy(TObject &) const override
!
void Clear(Option_t *opt="") override
!
void Print(Option_t *opt="") const override
!
TVector3 GetPosition() const override
!
static double fTargetToWindowCart
Definition TTrific.h:95
static const double fInitialSpacingCart
Definition TTrific.h:94
static const double fSpacingCart
Definition TTrific.h:93