GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTACHit.h
Go to the documentation of this file.
1#ifndef TACHIT_H
2#define TACHIT_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8/////////////////////////////////////////////////////////////////
9///
10/// \class TTACHit
11///
12/// This is class that contains the information about a TAC
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#include "TGraph.h"
23
24#include "TVector3.h"
25
26#include "TDetectorHit.h"
27
28class TTACHit : public TDetectorHit {
29public:
30 TTACHit();
31 TTACHit(const TTACHit&);
32 TTACHit(TTACHit&&) noexcept = default;
33 TTACHit& operator=(const TTACHit&) = default;
34 TTACHit& operator=(TTACHit&&) noexcept = default;
35 explicit TTACHit(const TFragment& frag) { frag.Copy(*this); }
36 ~TTACHit() override = default;
37
38 ///////////////////////// /////////////////////////////////////
39 inline void SetFilterPattern(const int& x) { fFilter = x; } //!<!
40
41 ///////////////////////// /////////////////////////////////////
42 inline Int_t GetFilterPattern() const { return fFilter; } //!<!
43
44 bool InFilter(Int_t); //!<!
45
46 Double_t GetTempCorrectedCharge(TGraph* correction_graph) const;
47 Double_t TempCorrectedCharge(TGraph* correction_graph) const;
48 Double_t GetTempCorrectedEnergy(TGraph* correction_graph) const;
49
50 void Clear(Option_t* opt = "") override; //!<!
51 void Print(Option_t* opt = "") const override; //!<!
52 void Print(std::ostream& out) const override; //!<!
53 void Copy(TObject&) const override; //!<!
54 void Copy(TObject&, bool) const override; //!<!
55
56private:
57 Int_t fFilter{0};
58
59 /// \cond CLASSIMP
60 ClassDefOverride(TTACHit, 2) // Stores the information for a TACrHit // NOLINT(readability-else-after-return)
61 /// \endcond
62};
63/*! @} */
64#endif
void SetFilterPattern(const int &x)
!
Definition TTACHit.h:39
TTACHit()
Definition TTACHit.cxx:10
TTACHit(TTACHit &&) noexcept=default
void Clear(Option_t *opt="") override
!
Definition TTACHit.cxx:86
Int_t GetFilterPattern() const
!
Definition TTACHit.h:42
void Copy(TObject &) const override
!
Definition TTACHit.cxx:23
void Print(Option_t *opt="") const override
!
Definition TTACHit.cxx:93
Double_t TempCorrectedCharge(TGraph *correction_graph) const
Definition TTACHit.cxx:48
Int_t fFilter
Definition TTACHit.h:57
Double_t GetTempCorrectedCharge(TGraph *correction_graph) const
Definition TTACHit.cxx:38
Double_t GetTempCorrectedEnergy(TGraph *correction_graph) const
Definition TTACHit.cxx:58
~TTACHit() override=default
bool InFilter(Int_t)
!
Definition TTACHit.cxx:78