PandaRoot
BSEmcDigi Class Reference

represents the reconstructed hit of one emc crystal More...

#include <BSEmcDigi.h>

Inheritance diagram for BSEmcDigi:

Public Types

enum  eGAIN : Int_t { eGAIN::kNONE, eGAIN::kHIGH, eGAIN::kLOW }
 

Public Member Functions

 BSEmcDigi ()
 
 BSEmcDigi (Int_t t_id, Double_t t_energy, Float_t t_time)
 
 BSEmcDigi (const BSEmcDigi &)
 
virtual ~BSEmcDigi ()
 
virtual Bool_t operator== (const BSEmcDigi &t_otherDigi) const
 
virtual Bool_t operator!= (const BSEmcDigi &t_otherDigi) const
 
virtual Bool_t operator< (const BSEmcDigi &t_otherDigi) const
 
virtual Bool_t equal (FairTimeStamp *t_data)
 
virtual void Print (const Option_t *t_opt="") const
 
void SetEnergy (Double_t t_energy)
 
virtual Double_t GetEnergy () const
 
void SetRawEnergy (Double_t t_energy)
 
Double_t GetRawEnergy () const
 
void SetDetectorId (Int_t t_detectorId)
 
Int_t GetDetectorId () const
 
void SetGainType (eGAIN t_type)
 
eGAIN GetGainType () const
 
void SetDCNumber (Int_t t_dcId)
 
Int_t GetDCNumber () const
 

Protected Member Functions

 ClassDef (BSEmcDigi, 5)
 

Protected Attributes

Double_t fRawEnergyBin {-1}
 
Double_t fEnergy {-1}
 
Int_t fDetectorId {-1}
 
eGAIN fGain {eGAIN::kNONE}
 
Int_t fDCNumber {-1}
 

Friends

std::ostream & operator<< (std::ostream &t_out, const BSEmcDigi &t_digi)
 

Detailed Description

represents the reconstructed hit of one emc crystal

Author
Xiaorong Shi Lawrence Livermore National Lab
Steve Playfer University of Edinburgh
Stephen Gowdy University of Edinburgh
Dima Melnichuk - adaption for PANDA

Definition at line 47 of file BSEmcDigi.h.

Member Enumeration Documentation

◆ eGAIN

enum BSEmcDigi::eGAIN : Int_t
strong
Enumerator
kNONE 
kHIGH 
kLOW 

Definition at line 56 of file BSEmcDigi.h.

56 : Int_t { kNONE, kHIGH, kLOW };

Constructor & Destructor Documentation

◆ BSEmcDigi() [1/3]

BSEmcDigi::BSEmcDigi ( )

Default constructor

◆ BSEmcDigi() [2/3]

BSEmcDigi::BSEmcDigi ( Int_t  t_id,
Double_t  t_energy,
Float_t  t_time 
)

◆ BSEmcDigi() [3/3]

BSEmcDigi::BSEmcDigi ( const BSEmcDigi )

◆ ~BSEmcDigi()

virtual BSEmcDigi::~BSEmcDigi ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

BSEmcDigi::ClassDef ( BSEmcDigi  ,
 
)
protected

◆ equal()

virtual Bool_t BSEmcDigi::equal ( FairTimeStamp *  t_data)
virtual

◆ GetDCNumber()

Int_t BSEmcDigi::GetDCNumber ( ) const
inline

Definition at line 88 of file BSEmcDigi.h.

References fDCNumber.

88 { return fDCNumber; };
Int_t fDCNumber
Definition: BSEmcDigi.h:95

◆ GetDetectorId()

Int_t BSEmcDigi::GetDetectorId ( ) const
inline

Definition at line 82 of file BSEmcDigi.h.

References fDetectorId.

82 { return fDetectorId; };
Int_t fDetectorId
Definition: BSEmcDigi.h:93

◆ GetEnergy()

virtual Double_t BSEmcDigi::GetEnergy ( ) const
inlinevirtual

Definition at line 76 of file BSEmcDigi.h.

References fEnergy.

76 { return fEnergy; };
Double_t fEnergy
Definition: BSEmcDigi.h:92

◆ GetGainType()

eGAIN BSEmcDigi::GetGainType ( ) const
inline

