AliRoot Core  3dc7879 (3dc7879)
AliEMCALTriggerSTUDCSConfig Class Reference

EMCal trigger STU DCS Config. More...

#include <AliEMCALTriggerSTUDCSConfig.h>

Inheritance diagram for AliEMCALTriggerSTUDCSConfig:

Classes

class  AliEMCALTriggerSTUTRUErrorCount
 EMCal trigger STU error count handling. More...
 

Public Member Functions

 AliEMCALTriggerSTUDCSConfig ()
 Default constructor. More...
 
virtual ~AliEMCALTriggerSTUDCSConfig ()
 Destructor. More...
 
bool operator== (const AliEMCALTriggerSTUDCSConfig &other) const
 Equalty operator. More...
 
std::string ToJSON () const
 Serialize object to JSON format. More...
 
void SetG (Int_t vzpar, Int_t ithresh, Int_t val)
 
void SetJ (Int_t vzpar, Int_t ithresh, Int_t val)
 
void SetRawData (Int_t rd)
 
void SetRegion (Int_t rg)
 
void SetFw (Int_t fv)
 
void SetPHOSScale (int iscale, int val)
 
void SetTRUErrorCounts (Int_t itru, Int_t itime, ULong64_t errorcounts)
 Set TRU error counts. More...
 
void SetPatchSize (Int_t size)
 
void SetMedianMode (Int_t mode)
 
Int_t GetG (int vzpar, int ithresh) const
 
Int_t GetJ (int vzpar, int ithresh) const
 
Int_t GetRawData () const
 
Int_t GetRegion () const
 
Int_t GetFw () const
 
Int_t GetPHOSScale (Int_t iscale) const
 
Int_t GetPatchSize () const
 
Int_t GetMedianMode () const
 
void GetSegmentation (TVector2 &v1, TVector2 &v2, TVector2 &v3, TVector2 &v4) const
 Get Segmentation. More...
 
TClonesArray * GetErrorCountsForTRU (Int_t itru) const
 
 AliEMCALTriggerSTUDCSConfig (const AliEMCALTriggerSTUDCSConfig &cd)
 Copy constructor. More...
 

Protected Member Functions

AliEMCALTriggerSTUDCSConfigoperator= (const AliEMCALTriggerSTUDCSConfig &cd)
 

Private Attributes

Int_t fG [3][2]
 GA,B,C. More...
 
Int_t fJ [3][2]
 JA,B,C. More...
 
Int_t fGetRawData
 GetRawData. More...
 
Int_t fRegion
 Region. More...
 
Int_t fFw
 Firmware version. More...
 
Int_t fPHOSScale [4]
 PHOS scale factors. More...
 
Int_t fPatchSize
 Jet patch size: 0 for 8x8 and 2 for 16x16. More...
 
Int_t fMedian
 1 in case of using EMCAL/DCAL for estimating the median More...
 
TClonesArray * fTRUErrorCounts [68]
 TRU error counts. More...
 

Friends

std::ostream & operator<< (std::ostream &stream, const AliEMCALTriggerSTUDCSConfig &config)
 Streaming operator. More...
 

Detailed Description

EMCal trigger STU DCS Config.

EMCAL STU DCS parameters to be stored in OCDB Add more comment

Author
: R. GUERNANE LPSC Grenoble CNRS/IN2P3

Definition at line 24 of file AliEMCALTriggerSTUDCSConfig.h.

Constructor & Destructor Documentation

AliEMCALTriggerSTUDCSConfig::AliEMCALTriggerSTUDCSConfig ( )

Default constructor.

Definition at line 39 of file AliEMCALTriggerSTUDCSConfig.cxx.

Referenced by GetMedianMode().

AliEMCALTriggerSTUDCSConfig::~AliEMCALTriggerSTUDCSConfig ( )
virtual

Destructor.

Definition at line 106 of file AliEMCALTriggerSTUDCSConfig.cxx.

AliEMCALTriggerSTUDCSConfig::AliEMCALTriggerSTUDCSConfig ( const AliEMCALTriggerSTUDCSConfig cd)

Copy constructor.

Definition at line 62 of file AliEMCALTriggerSTUDCSConfig.cxx.

Member Function Documentation

TClonesArray * AliEMCALTriggerSTUDCSConfig::GetErrorCountsForTRU ( Int_t  itru) const
Returns
time-dependent error counts for a given TRU.

Definition at line 153 of file AliEMCALTriggerSTUDCSConfig.cxx.

Referenced by AliEMCALTriggerSTUDCSConfig(), and GetMedianMode().

