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

Detailed Description

Definition at line 18 of file TDemand.h.

Public Member Functions

 TDemand ()
 
 TDemand (const TDemand &)
 
 TDemand (TDemand &&) noexcept=default
 
 ~TDemand () 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
 
TDemandHitGetDemandHit (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
 
TDemandoperator= (const TDemand &)
 
TDemandoperator= (TDemand &&) noexcept=default
 
void Print (Option_t *opt="") const override
 
void Print (std::ostream &out) const override
 

Static Public Member Functions

static TVector3 GetPosition (const TDemandHit &)
 
static TVector3 GetPosition (int DetNbr)
 
static bool SetCoreWave ()
 

Private Attributes

std::vector< TDetectorHit * > fHits
 

Static Private Attributes

static bool fSetCoreWave
 
static const std::array< double, 6 > fXPositions = {55.5, 43.5, -43.5, -55.5, -43.5, 43.5}
 
static const std::array< double, 6 > fYPositions = {0, 45.5, 45.5, 0, -45.5, -45.5}
 
static const std::array< double, 6 > fZPositions = {93.9, 93.9, 93.9, 93.9, 93.9, 93.9}
 
+ Inheritance diagram for TDemand:
+ Collaboration diagram for TDemand:

Constructor & Destructor Documentation

◆ TDemand() [1/3]

TDemand::TDemand ( )

Definition at line 26 of file TDemand.cxx.

References TDetector::Clear().

◆ TDemand() [2/3]

TDemand::TDemand ( const TDemand & rhs)

Definition at line 31 of file TDemand.cxx.

References Copy().

◆ TDemand() [3/3]

TDemand::TDemand ( TDemand && )
defaultnoexcept

◆ ~TDemand()

TDemand::~TDemand ( )
overridedefault

Member Function Documentation

◆ AddFragment()

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

!

Reimplemented from TDetector.

Definition at line 60 of file TDemand.cxx.

References TDetector::AddHit().

◆ AddHit()

◆ BuildHits()

void TDemand::BuildHits ( )
inlineoverridevirtual

!

Reimplemented from TDetector.

Definition at line 34 of file TDemand.h.

◆ Clear()

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

void TDemand::Copy ( TObject & rhs) const
override

!

Definition at line 36 of file TDemand.cxx.

References TDetector::Copy().

Referenced by TDemand(), and operator=().

◆ GetDemandHit()

TDemandHit * TDemand::GetDemandHit ( const int & i) const
inline

Definition at line 27 of file TDemand.h.

References TDetector::GetHit().

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ GetPosition() [1/2]

TVector3 TDemand::GetPosition ( const TDemandHit & hit)
static

!

Definition at line 66 of file TDemand.cxx.

References TDetectorHit::GetDetector(), and GetPosition().

◆ GetPosition() [2/2]

TVector3 TDemand::GetPosition ( int DetNbr)
static

!

Definition at line 71 of file TDemand.cxx.

References fXPositions, fYPositions, and fZPositions.

Referenced by GetPosition(), and TDemandHit::GetPosition().

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

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

!

Definition at line 54 of file TDemand.cxx.

References Copy().

◆ operator=() [2/2]

TDemand & TDemand::operator= ( TDemand && )
defaultnoexcept

◆ Print() [1/2]

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

!

Prints out TDemand members, currently shows only multiplicity.

Definition at line 41 of file TDemand.cxx.

References Print().

Referenced by Print().

◆ Print() [2/2]

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

!

Reimplemented from TDetector.

Definition at line 47 of file TDemand.cxx.

References TDetector::GetMultiplicity().

◆ SetCoreWave()

static bool TDemand::SetCoreWave ( )
inlinestatic

!

Definition at line 45 of file TDemand.h.

References fSetCoreWave.

Member Data Documentation

◆ fHits

◆ fSetCoreWave

bool TDemand::fSetCoreWave
staticprivate

! Flag for Waveforms ON/OFF

Definition at line 37 of file TDemand.h.

Referenced by SetCoreWave().

◆ fXPositions

const std::array< double, 6 > TDemand::fXPositions = {55.5, 43.5, -43.5, -55.5, -43.5, 43.5}
staticprivate

Definition at line 22 of file TDemand.h.

Referenced by GetPosition().

◆ fYPositions

const std::array< double, 6 > TDemand::fYPositions = {0, 45.5, 45.5, 0, -45.5, -45.5}
staticprivate

Definition at line 23 of file TDemand.h.

Referenced by GetPosition().

◆ fZPositions

const std::array< double, 6 > TDemand::fZPositions = {93.9, 93.9, 93.9, 93.9, 93.9, 93.9}
staticprivate

Definition at line 24 of file TDemand.h.

Referenced by GetPosition().