GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TBgo Class Reference

Detailed Description

The TBgo class defines the observables and algorithms used when analyzing BGO data. It includes detector positions, etc.

Definition at line 22 of file TBgo.h.

Public Member Functions

 TBgo ()
 
 TBgo (const TBgo &)
 
 TBgo (TBgo &&) noexcept
 
 ~TBgo ()
 
void AddFragment (const std::shared_ptr< const TFragment > &frag, TChannel *chan) override
 
virtual void AddHit (TDetectorHit *hit)
 
void BuildHits () override
 
void Clear (Option_t *opt="all") override
 
virtual void ClearTransients ()
 
void Copy (TObject &) const override
 
TBgoHitGetBgoHit (const Int_t &index)
 
virtual TDetectorHitGetHit (const int &index) const
 
virtual const std::vector< TDetectorHit * > & GetHitVector () const
 
virtual Short_t GetMultiplicity () const
 
std::vector< TDetectorHit * > & Hits ()
 
const std::vector< TDetectorHit * > & Hits () const
 
virtual bool NoHits () const
 
TBgooperator= (const TBgo &)
 
TBgooperator= (TBgo &&) noexcept
 
void Print (Option_t *opt="") const override
 
void Print (std::ostream &out) const override
 

Static Public Member Functions

static TVector3 GetPosition (int DetNbr, int CryNbr=5, double distance=110.0)
 

Private Attributes

std::vector< TDetectorHit * > fHits
 

Static Private Attributes

static std::array< TVector3, 17 > fScintPosition
 
+ Inheritance diagram for TBgo:
+ Collaboration diagram for TBgo:

Constructor & Destructor Documentation

◆ TBgo() [1/3]

TBgo::TBgo ( )

Default ctor.

Definition at line 92 of file TBgo.cxx.

References Clear().

◆ TBgo() [2/3]

TBgo::TBgo ( const TBgo & rhs)

Copy ctor.

Definition at line 98 of file TBgo.cxx.

References Copy().

◆ TBgo() [3/3]

TBgo::TBgo ( TBgo && rhs)
noexcept

Move ctor. Does the same as the copy constructor atm.

Definition at line 104 of file TBgo.cxx.

◆ ~TBgo()

TBgo::~TBgo ( )
default

Member Function Documentation

◆ AddFragment()

void TBgo::AddFragment ( const std::shared_ptr< const TFragment > & frag,
TChannel * chan )
overridevirtual

!

Reimplemented from TDetector.

Definition at line 153 of file TBgo.cxx.

References TDetector::AddHit().

◆ AddHit()

◆ BuildHits()

void TBgo::BuildHits ( )
inlineoverridevirtual

!

Reimplemented from TDetector.

Definition at line 35 of file TBgo.h.

◆ Clear()

void TBgo::Clear ( Option_t * opt = "all")
override

◆ ClearTransients()

void TDetector::ClearTransients ( )
virtualinherited

!

Reimplemented in TGriffin, TS3, TTigress, and TTrific.

Definition at line 54 of file TDetector.cxx.

References TDetector::fHits.

Referenced by TGriffin::ClearTransients(), TTigress::ClearTransients(), and TTrific::ClearTransients().

◆ Copy()

◆ GetBgoHit()

TBgoHit * TBgo::GetBgoHit ( const Int_t & index)
inline

Definition at line 29 of file TBgo.h.

References TDetector::GetHit().

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ GetPosition()

TVector3 TBgo::GetPosition ( int DetNbr,
int CryNbr = 5,
double distance = 110.0 )
static

!

Definition at line 165 of file TBgo.cxx.

References fScintPosition.

◆ Hits() [1/2]

◆ Hits() [2/2]

const std::vector< TDetectorHit * > & TDetector::Hits ( ) const
inlineinherited

Definition at line 79 of file TDetector.h.

References TDetector::fHits.

◆ NoHits()

virtual bool TDetector::NoHits ( ) const
inlinevirtualinherited

◆ operator=() [1/2]

TBgo & TBgo::operator= ( const TBgo & rhs)

!

Copy assignment.

Definition at line 110 of file TBgo.cxx.

References Copy().

◆ operator=() [2/2]

TBgo & TBgo::operator= ( TBgo && rhs)
noexcept

!

Move assignment. Does the same as the copy assignment atm.

Definition at line 118 of file TBgo.cxx.

◆ Print() [1/2]

void TBgo::Print ( Option_t * opt = "") const
override

!

Definition at line 140 of file TBgo.cxx.

References Print().

Referenced by Print().

◆ Print() [2/2]

void TBgo::Print ( std::ostream & out) const
overridevirtual

!

Reimplemented from TDetector.

Definition at line 145 of file TBgo.cxx.

References TDetector::GetMultiplicity().

Member Data Documentation

◆ fHits

◆ fScintPosition

std::array< TVector3, 17 > TBgo::fScintPosition
staticprivate

! Position of each BGO scintillator

Definition at line 36 of file TBgo.h.

Referenced by GetPosition().