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

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

Definition at line 27 of file TDescant.h.

Public Member Functions

 TDescant ()
 
 TDescant (const TDescant &)
 
 ~TDescant () override
 
void AddFragment (const std::shared_ptr< const TFragment > &, TChannel *) override
 
void BuildHits () override
 
void Clear (Option_t *opt="") override
 
virtual void ClearTransients ()
 
void Copy (TObject &) const override
 
TDescantHitGetDescantHit (const Int_t &i=0) const
 
virtual TDetectorHitGetHit (const int &) const
 
virtual const std::vector< TDetectorHit * > & GetHitVector () const
 
virtual Short_t GetMultiplicity () const
 
bool Hit ()
 
TDescantoperator= (const TDescant &)
 
void Print (Option_t *opt="") const override
 
void Print (std::ostream &out) const override
 
void SetHit (bool flag=true)
 
void SetWave (bool flag)
 

Static Public Member Functions

static TVector3 GetPosition (int DetNbr, double dist=222)
 
static bool SetWave ()
 

Protected Attributes

std::vector< TDetectorHit * > fHits
 

Private Attributes

bool fHitFlag
 

Static Private Attributes

static bool fSetWave = false
 
static TVector3 gAncillaryPosition [9]
 
static TVector3 gPosition [71]
 

#include <TDescant.h>

+ Inheritance diagram for TDescant:
+ Collaboration diagram for TDescant:

Constructor & Destructor Documentation

◆ TDescant() [1/2]

TDescant::TDescant ( )

Default Constructor

Definition at line 77 of file TDescant.cxx.

References Clear().

◆ TDescant() [2/2]

TDescant::TDescant ( const TDescant rhs)

Definition at line 101 of file TDescant.cxx.

References Copy().

◆ ~TDescant()

TDescant::~TDescant ( )
override

Default Destructor

Definition at line 86 of file TDescant.cxx.

Member Function Documentation

◆ AddFragment()

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

!

Builds the DESCANT Hits directly from the TFragment. Basically, loops through the data for an event and sets observables. This is done for both DESCANT and it's suppressors.

Reimplemented from TDetector.

Definition at line 132 of file TDescant.cxx.

References TDetector::fHits.

◆ BuildHits()

void TDescant::BuildHits ( )
inlineoverridevirtual

!

Reimplemented from TDetector.

Definition at line 41 of file TDescant.h.

◆ Clear()

void TDescant::Clear ( Option_t *  opt = "")
override

!

Clears all of the hits

Definition at line 106 of file TDescant.cxx.

References TDetector::Clear(), and fHitFlag.

Referenced by TDescant().

◆ ClearTransients()

void TDetector::ClearTransients ( )
virtualinherited

!

Reimplemented in TS3, TTigress, TTrific, and TGriffin.

Definition at line 63 of file TDetector.cxx.

References TDetector::fHits.

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

◆ Copy()

void TDescant::Copy ( TObject &  rhs) const
overridevirtual

!

Reimplemented from TDetector.

Definition at line 91 of file TDescant.cxx.

References TDetector::Copy(), and fSetWave.

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

◆ GetDescantHit()

TDescantHit* TDescant::GetDescantHit ( const Int_t &  i = 0) const
inline

Definition at line 34 of file TDescant.h.

References TDetector::GetHit().

◆ GetHit()

◆ GetHitVector()

◆ GetMultiplicity()

◆ GetPosition()

TVector3 TDescant::GetPosition ( int  DetNbr,
double  dist = 222 
)
static

!

Definition at line 145 of file TDescant.cxx.

References gAncillaryPosition, TRunInfo::GetDetectorInformation(), and gPosition.

Referenced by TDescantHit::GetPosition().

◆ Hit()

bool TDescant::Hit ( )
inline

!

Definition at line 52 of file TDescant.h.

References fHitFlag.

◆ operator=()

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

Definition at line 113 of file TDescant.cxx.

References Copy().

◆ Print() [1/2]

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

!

Prints out TDescant members, currently does little.

Definition at line 119 of file TDescant.cxx.

◆ Print() [2/2]

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

!

Reimplemented from TDetector.

Definition at line 125 of file TDescant.cxx.

References TDetector::fHits.

◆ SetHit()

void TDescant::SetHit ( bool  flag = true)
inline

!

Definition at line 53 of file TDescant.h.

References fHitFlag.

◆ SetWave() [1/2]

static bool TDescant::SetWave ( )
inlinestatic

!

Definition at line 50 of file TDescant.h.

References fSetWave.

◆ SetWave() [2/2]

