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