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