Int_t AliEMCALTriggerSTUDCSConfig::GetFw ( ) const
inline
Int_t AliEMCALTriggerSTUDCSConfig::GetG ( int  vzpar,
int  ithresh 
) const
inline
Int_t AliEMCALTriggerSTUDCSConfig::GetJ ( int  vzpar,
int  ithresh 
) const
inline
Int_t AliEMCALTriggerSTUDCSConfig::GetMedianMode ( ) const
inline
Int_t AliEMCALTriggerSTUDCSConfig::GetPatchSize ( ) const
inline

Definition at line 108 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by AliEMCALTriggerSTUDCSConfig().

Int_t AliEMCALTriggerSTUDCSConfig::GetPHOSScale ( Int_t  iscale) const
inline

Definition at line 107 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by AliEMCALTriggerSTUDCSConfig().

Int_t AliEMCALTriggerSTUDCSConfig::GetRawData ( ) const
inline
Int_t AliEMCALTriggerSTUDCSConfig::GetRegion ( ) const
inline
void AliEMCALTriggerSTUDCSConfig::GetSegmentation ( TVector2 &  v1,
TVector2 &  v2,
TVector2 &  v3,
TVector2 &  v4 
) const
AliEMCALTriggerSTUDCSConfig& AliEMCALTriggerSTUDCSConfig::operator= ( const AliEMCALTriggerSTUDCSConfig cd)
protected

Referenced by GetMedianMode().

bool AliEMCALTriggerSTUDCSConfig::operator== ( const AliEMCALTriggerSTUDCSConfig other) const

Equalty operator.

Checks whether the two STU DCS configurations are the same. For equalty all setting must be the same. Error counters are not considered.

Definition at line 187 of file AliEMCALTriggerSTUDCSConfig.cxx.

void AliEMCALTriggerSTUDCSConfig::SetG ( Int_t  vzpar,
Int_t  ithresh,
Int_t  val 
)
inline
void AliEMCALTriggerSTUDCSConfig::SetJ ( Int_t  vzpar,
Int_t  ithresh,
Int_t  val 
)
inline
void AliEMCALTriggerSTUDCSConfig::SetRawData ( Int_t  rd)
inline
void AliEMCALTriggerSTUDCSConfig::SetTRUErrorCounts ( Int_t  itru,
Int_t  itime,
ULong64_t  errorcounts 
)
std::string AliEMCALTriggerSTUDCSConfig::ToJSON ( ) const

Serialize object to JSON format.

Returns
JSON-serialized TRU DCS config object

Definition at line 209 of file AliEMCALTriggerSTUDCSConfig.cxx.

Referenced by AliEMCALTriggerDCSConfig::ToJSON().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const AliEMCALTriggerSTUDCSConfig config 
)
friend

Streaming operator.

Printing all STU DCS settings on the output stream, except for the error counters

Definition at line 195 of file AliEMCALTriggerSTUDCSConfig.cxx.

Member Data Documentation

Int_t AliEMCALTriggerSTUDCSConfig::fFw
private

Firmware version.

Definition at line 125 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by GetFw(), GetSegmentation(), operator<<(), operator==(), SetFw(), and ToJSON().

Int_t AliEMCALTriggerSTUDCSConfig::fG[3][2]
private
Int_t AliEMCALTriggerSTUDCSConfig::fGetRawData
private

GetRawData.

Definition at line 123 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by GetRawData(), operator<<(), operator==(), SetRawData(), and ToJSON().

Int_t AliEMCALTriggerSTUDCSConfig::fJ[3][2]
private
Int_t AliEMCALTriggerSTUDCSConfig::fMedian
private

1 in case of using EMCAL/DCAL for estimating the median

Definition at line 128 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by GetMedianMode(), operator<<(), operator==(), SetMedianMode(), and ToJSON().

Int_t AliEMCALTriggerSTUDCSConfig::fPatchSize
private

Jet patch size: 0 for 8x8 and 2 for 16x16.

Definition at line 127 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by GetPatchSize(), operator==(), and SetPatchSize().

Int_t AliEMCALTriggerSTUDCSConfig::fPHOSScale[4]
private

PHOS scale factors.

Definition at line 126 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by AliEMCALTriggerSTUDCSConfig(), GetPHOSScale(), operator<<(), operator==(), SetPHOSScale(), and ToJSON().

Int_t AliEMCALTriggerSTUDCSConfig::fRegion
private

Region.

Definition at line 124 of file AliEMCALTriggerSTUDCSConfig.h.

Referenced by GetRegion(), operator<<(), operator==(), SetRegion(), and ToJSON().

TClonesArray* AliEMCALTriggerSTUDCSConfig::fTRUErrorCounts[68]
private

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