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

Detailed Description

Definition at line 19 of file TGRSIMnemonic.h.

Public Types

enum class  EMnemonic {
  kA , kB , kC , kD ,
  kE , kF , kG , kH ,
  kI , kJ , kK , kL ,
  kM , kN , kO , kP ,
  kQ , kR , kS , kT ,
  kU , kV , kW , kX ,
  kY , kZ , kClear
}
 
enum class  ESystem {
  kTigress , kSharc , kTriFoil , kRF ,
  kCSM , kSiLi , kSiLiS3 , kGeneric ,
  kS3 , kBambino , kTip , kGriffin ,
  kSceptar , kPaces , kLaBr , kTAC ,
  kZeroDegree , kDescant , kGriffinBgo , kLaBrBgo ,
  kFipps , kBgo , kTdrClover , kTdrCloverBgo ,
  kTdrTigress , kTdrTigressBgo , kTdrSiLi , kTdrPlastic ,
  kEmma , kEmmaS3 , kTrific , kSharc2 ,
  kRcmp , kAries , kClear
}
 

Public Member Functions

 TGRSIMnemonic ()
 
 TGRSIMnemonic (const char *name)
 
 TGRSIMnemonic (const TGRSIMnemonic &)=default
 
 TGRSIMnemonic (TGRSIMnemonic &&) noexcept=default
 
 ~TGRSIMnemonic () override=default
 
virtual int16_t ArrayPosition () const
 
virtual EMnemonic ArraySubPosition () const
 
virtual std::string ArraySubPositionString () const
 
void Clear (Option_t *opt="") override
 
virtual EMnemonic CollectedCharge () const
 
virtual std::string CollectedChargeString () const
 
void EnumerateDigitizer (TPriorityValue< std::string > &digitizerName, TPriorityValue< EDigitizer > &digitizerType, TPriorityValue< int > &timeStampUnit) override
 
TClass * GetClassType () const override
 
const char * GetName () const override
 
double GetTime (Long64_t timestamp, Float_t cfd, double energy, const TChannel *channel) const override
 
int NumericArraySubPosition () const override
 
TGRSIMnemonicoperator= (const TGRSIMnemonic &)=default
 
TGRSIMnemonicoperator= (TGRSIMnemonic &&) noexcept=default
 
virtual EMnemonic OutputSensor () const
 
virtual std::string OutputSensorString () const
 
void Parse (std::string *name) override
 
virtual void Parse (const char *name)
 
void Print (Option_t *opt="") const override
 
void Print (std::ostringstream &str) const
 
virtual int16_t Segment () const
 
virtual void Segment (int16_t val)
 
virtual void SetClassType (TClass *classType) const
 
void SetName (const char *val)
 
void SetName (const std::string &val)
 
virtual void SetRFMnemonic (std::string *name)
 
virtual EMnemonic SubSystem () const
 
virtual std::string SubSystemString () const
 
ESystem System () const
 
virtual std::string SystemString () const
 

Private Member Functions

void EnumerateMnemonic (std::string mnemonic_word, EMnemonic &mnemonic_enum)
 
void EnumerateSystem ()
 

Private Attributes

int16_t fArrayPosition
 
EMnemonic fArraySubPosition
 
std::string fArraySubPositionString
 
TClass * fClassType
 
EMnemonic fCollectedCharge
 
std::string fCollectedChargeString
 
std::string fName
 
EMnemonic fOutputSensor
 
std::string fOutputSensorString
 
int16_t fSegment
 
EMnemonic fSubSystem
 
std::string fSubSystemString
 
ESystem fSystem
 
std::string fSystemString
 

Static Private Attributes

static bool fPrint = true
 
+ Inheritance diagram for TGRSIMnemonic:
+ Collaboration diagram for TGRSIMnemonic:

Member Enumeration Documentation

◆ EMnemonic

enum class TMnemonic::EMnemonic
stronginherited
Enumerator
kA 
kB 
kC 
kD 
kE 
kF 
kG 
kH 
kI 
kJ 
kK 
kL 
kM 
kN 
kO 
kP 
kQ 
kR 
kS 
kT 
kU 
kV 
kW 
kX 
kY 
kZ 
kClear 

Definition at line 33 of file TMnemonic.h.

◆ ESystem

