GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TFippsHit.h
Go to the documentation of this file.
1#ifndef FIPPSHIT_H
2#define FIPPSHIT_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#include "TDetectorHit.h"
16
17class TFippsHit : public TDetectorHit {
18public:
19 TFippsHit();
20 TFippsHit(const TFippsHit&);
21 TFippsHit(const TFragment&);
22 ~TFippsHit() override;
23
24public:
25 ///////////////////////// Getters /////////////////////////////////////
26 Double_t GetNoCTEnergy(Option_t* opt = "") const;
27
28 ///////////////////////// Recommended Functions/////////////////////////
29
30 ///////////////////////// /////////////////////////////////////
31
32 inline UShort_t GetArrayNumber() const override { return (4 * (GetDetector() - 1) + (GetCrystal() + 1)); } //!<!
33 static bool CompareEnergy(const TFippsHit*, const TFippsHit*); //!<!
34 void Add(const TDetectorHit*) override; //!<!
35
36 void Clear(Option_t* opt = "") override; //!<!
37 void Print(Option_t* opt = "") const override; //!<!
38 void Print(std::ostream& out) const override;
39 void Copy(TObject&) const override; //!<!
40 void Copy(TObject&, bool) const override; //!<!
41
42 TVector3 GetPosition(double dist) const override; //!<!
43 TVector3 GetPosition() const override;
44
45private:
46 Double_t GetDefaultDistance() const { return 90.; } // Target to detector distance is 90mm (Unless suppressed)
47
48 /// \cond CLASSIMP
49 ClassDefOverride(TFippsHit, 2); // Information about a FIPPS Hit
50 /// \endcond
51};
52/*! @} */
53#endif
virtual Int_t GetCrystal() const
!
virtual Int_t GetDetector() const
!
void Print(Option_t *opt="") const override
!
Definition TFippsHit.cxx:50
void Copy(TObject &) const override
!
Definition TFippsHit.cxx:34
static bool CompareEnergy(const TFippsHit *, const TFippsHit *)
!
Definition TFippsHit.cxx:77
TVector3 GetPosition() const override
!
Definition TFippsHit.cxx:72
UShort_t GetArrayNumber() const override
!
Definition TFippsHit.h:32
Double_t GetNoCTEnergy(Option_t *opt="") const
~TFippsHit() override
void Add(const TDetectorHit *) override
!
Definition TFippsHit.cxx:82
void Clear(Option_t *opt="") override
!
Definition TFippsHit.cxx:44
Double_t GetDefaultDistance() const
Definition TFippsHit.h:46