GRSISort "v4.0.0.5"
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 "Globals.h"
19#include "TDetector.h"
20#include "TTipHit.h"
21
22class TTip : public TDetector {
23public:
24 TTip() = default;
25 TTip(const TTip& rhs);
26 TTip(TTip&&) noexcept = default;
27 TTip& operator=(const TTip&); //!<!
28 TTip& operator=(TTip&&) noexcept = default;
29 ~TTip() override = default;
30
31 static TVector3 GetPosition(int DetNbr); //!<!
32 static TVector3 GetPosition(const TTipHit&);
33
34 TTipHit* GetTipHit(const int& i) const { return static_cast<TTipHit*>(GetHit(i)); }
35
36#ifndef __CINT__
37 void AddFragment(const std::shared_ptr<const TFragment>&, TChannel*) override; //!<!
38#endif
39 void BuildHits() override {} // no need to build any hits, everything already done in AddFragment
40
41private:
42 // Position vectors for individual TIP detectors
43 static std::array<TVector3, 128> fPositionVectors; //!<!
44
45public:
46 void Print(Option_t* opt = "") const override;
47 void Print(std::ostream& out) const override; //!<!
48
49 /// \cond CLASSIMP
50 ClassDefOverride(TTip, 2); // NOLINT(readability-else-after-return)
51 /// \endcond
52};
53/*! @} */
54#endif
virtual TDetectorHit * GetHit(const int &index) const
Definition TDetector.cxx:61
Definition TTip.h:22
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:39
TTip(TTip &&) noexcept=default
TTip()=default
static TVector3 GetPosition(int DetNbr)
!
Definition TTip.cxx:181
TTipHit * GetTipHit(const int &i) const
Definition TTip.h:34