Definition at line 85 of file BSEmcDigi.h.

References fGain.

85 { return fGain; }
eGAIN fGain
Definition: BSEmcDigi.h:94

◆ GetRawEnergy()

Double_t BSEmcDigi::GetRawEnergy ( ) const
inline

Definition at line 79 of file BSEmcDigi.h.

References fRawEnergyBin.

79 { return fRawEnergyBin; }
Double_t fRawEnergyBin
Definition: BSEmcDigi.h:91

◆ operator!=()

virtual Bool_t BSEmcDigi::operator!= ( const BSEmcDigi t_otherDigi) const
virtual

◆ operator<()

virtual Bool_t BSEmcDigi::operator< ( const BSEmcDigi t_otherDigi) const
virtual

◆ operator==()

virtual Bool_t BSEmcDigi::operator== ( const BSEmcDigi t_otherDigi) const
virtual

◆ Print()

virtual void BSEmcDigi::Print ( const Option_t *  t_opt = "") const
virtual

Output to screen

◆ SetDCNumber()

void BSEmcDigi::SetDCNumber ( Int_t  t_dcId)
inline

Definition at line 87 of file BSEmcDigi.h.

References fDCNumber.

87 { fDCNumber = t_dcId; }
Int_t fDCNumber
Definition: BSEmcDigi.h:95

◆ SetDetectorId()

void BSEmcDigi::SetDetectorId ( Int_t  t_detectorId)
inline

Definition at line 81 of file BSEmcDigi.h.

References fDetectorId.

81 { fDetectorId = t_detectorId; }
Int_t fDetectorId
Definition: BSEmcDigi.h:93

◆ SetEnergy()

void BSEmcDigi::SetEnergy ( Double_t  t_energy)
inline

Definition at line 75 of file BSEmcDigi.h.

References fEnergy.

75 { fEnergy = t_energy; };
Double_t fEnergy
Definition: BSEmcDigi.h:92

◆ SetGainType()

void BSEmcDigi::SetGainType ( eGAIN  t_type)
inline

Definition at line 84 of file BSEmcDigi.h.

References fGain.

Referenced by BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Exec().

84 { fGain = t_type; }
eGAIN fGain
Definition: BSEmcDigi.h:94

◆ SetRawEnergy()

void BSEmcDigi::SetRawEnergy ( Double_t  t_energy)
inline

Definition at line 78 of file BSEmcDigi.h.

References fRawEnergyBin.

78 { fRawEnergyBin = t_energy; };
Double_t fRawEnergyBin
Definition: BSEmcDigi.h:91

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  t_out,
const BSEmcDigi t_digi 
)
friend

Definition at line 49 of file BSEmcDigi.h.

50  {
51  t_out << "BSEmc Digi in crystal: " << t_digi.GetDetectorId() << " energy: " << t_digi.GetEnergy() << " timestamp: " << t_digi.GetTimeStamp();
52  return t_out;
53  }
Int_t GetDetectorId() const
Definition: BSEmcDigi.h:82
virtual Double_t GetEnergy() const
Definition: BSEmcDigi.h:76

Member Data Documentation

◆ fDCNumber

Int_t BSEmcDigi::fDCNumber {-1}
protected

Definition at line 95 of file BSEmcDigi.h.

Referenced by GetDCNumber(), and SetDCNumber().

◆ fDetectorId

Int_t BSEmcDigi::fDetectorId {-1}
protected

Definition at line 93 of file BSEmcDigi.h.

Referenced by GetDetectorId(), and SetDetectorId().

◆ fEnergy

Double_t BSEmcDigi::fEnergy {-1}
protected

Definition at line 92 of file BSEmcDigi.h.

Referenced by GetEnergy(), and SetEnergy().

◆ fGain

eGAIN BSEmcDigi::fGain {eGAIN::kNONE}
protected

Definition at line 94 of file BSEmcDigi.h.

Referenced by GetGainType(), and SetGainType().

◆ fRawEnergyBin

Double_t BSEmcDigi::fRawEnergyBin {-1}
protected

Definition at line 91 of file BSEmcDigi.h.

Referenced by GetRawEnergy(), and SetRawEnergy().


The documentation for this class was generated from the following file: