GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TLaBrHit.h
Go to the documentation of this file.
1#ifndef LABRHIT_H
2#define LABRHIT_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8/////////////////////////////////////////////////////////////////
9///
10/// \class TLaBrHit
11///
12/// This is class that contains the information about a LaBr
13/// hit. This class is used to find energy, time, etc.
14///
15/////////////////////////////////////////////////////////////////
16
17#include <cstdio>
18#include <cmath>
19
20#include "TFragment.h"
21#include "TChannel.h"
22
23#include "TVector3.h"
24
25#include "TDetectorHit.h"
26
27class TLaBrHit : public TDetectorHit {
28public:
29 TLaBrHit();
30 ~TLaBrHit() override = default;
31 TLaBrHit(const TLaBrHit&);
32 TLaBrHit(TLaBrHit&&) noexcept = default;
33 TLaBrHit& operator=(const TLaBrHit&) = default;
34 TLaBrHit& operator=(TLaBrHit&&) noexcept = default;
35 explicit TLaBrHit(const TFragment& frag) { frag.Copy(*this); }
36
37 ///////////////////////// /////////////////////////////////////
38 inline void SetFilterPattern(const int& x) { fFilter = x; } //!<!
39
40 ///////////////////////// /////////////////////////////////////
41 inline Int_t GetFilterPattern() const { return fFilter; } //!<!
42
43 bool InFilter(Int_t); //!<!
44
45 void Clear(Option_t* opt = "") override; //!<!
46 void Print(Option_t* opt = "") const override; //!<!
47 void Print(std::ostream& out) const override; //!<!
48 void Copy(TObject&) const override; //!<!
49 void Copy(TObject&, bool) const override; //!<!
50 TVector3 GetPosition(Double_t dist) const override;
51 TVector3 GetPosition() const override;
52
53private:
54 Int_t fFilter{0};
55
56 Double_t GetDefaultDistance() const { return 0.; } // This needs to be updated
57
58 /// \cond CLASSIMP
59 ClassDefOverride(TLaBrHit, 3) // Stores the information for a LaBrrHit // NOLINT(readability-else-after-return)
60 /// \endcond
61};
62/*! @} */
63#endif
void Copy(TObject &) const override
!
Definition TLaBrHit.cxx:23
TLaBrHit(TLaBrHit &&) noexcept=default
~TLaBrHit() override=default
void Print(Option_t *opt="") const override
!
Definition TLaBrHit.cxx:65
bool InFilter(Int_t)
!
Definition TLaBrHit.cxx:50
Double_t GetDefaultDistance() const
Definition TLaBrHit.h:56
void Clear(Option_t *opt="") override
!
Definition TLaBrHit.cxx:58
Int_t GetFilterPattern() const
!
Definition TLaBrHit.h:41
Int_t fFilter
Definition TLaBrHit.h:54
TVector3 GetPosition() const override
!
Definition TLaBrHit.cxx:44
void SetFilterPattern(const int &x)
!
Definition TLaBrHit.h:38