GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TLaBrBgoHit.h
Go to the documentation of this file.
1#ifndef TLABRBGOHIT_H
2#define TLABRBGOHIT_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8#include <cstdio>
9#include <cmath>
10#if !defined(__CINT__) && !defined(__CLING__)
11#include <tuple>
12#endif
13
14#include "TMath.h"
15#include "TVector3.h"
16#include "TClonesArray.h"
17
18#include "TFragment.h"
19#include "TChannel.h"
20#include "TPulseAnalyzer.h"
21
22#include "TBgoHit.h"
23
24class TLaBrBgoHit : public TBgoHit {
25public:
27 TLaBrBgoHit(const TLaBrBgoHit& hit) : TBgoHit(static_cast<const TBgoHit&>(hit)) {}
28 TLaBrBgoHit(TLaBrBgoHit&&) noexcept = default;
29 TLaBrBgoHit& operator=(const TLaBrBgoHit&) = default;
30 TLaBrBgoHit& operator=(TLaBrBgoHit&&) noexcept = default;
31 explicit TLaBrBgoHit(const TFragment& frag) : TBgoHit(frag) {}
32 ~TLaBrBgoHit() override = default;
33
34 ///////////////////////// /////////////////////////////////////
35 UShort_t GetArrayNumber() const override { return (3 * (GetDetector() - 1) + GetCrystal()); } //!<! the BGO of each detector has three segments
36
37 /// \cond CLASSIMP
38 ClassDefOverride(TLaBrBgoHit, 2) // NOLINT(readability-else-after-return)
39 /// \endcond
40};
41/*! @} */
42#endif
virtual Int_t GetCrystal() const
!
virtual Int_t GetDetector() const
!
TLaBrBgoHit(TLaBrBgoHit &&) noexcept=default
TLaBrBgoHit(const TLaBrBgoHit &hit)
Definition TLaBrBgoHit.h:27
UShort_t GetArrayNumber() const override
! the BGO of each detector has three segments
Definition TLaBrBgoHit.h:35
~TLaBrBgoHit() override=default