GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TDemandHit.h
Go to the documentation of this file.
1#ifndef DEMANDHIT_H
2#define DEMANDHIT_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
18class TDemandHit : public TDetectorHit {
19public:
20 TDemandHit();
21 TDemandHit(const TDemandHit&);
22 TDemandHit(TDemandHit&&) noexcept = default;
23 TDemandHit& operator=(const TDemandHit&) = default;
24 TDemandHit& operator=(TDemandHit&&) noexcept = default;
25 explicit TDemandHit(const TFragment& frag);
26 ~TDemandHit() override = default;
27
28private:
29 Int_t fFilter{0};
30 Int_t fCcShort{0}; ///< the short integration, long integration is stored in fCharge
31 Int_t fCcLong{0}; ///< this is actually the overflow bit of the energy!
32
33public:
34 ///////////////////////// Setters /////////////////////////////////////
35 inline void SetFilterPattern(const int& x) { fFilter = x; } //!<!
36 inline void SetCcShort(const int& x) { fCcShort = x; } //!<!
37 inline void SetCcLong(const int& x) { fCcLong = x; } //!<!
38 // void SetHit();
39
40 ///////////////////////// Getters /////////////////////////////////////
41 inline Int_t GetFilterPattern() const { return fFilter; } //!<!
42 inline Int_t GetCcShort() const { return fCcShort; } //!<!
43 inline Int_t GetCcLong() const { return fCcLong; } //!<!
44
45 ///////////////////////// TChannel Helpers /////////////////////////////////////
46 bool InFilter(Int_t); //!<!
47
48 void Clear(Option_t* opt = "") override; //!<!
49 void Print(Option_t* opt = "") const override; //!<!
50 void Print(std::ostream& out) const override; //!<!
51 void Copy(TObject&) const override; //!<!
52 void Copy(TObject&, bool) const override; //!<!
53 TVector3 GetPosition() const override; //!<!
54
55private:
56 Double_t GetDefaultDistance() const { return 0.0; }
57
58 /// \cond CLASSIMP
59 ClassDefOverride(TDemandHit, 5); // NOLINT(readability-else-after-return)
60 /// \endcond
61};
62/*! @} */
63#endif
TVector3 GetPosition() const override
!
Int_t fCcLong
this is actually the overflow bit of the energy!
Definition TDemandHit.h:31
void Print(Option_t *opt="") const override
!
Int_t GetCcShort() const
!
Definition TDemandHit.h:42
Int_t GetCcLong() const
!
Definition TDemandHit.h:43
Int_t fFilter
Definition TDemandHit.h:29
Int_t fCcShort
the short integration, long integration is stored in fCharge
Definition TDemandHit.h:30
bool InFilter(Int_t)
!
void Clear(Option_t *opt="") override
!
void Copy(TObject &) const override
!
void SetFilterPattern(const int &x)
!
Definition TDemandHit.h:35
TDemandHit(TDemandHit &&) noexcept=default
Double_t GetDefaultDistance() const
Definition TDemandHit.h:56
void SetCcShort(const int &x)
!
Definition TDemandHit.h:36
Int_t GetFilterPattern() const
!
Definition TDemandHit.h:41
void SetCcLong(const int &x)
!
Definition TDemandHit.h:37