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

Detailed Description

Definition at line 14 of file TGenericDetector.h.

Public Member Functions

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

Private Member Functions

void ClearStatus ()
 

Private Attributes

std::vector< TDetectorHit * > fHits
 
+ Inheritance diagram for TGenericDetector:
+ Collaboration diagram for TGenericDetector:

Constructor & Destructor Documentation

◆ TGenericDetector() [1/3]

TGenericDetector::TGenericDetector ( )

Definition at line 9 of file TGenericDetector.cxx.

References TDetector::Clear().

◆ TGenericDetector() [2/3]

TGenericDetector::TGenericDetector ( const TGenericDetector & rhs)

Definition at line 20 of file TGenericDetector.cxx.

References TDetector::Copy().

◆ TGenericDetector() [3/3]

TGenericDetector::TGenericDetector ( TGenericDetector && )
defaultnoexcept

◆ ~TGenericDetector()

TGenericDetector::~TGenericDetector ( )
overridedefault

Member Function Documentation

◆ AddFragment()

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

!

This function creates TGenericDetectorHits for each fragment and stores them in separate front and back vectors

Reimplemented from TDetector.

Definition at line 25 of file TGenericDetector.cxx.

References TDetector::AddHit().

◆ AddHit()

◆ BuildHits()

void TGenericDetector::BuildHits ( )
inlineoverridevirtual

!

Reimplemented from TDetector.

Definition at line 26 of file TGenericDetector.h.

◆ Clear()

◆ ClearStatus()

void TGenericDetector::ClearStatus ( )
inlineprivate

Definition at line 34 of file TGenericDetector.h.

◆ 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()

◆ GetGenericDetectorHit()

TDetectorHit * TGenericDetector::GetGenericDetectorHit ( const int & i) const
inline

Definition at line 28 of file TGenericDetector.h.

References TDetector::GetHit().

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ 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]

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

Definition at line 14 of file TGenericDetector.cxx.

References TDetector::Copy().

◆ operator=() [2/2]

TGenericDetector & TGenericDetector::operator= ( TGenericDetector && )
defaultnoexcept

◆ Print() [1/2]

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

!

Definition at line 37 of file TGenericDetector.cxx.

References Print().

Referenced by Print().

◆ Print() [2/2]

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

!

Reimplemented from TDetector.

Definition at line 42 of file TGenericDetector.cxx.

Member Data Documentation

◆ fHits