GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTdrTigressHit.h
Go to the documentation of this file.
1#ifndef TDRTIGRESSHIT_H
2#define TDRTIGRESSHIT_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8#include <cstdio>
9#include <cmath>
10
11#include "TVector3.h"
12
13#include "TFragment.h"
14#include "TChannel.h"
15
16#include "TDetectorHit.h"
17#include "TRunInfo.h"
18
20public:
21 enum class ETdrTigressHitBits {
22 kTotalPU1 = 1<<0,
23 kTotalPU2 = 1<<1,
25 kPUHit1 = 1<<2,
26 kPUHit2 = 1<<3,
27 kBit4 = 1<<4,
28 kBit5 = 1<<5,
29 kBit6 = 1<<6,
30 kBit7 = 1<<7
31 };
32
33public:
37 ~TTdrTigressHit() override;
38
39private:
40 Int_t fFilter{0}; ///< The Filter Word
41 TTransientBits<UChar_t> fTdrTigressHitBits; ///< Transient Member Flags
42 UInt_t fCrystal{0}; //!<! Crystal Number
43 Bool_t fBremSuppressed_flag{false}; //!<! Bremsstrahlung Suppression flag.
44
45public:
46 ///////////////////////// Setters /////////////////////////////////////
47 inline void SetFilterPattern(const int& x) { fFilter = x; } //!<!
48
49 ///////////////////////// Getters /////////////////////////////////////
50 inline Int_t GetFilterPattern() const { return fFilter; } //!<!
51
52 ///////////////////////// Recommended Functions/////////////////////////
53
54 ///////////////////////// TChannel Helpers /////////////////////////////////////
55 UShort_t NPileUps() const;
56 UShort_t PUHit() const;
57 void SetNPileUps(UChar_t npileups);
58 void SetPUHit(UChar_t puhit);
59
60 ///////////////////////// /////////////////////////////////////
61
62 inline UShort_t GetArrayNumber() const override { return (4 * (GetDetector() - 1) + (GetCrystal() + 1)); } //!<!
63 // returns a number 1-64 ( 1 = Detector 1 blue; 64 = Detector 16 white; )
64 Bool_t GetIsBremSuppressed() const { return fBremSuppressed_flag; }
65 void SetIsBremSuppressed(const Bool_t& supp_flag) { fBremSuppressed_flag = supp_flag; }
66 void MakeBremSuppressed(const Bool_t& supp_flag) { fBremSuppressed_flag |= supp_flag; }
67
68 bool InFilter(Int_t); //!<!
69
70 static bool CompareEnergy(const TTdrTigressHit*, const TTdrTigressHit*); //!<!
71 void Add(const TDetectorHit*) override; //!<!
72 // Bool_t BremSuppressed(TSceptarHit*);
73
74public:
75 void Clear(Option_t* opt = "") override; //!<!
76 void Print(Option_t* opt = "") const override; //!<!
77 void Print(std::ostream& out) const override;
78 void Copy(TObject&) const override; //!<!
79 void Copy(TObject&, bool) const override; //!<!
80
81 TVector3 GetPosition(double dist) const override; //!<!
82 TVector3 GetPosition() const override;
83
84private:
85 void SetTdrTigressFlag(ETdrTigressHitBits, Bool_t set);
86 Double_t GetDefaultDistance() const { return 110.; }
87
88 /// \cond CLASSIMP
89 ClassDefOverride(TTdrTigressHit, 1); // Information about a TDRTIGRESS Hit
90 /// \endcond
91};
92/*! @} */
93#endif
virtual Int_t GetCrystal() const
!
virtual Int_t GetDetector() const
!
bool InFilter(Int_t)
!
UShort_t NPileUps() const
Int_t fFilter
The Filter Word.
Bool_t fBremSuppressed_flag
! Bremsstrahlung Suppression flag.
void Add(const TDetectorHit *) override
!
Bool_t GetIsBremSuppressed() const
~TTdrTigressHit() override
UShort_t PUHit() const
void SetTdrTigressFlag(ETdrTigressHitBits, Bool_t set)
Int_t GetFilterPattern() const
!
Double_t GetDefaultDistance() const
void Print(Option_t *opt="") const override
!
void SetIsBremSuppressed(const Bool_t &supp_flag)
TTransientBits< UChar_t > fTdrTigressHitBits
Transient Member Flags.
UInt_t fCrystal
! Crystal Number
void Copy(TObject &) const override
!
void MakeBremSuppressed(const Bool_t &supp_flag)
TVector3 GetPosition() const override
!
static bool CompareEnergy(const TTdrTigressHit *, const TTdrTigressHit *)
!
void Clear(Option_t *opt="") override
!
void SetFilterPattern(const int &x)
!
UShort_t GetArrayNumber() const override
!
void SetNPileUps(UChar_t npileups)
void SetPUHit(UChar_t puhit)