GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TBgo.h
Go to the documentation of this file.
1#ifndef TBGO_H
2#define TBGO_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8#include <vector>
9#include <cstdio>
10#include <functional>
11//#include <tuple>
12
13#include "TBits.h"
14#include "TVector3.h"
15
16#include "Globals.h"
17#include "TBgoHit.h"
18#include "TDetector.h"
19#include "TTransientBits.h"
20#include "TSpline.h"
21
22class TBgo : public TDetector {
23public:
24 TBgo();
25 TBgo(const TBgo&);
26 TBgo(TBgo&&) noexcept;
28
29 TBgoHit* GetBgoHit(const Int_t& index) { return static_cast<TBgoHit*>(GetHit(index)); }
30
31 static TVector3 GetPosition(int DetNbr, int CryNbr = 5, double distance = 110.0); //!<!
32#ifndef __CINT__
33 void AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel* chan) override; //!<!
34#endif
35 void BuildHits() override {} // no need to build any hits, everything already done in AddFragment
37 TBgo& operator=(const TBgo&); //!<!
38 TBgo& operator=(TBgo&&) noexcept; //!<!
39
40private:
41 static std::array<TVector3, 17> fScintPosition; //!<! Position of each BGO scintillator
42
43public:
44 void Copy(TObject&) const override; //!<!
45 void Clear(Option_t* opt = "all") override; //!<!
46 void Print(Option_t* opt = "") const override; //!<!
47 void Print(std::ostream& out) const override; //!<!
48
49 /// \cond CLASSIMP
50 ClassDefOverride(TBgo, 1) // NOLINT(readability-else-after-return)
51 /// \endcond
52};
53/*! @} */
54#endif
Definition TBgo.h:22
TBgo()
Definition TBgo.cxx:92
static TVector3 GetPosition(int DetNbr, int CryNbr=5, double distance=110.0)
!
Definition TBgo.cxx:165
TBgo & operator=(const TBgo &)
!
Definition TBgo.cxx:110
void Copy(TObject &) const override
!
Definition TBgo.cxx:126
void Clear(Option_t *opt="all") override
!
Definition TBgo.cxx:134
static std::array< TVector3, 17 > fScintPosition
! Position of each BGO scintillator
Definition TBgo.h:36
void AddFragment(const std::shared_ptr< const TFragment > &frag, TChannel *chan) override
!
Definition TBgo.cxx:153
TBgoHit * GetBgoHit(const Int_t &index)
Definition TBgo.h:29
void BuildHits() override
!
Definition TBgo.h:35
void Print(Option_t *opt="") const override
!
Definition TBgo.cxx:140
virtual TDetectorHit * GetHit(const int &index) const
Definition TDetector.cxx:61