GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTdrPlastic.h
Go to the documentation of this file.
1#ifndef TTTDRPLASTIC_H
2#define TTTDRPLASTIC_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8/////////////////////////////////////////////////////////////
9///
10/// \class TTdrPlastic
11///
12/// The TTdrPlastic class defines the observables and algorithms used
13/// when analyzing GRIFFIN data. It includes detector positions,
14/// etc.
15///
16/////////////////////////////////////////////////////////////
17
18#include <vector>
19#include <cstdio>
20
21#include "TVector3.h"
22
23#include "Globals.h"
24#include "TDetector.h"
25#include "TTdrPlasticHit.h"
26
27class TTdrPlastic : public TDetector {
28public:
30 ~TTdrPlastic() override;
31 TTdrPlastic(const TTdrPlastic& rhs);
32
33public:
34 TTdrPlasticHit* GetTdrPlasticHit(const int& i) const { return static_cast<TTdrPlasticHit*>(GetHit(i)); }
35#ifndef __CINT__
36 void AddFragment(const std::shared_ptr<const TFragment>&, TChannel*) override; //!<!
37#endif
38
39 static TVector3 GetPosition(int DetNbr) { return gPaddlePosition[DetNbr]; } //!<!
40
41 TTdrPlastic& operator=(const TTdrPlastic&); //!<!
42
43private:
44 static bool fSetWave; // Flag for Waveforms ON/OFF
45
46public:
47 static bool SetWave() { return fSetWave; } //!<!
48
49private:
50 static TVector3 gPaddlePosition[21]; //!<! Position of each Paddle
51
52public:
53 void Clear(Option_t* opt = "") override; //!<!
54 void Print(Option_t* opt = "") const override; //!<!
55 void Print(std::ostream& out) const override;
56
57 /// \cond CLASSIMP
58 ClassDefOverride(TTdrPlastic, 2) // TdrPlastic Physics structure
59 /// \endcond
60};
61/*! @} */
62#endif
virtual TDetectorHit * GetHit(const int &index) const
Definition TDetector.cxx:61
static TVector3 gPaddlePosition[21]
! Position of each Paddle
Definition TTdrPlastic.h:12
void Print(Option_t *opt="") const override
!
static bool fSetWave
Definition TTdrPlastic.h:44
TTdrPlastic & operator=(const TTdrPlastic &)
!
static TVector3 GetPosition(int DetNbr)
!
Definition TTdrPlastic.h:39
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
static bool SetWave()
!
Definition TTdrPlastic.h:47
~TTdrPlastic() override
void Clear(Option_t *opt="") override
!
TTdrPlasticHit * GetTdrPlasticHit(const int &i) const
Definition TTdrPlastic.h:34