GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TPaces.h
Go to the documentation of this file.
1#ifndef TPACES_H
2#define TPACES_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8#include <vector>
9#include <cstdio>
10
11#include "TBits.h"
12#include "Math/Vector3D.h"
13
14#include "Globals.h"
15#include "TDetector.h"
16#include "TPacesHit.h"
18class TPaces : public TDetector {
19public:
20 TPaces();
21 TPaces(const TPaces&);
22 TPaces(TPaces&&) noexcept = default;
23 TPaces& operator=(const TPaces&); //!<!
24 TPaces& operator=(TPaces&&) noexcept = default;
25 ~TPaces() override = default;
26
27 TPacesHit* GetPacesHit(const int& i) const { return static_cast<TPacesHit*>(GetHit(i)); }
28
29#ifndef __CINT__
30 void AddFragment(const std::shared_ptr<const TFragment>&, TChannel*) override;
31#endif
32 void BuildHits() override {} // no need to build any hits, everything already done in AddFragment
33
34 static ROOT::Math::Polar3DVector GetPosition(int DetNbr) { return fDetectorPosition[DetNbr]; } //!<!
35
36private:
37 static bool fSetCoreWave; //!<! Flag for Waveforms ON/OFF
38 static std::array<ROOT::Math::Polar3DVector, 6> fDetectorPosition; //!<! Position of each detector (plus one default position)
39
40public:
41 static bool SetCoreWave() { return fSetCoreWave; } //!<!
42
43 void Copy(TObject&) const override; //!<!
44 void Print(Option_t* opt = "") const override; //!<!
45 void Print(std::ostream& out) const override; //!<!
46
47 /// \cond CLASSIMP
48 ClassDefOverride(TPaces, 4) // Paces Physics structure // NOLINT(readability-else-after-return)
49 /// \endcond
50};
51/*! @} */
52#endif
virtual TDetectorHit * GetHit(const int &index) const
Definition TDetector.cxx:61
void BuildHits() override
!
Definition TPaces.h:32
void Print(Option_t *opt="") const override
!
Definition TPaces.cxx:40
void Copy(TObject &) const override
!
Definition TPaces.cxx:35
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition TPaces.cxx:59
static bool SetCoreWave()
!
Definition TPaces.h:41
static ROOT::Math::Polar3DVector GetPosition(int DetNbr)
!
Definition TPaces.h:34
TPaces()
Definition TPaces.cxx:25
TPaces(TPaces &&) noexcept=default
static std::array< ROOT::Math::Polar3DVector, 6 > fDetectorPosition
! Position of each detector (plus one default position)
Definition TPaces.h:17
static bool fSetCoreWave
! Flag for Waveforms ON/OFF
Definition TPaces.h:37
TPacesHit * GetPacesHit(const int &i) const
Definition TPaces.h:27