GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TDetector Class Reference

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

Protected Attributes

std::vector< TDetectorHit * > fHits
 

Friends

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

#include <TDetector.h>

+ Inheritance diagram for TDetector:
+ Collaboration diagram for TDetector:

Constructor & Destructor Documentation

◆ TDetector() [1/2]

TDetector::TDetector ( )

Default constructor.

Definition at line 8 of file TDetector.cxx.

◆ TDetector() [2/2]

TDetector::TDetector ( const TDetector rhs)

Default Copy constructor.

Definition at line 17 of file TDetector.cxx.

References Copy().

◆ ~TDetector()

TDetector::~TDetector ( )
override

Default Destructor.

Definition at line 26 of file TDetector.cxx.

References fHits.

Member Function Documentation

◆ AddFragment()

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

◆ BuildHits()

virtual void TDetector::BuildHits ( )
inlinevirtual

◆ Clear()

◆ ClearTransients()

void TDetector::ClearTransients ( )
virtual

!

Reimplemented in TS3, TTigress, TTrific, and TGriffin.

Definition at line 63 of file TDetector.cxx.

References fHits.

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

◆ Copy()

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ operator=()

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

Definition at line 39 of file TDetector.h.

References Copy().

◆ Print() [1/2]

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

!

Default print statement for TDetector.

Definition at line 47 of file TDetector.cxx.

◆ Print() [2/2]

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

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

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

Definition at line 53 of file TDetector.cxx.

References fHits.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 66 of file TDetector.h.

Member Data Documentation

◆ fHits

std::vector<TDetectorHit*> TDetector::fHits
protected

Definition at line 72 of file TDetector.h.

Referenced by TSiLi::AddCluster(), TEaglePulser::AddFragment(), TGenericDetector::AddFragment(), TFippsPulser::AddFragment(), TPaces::AddFragment(), TTdrSiLi::AddFragment(), TBgo::AddFragment(), TSiLi::AddFragment(), TTip::AddFragment(), TSceptar::AddFragment(), TTdrPlastic::AddFragment(), TTAC::AddFragment(), TFippsTAC::AddFragment(), TEagle::AddFragment(), TZeroDegree::AddFragment(), TDescant::AddFragment(), TTdrClover::AddFragment(), TTdrTigress::AddFragment(), TFipps::AddFragment(), TIfin::AddFragment(), TTrific::AddFragment(), TLaBr::AddFragment(), TFippsLaBr::AddFragment(), TTigress::AddFragment(), TEmma::BuildHits(), TCSM::BuildHits(), TSharc::BuildHits(), TTigress::BuildHits(), TSharc::Clear(), Clear(), TEmma::Clear(), TTrific::Clear(), ClearTransients(), Copy(), TSiLi::GetAddbackMultiplicity(), TTigress::GetAddbackMultiplicity(), TFipps::GetFippsHit(), GetHit(), GetHitVector(), TIfin::GetIfinHit(), GetMultiplicity(), TTrific::GetMultiplicity(), TSharc::GetSize(), TFippsLaBr::GetSuppressedMultiplicity(), TLaBr::GetSuppressedMultiplicity(), TTdrClover::GetSuppressedMultiplicity(), TTdrTigress::GetSuppressedMultiplicity(), TSiLi::Print(), TTdrSiLi::Print(), TTAC::Print(), TFippsTAC::Print(), TPaces::Print(), TTip::Print(), TZeroDegree::Print(), TSceptar::Print(), TTdrPlastic::Print(), TEagle::Print(), Print(), TDescant::Print(), TEmma::Print(), TLaBr::Print(), TFippsLaBr::Print(), TTrific::Print(), TTigress::Print(), TSiLi::UseFitCharge(), and ~TDetector().