enum class TGRSIMnemonic::ESystem
strong
Enumerator
kTigress 
kSharc 
kTriFoil 
kRF 
kCSM 
kSiLi 
kSiLiS3 
kGeneric 
kS3 
kBambino 
kTip 
kGriffin 
kSceptar 
kPaces 
kLaBr 
kTAC 
kZeroDegree 
kDescant 
kGriffinBgo 
kLaBrBgo 
kFipps 
kBgo 
kTdrClover 
kTdrCloverBgo 
kTdrTigress 
kTdrTigressBgo 
kTdrSiLi 
kTdrPlastic 
kEmma 
kEmmaS3 
kTrific 
kSharc2 
kRcmp 
kAries 
kClear 

Definition at line 32 of file TGRSIMnemonic.h.

Constructor & Destructor Documentation

◆ TGRSIMnemonic() [1/4]

TGRSIMnemonic::TGRSIMnemonic ( )
inline

Definition at line 21 of file TGRSIMnemonic.h.

References Clear().

◆ TGRSIMnemonic() [2/4]

TGRSIMnemonic::TGRSIMnemonic ( const TGRSIMnemonic & )
default

◆ TGRSIMnemonic() [3/4]

TGRSIMnemonic::TGRSIMnemonic ( TGRSIMnemonic && )
defaultnoexcept

◆ TGRSIMnemonic() [4/4]

TGRSIMnemonic::TGRSIMnemonic ( const char * name)
inlineexplicit

Definition at line 26 of file TGRSIMnemonic.h.

References TMnemonic::Parse().

◆ ~TGRSIMnemonic()

TGRSIMnemonic::~TGRSIMnemonic ( )
overridedefault

Member Function Documentation

◆ ArrayPosition()

virtual int16_t TMnemonic::ArrayPosition ( ) const
inlinevirtualinherited

◆ ArraySubPosition()

virtual EMnemonic TMnemonic::ArraySubPosition ( ) const
inlinevirtualinherited

◆ ArraySubPositionString()

virtual std::string TMnemonic::ArraySubPositionString ( ) const
inlinevirtualinherited

◆ Clear()

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

Definition at line 31 of file TGRSIMnemonic.cxx.

References TMnemonic::Clear(), fSystem, and kClear.

Referenced by TGRSIMnemonic().

◆ CollectedCharge()

virtual EMnemonic TMnemonic::CollectedCharge ( ) const
inlinevirtualinherited

◆ CollectedChargeString()

virtual std::string TMnemonic::CollectedChargeString ( ) const
inlinevirtualinherited

Definition at line 72 of file TMnemonic.h.

References TMnemonic::fCollectedChargeString.

Referenced by TCSM::AddFragment().

◆ EnumerateDigitizer()

void TGRSIMnemonic::EnumerateDigitizer ( TPriorityValue< std::string > & digitizerName,
TPriorityValue< EDigitizer > & digitizerType,
TPriorityValue< int > & timeStampUnit )
overridevirtual

◆ EnumerateMnemonic()

◆ EnumerateSystem()

◆ GetClassType()

TClass * TGRSIMnemonic::GetClassType ( ) const
overridevirtual

◆ GetName()

const char * TMnemonic::GetName ( ) const
inlineoverrideinherited

Definition at line 103 of file TMnemonic.h.

References TMnemonic::fName.

◆ GetTime()

double TGRSIMnemonic::GetTime ( Long64_t timestamp,
Float_t cfd,
double energy,
const TChannel * channel ) const
overridevirtual

◆ NumericArraySubPosition()

int TGRSIMnemonic::NumericArraySubPosition ( ) const
overridevirtual

This function translates the crystal color to an index B - Blue - 0, G - Green - 1, R - Red - 2, W - White - 3, default - 5 Except for the LaBr BGOs which use A - 0, B - 1, C - 2 and a default of 5

Reimplemented from TMnemonic.

Definition at line 242 of file TGRSIMnemonic.cxx.

References TMnemonic::ArraySubPosition(), TMnemonic::kA, TMnemonic::kB, TMnemonic::kC, TMnemonic::kG, kLaBrBgo, TMnemonic::kR, TMnemonic::kW, and System().

◆ operator=() [1/2]

TGRSIMnemonic & TGRSIMnemonic::operator= ( const TGRSIMnemonic & )
default

◆ operator=() [2/2]

TGRSIMnemonic & TGRSIMnemonic::operator= ( TGRSIMnemonic && )
defaultnoexcept

◆ OutputSensor()

virtual EMnemonic TMnemonic::OutputSensor ( ) const
inlinevirtualinherited

