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

Detailed Description

This is an abstract class that contains the basic info about a detector. This is where the hits are built and the data is filled. It's main role is to act as a wrapper for every other type of detector system.

Definition at line 34 of file TDetector.h.

Public Member Functions

 TDetector ()=default
 
 TDetector (const TDetector &)
 
 TDetector (TDetector &&) noexcept
 
 ~TDetector ()
 
virtual void AddFragment (const std::shared_ptr< const TFragment > &, TChannel *)
 
virtual void AddHit (TDetectorHit *hit)
 
virtual void BuildHits ()
 
void Clear (Option_t *="") override
 
virtual void ClearTransients ()
 
void Copy (TObject &) const override
 
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
 
TDetectoroperator= (const TDetector &other)
 
TDetectoroperator= (TDetector &&other) noexcept
 
void Print (Option_t *opt="") const override
 
virtual void Print (std::ostream &out) const
 

Private Attributes

std::vector< TDetectorHit * > fHits
 

Friends

std::ostream & operator<< (std::ostream &out, const TDetector &det)
 
+ Inheritance diagram for TDetector:
+ Collaboration diagram for TDetector:

Constructor & Destructor Documentation

◆ TDetector() [1/3]

TDetector::TDetector ( )
default

◆ TDetector() [2/3]

TDetector::TDetector ( const TDetector & rhs)

Default Copy constructor.

Definition at line 4 of file TDetector.cxx.

References Copy().

◆ TDetector() [3/3]

TDetector::TDetector ( TDetector && rhs)
noexcept

Default Move constructor.

Definition at line 10 of file TDetector.cxx.

◆ ~TDetector()

TDetector::~TDetector ( )

Default Destructor.

Definition at line 16 of file TDetector.cxx.

References fHits.

Member Function Documentation

◆ AddFragment()

virtual void TDetector::AddFragment ( const std::shared_ptr< const TFragment > & ,
TChannel *  )
inlinevirtual

◆ AddHit()

◆ BuildHits()

virtual void TDetector::BuildHits ( )
inlinevirtual

◆ Clear()

◆ ClearTransients()

void TDetector::ClearTransients ( )
virtual

!

Reimplemented in TGriffin, TS3, TTigress, and TTrific.

Definition at line 54 of file TDetector.cxx.

References fHits.

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

◆ Copy()

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ Hits() [1/2]

◆ Hits() [2/2]

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

Definition at line 79 of file TDetector.h.

References fHits.

◆ NoHits()

virtual bool TDetector::NoHits ( ) const
inlinevirtual

◆ operator=() [1/2]

TDetector & TDetector::operator= ( const TDetector & other)
inline

Definition at line 40 of file TDetector.h.

◆ operator=() [2/2]

TDetector & TDetector::operator= ( TDetector && other)
inlinenoexcept

Definition at line 47 of file TDetector.h.

◆ Print() [1/2]

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

!

Default print statement for TDetector.

Definition at line 37 of file TDetector.cxx.

References Print().

Referenced by Print().

◆ Print() [2/2]

void TDetector::Print ( std::ostream & out) const
virtual

Print detector to stream out. Iterates over hits and prints them.

Reimplemented in TAries, TBgo, TDescant, TEagle, TEaglePulser, TEmma, TFipps, TFippsLaBr, TFippsPulser, TFippsTAC, TGenericDetector, TGriffin, TIfin, TLaBr, TPaces, TRcmp, TRF, TS3, TSceptar, TSharc2, TSharc, TSiLi, TTAC, TTdrClover, TTdrPlastic, TTdrSiLi, TTdrTigress, TTigress, TTip, TTrific, TTriFoil, and TZeroDegree.

Definition at line 43 of file TDetector.cxx.

References fHits.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const TDetector & det )
friend

Definition at line 81 of file TDetector.h.

Member Data Documentation

◆ fHits