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