◆ OutputSensorString()

virtual std::string TMnemonic::OutputSensorString ( ) const
inlinevirtualinherited

Definition at line 73 of file TMnemonic.h.

References TMnemonic::fOutputSensorString.

◆ Parse() [1/2]

void TGRSIMnemonic::Parse ( std::string * name)
overridevirtual

◆ Parse() [2/2]

void TMnemonic::Parse ( const char * name)
virtualinherited

Definition at line 91 of file TMnemonic.cxx.

References TMnemonic::Parse().

◆ Print() [1/2]

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

Definition at line 163 of file TGRSIMnemonic.cxx.

References TMnemonic::Print().

◆ Print() [2/2]

◆ Segment() [1/2]

virtual int16_t TMnemonic::Segment ( ) const
inlinevirtualinherited

Definition at line 67 of file TMnemonic.h.

References TMnemonic::fSegment.

Referenced by Parse().

◆ Segment() [2/2]

virtual void TMnemonic::Segment ( int16_t val)
inlinevirtualinherited

Definition at line 86 of file TMnemonic.h.

References TMnemonic::fSegment.

◆ SetClassType()

virtual void TMnemonic::SetClassType ( TClass * classType) const
inlinevirtualinherited

Definition at line 92 of file TMnemonic.h.

References TMnemonic::fClassType.

Referenced by GetClassType(), and TChannel::SetClassType().

◆ SetName() [1/2]

void TMnemonic::SetName ( const char * val)
inlineinherited

Definition at line 101 of file TMnemonic.h.

References TMnemonic::fName.

Referenced by TMnemonic::Parse().

◆ SetName() [2/2]

void TMnemonic::SetName ( const std::string & val)
inlineinherited

Definition at line 102 of file TMnemonic.h.

References TMnemonic::fName.

◆ SetRFMnemonic()

◆ SubSystem()

◆ SubSystemString()

virtual std::string TMnemonic::SubSystemString ( ) const
inlinevirtualinherited

Definition at line 70 of file TMnemonic.h.

References TMnemonic::fSubSystemString.

Referenced by TTipHit::SetUpNumbering().

◆ System()

ESystem TGRSIMnemonic::System ( ) const
inline

Definition at line 70 of file TGRSIMnemonic.h.

References fSystem.

Referenced by GetClassType(), NumericArraySubPosition(), and TGRSIDetectorInformation::Set().

◆ SystemString()

virtual std::string TMnemonic::SystemString ( ) const
inlinevirtualinherited

Definition at line 69 of file TMnemonic.h.

References TMnemonic::fSystemString.

Referenced by EnumerateSystem().

Member Data Documentation

◆ fArrayPosition

◆ fArraySubPosition

EMnemonic TMnemonic::fArraySubPosition
privateinherited

◆ fArraySubPositionString

std::string TMnemonic::fArraySubPositionString
privateinherited

◆ fClassType

TClass* TMnemonic::fClassType
mutableprivateinherited

! TGRSIDetector Type that this mnemonic represents

Definition at line 120 of file TMnemonic.h.

Referenced by THILMnemonic::GetClassType(), TILLMnemonic::GetClassType(), TMnemonic::GetClassType(), TTdrMnemonic::GetClassType(), and TMnemonic::SetClassType().

◆ fCollectedCharge

EMnemonic TMnemonic::fCollectedCharge
privateinherited

◆ fCollectedChargeString

std::string TMnemonic::fCollectedChargeString
privateinherited

◆ fName

std::string TMnemonic::fName
privateinherited

Definition at line 106 of file TMnemonic.h.

Referenced by TMnemonic::GetName(), TMnemonic::SetName(), and TMnemonic::SetName().

◆ fOutputSensor

EMnemonic TMnemonic::fOutputSensor
privateinherited

◆ fOutputSensorString

◆ fPrint

bool TMnemonic::fPrint = true
staticprivateinherited

Definition at line 124 of file TMnemonic.h.

Referenced by TMnemonic::EnumerateDigitizer().

◆ fSegment

◆ fSubSystem

EMnemonic TMnemonic::fSubSystem
privateinherited

◆ fSubSystemString

◆ fSystem

ESystem TGRSIMnemonic::fSystem
private

Definition at line 86 of file TGRSIMnemonic.h.

Referenced by Clear(), EnumerateSystem(), Parse(), and System().

◆ fSystemString