GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
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 
22 class TTip : public TDetector {
23 public:
24 
25  ~TTip() override;
26  TTip();
27  TTip(const TTip& rhs);
28 
29  static TVector3 GetPosition(int DetNbr); //!<!
30  static TVector3 GetPosition(const TTipHit&);
31 
32  TTipHit* GetTipHit(const int& i) const { return static_cast<TTipHit*>(GetHit(i)); }
33 
34 #ifndef __CINT__
35  void AddFragment(const std::shared_ptr<const TFragment>&, TChannel*) override; //!<!
36 #endif
37  void BuildHits() override {} // no need to build any hits, everything already done in AddFragment
38 
39  TTip& operator=(const TTip&); //!<!
40 
41 private:
42 
43  // Position vectors for individual TIP detectors
44  static TVector3 fPositionVectors[128]; //!<!
45 
46 public:
47 
48  void Print(Option_t* opt = "") const override;
49  void Print(std::ostream& out) const override; //!<!
50 
51  /// \cond CLASSIMP
52  ClassDefOverride(TTip, 2);
53  /// \endcond
54 };
55 /*! @} */
56 #endif
TTip & operator=(const TTip &)
!
Definition: TTip.cxx:162
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition: TTip.cxx:168
~TTip() override
Definition: TTip.cxx:149
Definition: TTip.h:22
TTip()
Definition: TTip.cxx:145
static TVector3 fPositionVectors[128]
!
Definition: TTip.h:44
void Print(Option_t *opt="") const override
Definition: TTip.cxx:179
TTipHit * GetTipHit(const int &i) const
Definition: TTip.h:32
virtual TDetectorHit * GetHit(const int &) const
Definition: TDetector.cxx:70
static TVector3 GetPosition(int DetNbr)
!
Definition: TTip.cxx:197
void BuildHits() override
!
Definition: TTip.h:37