12#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
13 Class()->IgnoreTObjectStreamer(kTRUE);
72 std::ostringstream str;
73 str <<
"TdrClover Detector: " <<
GetDetector() << std::endl;
74 str <<
"TdrClover Crystal: " <<
GetCrystal() << std::endl;
75 str <<
"TdrClover Energy: " <<
GetEnergy() << std::endl;
76 str <<
"TdrClover hit time: " <<
GetTime() << std::endl;
77 str <<
"TdrClover hit TV3 theta: " <<
GetPosition().Theta() * 180. / 3.141597 <<
"\tphi" <<
GetPosition().Phi() * 180. / 3.141597 << std::endl;
101 if(cloverHit ==
nullptr) {
102 throw std::runtime_error(
"trying to add non-clover hit to clover hit!");
void SetKValue(const Short_t &temp_kval)
!
Double_t SetEnergy(const double &energy) const
virtual UInt_t GetAddress() const
!
virtual void SetCfd(const Float_t &val)
!
virtual double GetEnergy(Option_t *opt="") const
virtual Short_t GetKValue() const
!
virtual Int_t GetCrystal() const
!
void SetCharge(const Float_t &temp_charge)
!
bool TestHitBit(EBitFlag flag) const
void Clear(Option_t *opt="") override
!
virtual Int_t GetDetector() const
!
virtual Float_t GetCfd() 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 SetHitBit(EBitFlag, Bool_t set=true) const
void SetAddress(const UInt_t &temp_address)
!
Double_t SetTime(const Double_t &time) const
virtual void CopyWave(TObject &) const
!
Short_t GetNumberOfPileups() const
void SetPUHit(UChar_t puhit)
void Clear(Option_t *opt="") override
!
Int_t fFilter
The Filter Word.
~TTdrCloverHit() override
void Print(Option_t *opt="") const override
!
TVector3 GetPosition() const override
!
void Copy(TObject &) const override
!
UInt_t fCrystal
! Crystal Number
void SetTdrCloverFlag(ETdrCloverHitBits, Bool_t set)
UShort_t NPileUps() const
Bool_t fBremSuppressed_flag
! Bremsstrahlung Suppression flag.
void Add(const TDetectorHit *) override
!
Double_t GetDefaultDistance() const
void SetNPileUps(UChar_t npileups)
static bool CompareEnergy(const TTdrCloverHit *, const TTdrCloverHit *)
!
static TVector3 GetPosition(int DetNbr, int CryNbr=5, double dist=110.0)
!