GRSISort "v4.1.1.0"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTip.h
Go to the documentation of this file.
1#ifndef TTIP_H
2#define TTIP_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8/////////////////////////////////////////////////////////////
9///
10/// \class TTip
11///
12/// The TTip class defines the observables and algorithms used
13/// when analyzing TIP data. It includes detector positions,
14/// etc.
15///
16/////////////////////////////////////////////////////////////
17
18#include "TVector3.h"
19
20#include "Globals.h"
21#include "TDetector.h"
22#include "TTipHit.h"
23#include "TMnemonic.h"
24
25class TTip : public TDetector {
26public:
27 TTip() = default;
28 TTip(const TTip& rhs);
29 TTip(TTip&&) noexcept = default;
30 TTip& operator=(const TTip&); //!<!
31 TTip& operator=(TTip&&) noexcept = default;
32 ~TTip() override = default;
33
34 static TVector3 GetPosition(int DetNbr); //!<!
35 static TVector3 GetPosition(const TTipHit&);
36
37 TTipHit* GetTipHit(const int& i) const { return static_cast<TTipHit*>(GetHit(i)); }
38
39#ifndef __CINT__
40 void AddFragment(const std::shared_ptr<const TFragment>&, TChannel*) override; //!<!
41#endif
42 void BuildHits() override {} // no need to build any hits, everything already done in AddFragment
43
44private:
45 // Position vectors for individual TIP detectors
46 static std::array<TVector3, 128> fPositionVectors; //!<!
47
48public:
49 void Print(Option_t* opt = "") const override;
50 void Print(std::ostream& out) const override; //!<!
51
52 /// \cond CLASSIMP
53 ClassDefOverride(TTip, 2); // NOLINT(readability-else-after-return)
54 /// \endcond
55};
56/*! @} */
57#endif
virtual TDetectorHit * GetHit(const int &index) const
Definition TDetector.cxx:84
Definition TTip.h:25
static std::array< TVector3, 128 > fPositionVectors
!
Definition TTip.h:11
void Print(Option_t *opt="") const override
Definition TTip.cxx:163
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition TTip.cxx:152
void BuildHits() override
!
Definition TTip.h:42
TTip(TTip &&) noexcept=default
TTip()=default
static TVector3 GetPosition(int DetNbr)
!
Definition TTip.cxx:181
TTipHit * GetTipHit(const int &i) const
Definition TTip.h:37