void TDescant::SetWave ( bool  flag)
inline

!

Definition at line 51 of file TDescant.h.

References fSetWave.

Member Data Documentation

◆ fHitFlag

bool TDescant::fHitFlag
private

Is there a Descant hit?

Definition at line 47 of file TDescant.h.

Referenced by Clear(), Hit(), and SetHit().

◆ fHits

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

Definition at line 72 of file TDetector.h.

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

◆ fSetWave

bool TDescant::fSetWave = false
staticprivate

Flag for Waveforms ON/OFF.

Definition at line 46 of file TDescant.h.

Referenced by Copy(), and SetWave().

◆ gAncillaryPosition

TVector3 TDescant::gAncillaryPosition
staticprivate

!

Definition at line 56 of file TDescant.h.

Referenced by GetPosition().

◆ gPosition

TVector3 TDescant::gPosition
staticprivate
Initial value:
= {
TVector3(0.0, 0.0, 1.0), TVector3(98.6, 0.0, 490.2), TVector3(30.5, 93.8, 490.2),
TVector3(-79.8, 57.9, 490.2), TVector3(-79.8, -57.9, 490.2), TVector3(30.5, -93.8, 490.2),
TVector3(208.7, 0.0, 454.4), TVector3(140.9, 102.4, 468.7), TVector3(64.5, 198.5, 454.4),
TVector3(-53.8, 165.6, 468.7), TVector3(-168.8, 122.7, 454.4), TVector3(-174.2, 0.0, 468.7),
TVector3(-168.8, -122.7, 454.4), TVector3(-53.8, -165.6, 468.7), TVector3(64.5, -198.5, 454.4),
TVector3(140.9, -102.4, 468.7), TVector3(313.1, 0.0, 389.9), TVector3(256.9, 105.8, 415.7),
TVector3(180.0, 211.6, 415.7), TVector3(96.7, 297.7, 389.9), TVector3(-21.2, 277.0, 415.7),
TVector3(-145.6, 236.6, 415.7), TVector3(-253.3, 184.0, 389.9), TVector3(-270.0, 65.4, 415.7),
TVector3(-270.0, -65.4, 415.7), TVector3(-253.3, -184.0, 389.9), TVector3(-145.6, -236.6, 415.7),
TVector3(-21.2, -277.0, 415.7), TVector3(96.7, -297.7, 389.9), TVector3(180.0, -211.6, 415.7),
TVector3(256.9, -105.8, 415.7), TVector3(394.3, 0.0, 307.4), TVector3(356.2, 102.4, 335.6),
TVector3(291.3, 211.6, 346.9), TVector3(207.4, 307.1, 335.6), TVector3(121.9, 375.0, 307.4),
TVector3(12.7, 370.4, 335.6), TVector3(-111.3, 342.4, 346.9), TVector3(-228.0, 292.2, 335.6),
TVector3(-319.0, 231.8, 307.4), TVector3(-348.3, 126.5, 335.6), TVector3(-360.1, 0.0, 346.9),
TVector3(-348.3, -126.5, 335.6), TVector3(-319.0, -231.8, 307.4), TVector3(-228.0, -292.2, 335.6),
TVector3(-111.3, -342.4, 346.9), TVector3(12.7, -370.4, 335.6), TVector3(121.9, -375.0, 307.4),
TVector3(207.4, -307.1, 335.6), TVector3(291.3, -211.6, 346.9), TVector3(356.2, -102.4, 335.6),
TVector3(424.8, 93.8, 246.5), TVector3(377.5, 198.5, 260.9), TVector3(305.4, 297.7, 260.9),
TVector3(220.4, 375.0, 246.5), TVector3(42.1, 433.0, 246.5), TVector3(-72.1, 420.4, 260.9),
TVector3(-188.8, 382.5, 260.9), TVector3(-288.6, 325.6, 246.5), TVector3(-398.8, 173.8, 246.5),
TVector3(-422.1, 61.3, 260.9), TVector3(-422.1, -61.3, 260.9), TVector3(-398.8, -173.8, 246.5),
TVector3(-288.6, -325.6, 246.5), TVector3(-188.8, -382.5, 260.9), TVector3(-72.1, -420.4, 260.9),
TVector3(42.1, -433.0, 246.5), TVector3(220.4, -375.0, 246.5), TVector3(305.4, -297.7, 260.9),
TVector3(377.5, -198.5, 260.9), TVector3(424.8, -93.8, 246.5)}

!

Definition at line 55 of file TDescant.h.

Referenced by GetPosition().