GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TFippsLaBrHit.cxx
Go to the documentation of this file.
1#include "TFippsLaBrHit.h"
2
3#include <iostream>
4#include <algorithm>
5#include <climits>
6
7#include "Globals.h"
8#include "TFippsLaBr.h"
9
11{
12// Default Constructor
13#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
14 Class()->IgnoreTObjectStreamer(kTRUE);
15#endif
16 Clear();
17}
18
20
22{
23// Copy Constructor
24#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
25 Class()->IgnoreTObjectStreamer(kTRUE);
26#endif
27 Clear();
28 rhs.Copy(*this);
29}
30
31void TFippsLaBrHit::Copy(TObject& rhs) const
32{
33 // Copies a TFippsLaBrHit
35}
36
37void TFippsLaBrHit::Copy(TObject& obj, bool) const
38{
39 Copy(obj);
40}
41
42TVector3 TFippsLaBrHit::GetPosition(Double_t) const
43{
44 // Gets the position of the current TFippsLaBrHit
46}
47
49{
50 // Gets the position of the current TFippsLaBrHit
52}
53
54void TFippsLaBrHit::Clear(Option_t*)
55{
56 // Clears the LaBrHit
58}
59
60void TFippsLaBrHit::Print(Option_t*) const
61{
62 /// Prints the LaBrHit. Returns:
63 /// Detector
64 /// Energy
65 /// Time
66 Print(std::cout);
67}
68
69void TFippsLaBrHit::Print(std::ostream& out) const
70{
71 std::ostringstream str;
72 str << "TAC Detector: " << GetDetector() << std::endl;
73 str << "TAC hit energy: " << GetEnergy() << std::endl;
74 str << "TAC hit time: " << GetTime() << std::endl;
75 out << str.str();
76}
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!
void Print(Option_t *opt="") const override
!
void Clear(Option_t *opt="") override
!
~TFippsLaBrHit() override
Double_t GetDefaultDistance() const
void Copy(TObject &) const override
!
TVector3 GetPosition() const override
!
static TVector3 GetPosition(int DetNbr)
!
Definition TFippsLaBr.h:70