AliPhysics  80ccde44 (80ccde44)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEMCALTriggerPatchADCInfoAP Class Reference

#include <AliEMCALTriggerPatchADCInfoAP.h>

Inheritance diagram for AliEMCALTriggerPatchADCInfoAP:

Public Member Functions

 AliEMCALTriggerPatchADCInfoAP ()
 
 AliEMCALTriggerPatchADCInfoAP (UChar_t patchsize)
 
 AliEMCALTriggerPatchADCInfoAP (const AliEMCALTriggerPatchADCInfoAP &ref)
 
AliEMCALTriggerPatchADCInfoAPoperator= (const AliEMCALTriggerPatchADCInfoAP &ref)
 
virtual ~AliEMCALTriggerPatchADCInfoAP ()
 
Int_t GetADC (UChar_t col, UChar_t row) const
 
Int_t GetSumADC () const
 
Int_t GetMaxADC () const
 
Int_t GetNFastorsContrib () const
 
UChar_t GetPatchSize () const
 
void SetPatchSize (UChar_t patchsize)
 
void SetADC (Int_t adc, UChar_t col, UChar_t row)
 

Private Attributes

UChar_t fPatchSize
 Size of the patch. More...
 
AliEMCALTriggerDataGrid< Int_tfADCValues
 underlying container with ADC data More...
 

Detailed Description

Definition at line 29 of file AliEMCALTriggerPatchADCInfoAP.h.

Constructor & Destructor Documentation

AliEMCALTriggerPatchADCInfoAP::AliEMCALTriggerPatchADCInfoAP ( )

Dummy constructor

Definition at line 19 of file AliEMCALTriggerPatchADCInfoAP.cxx.

AliEMCALTriggerPatchADCInfoAP::AliEMCALTriggerPatchADCInfoAP ( UChar_t  patchsize)

Main constructor, initializing patch size and data container for the ADC values

Parameters
[in]patchsizeSize of the trigger patch

Definition at line 26 of file AliEMCALTriggerPatchADCInfoAP.cxx.

AliEMCALTriggerPatchADCInfoAP::AliEMCALTriggerPatchADCInfoAP ( const AliEMCALTriggerPatchADCInfoAP ref)

Copy constructor

Parameters
[in]Reference for the copy

Definition at line 34 of file AliEMCALTriggerPatchADCInfoAP.cxx.

virtual AliEMCALTriggerPatchADCInfoAP::~AliEMCALTriggerPatchADCInfoAP ( )
inlinevirtual

Destructor, deleting underlying data container

Definition at line 60 of file AliEMCALTriggerPatchADCInfoAP.h.

Member Function Documentation

Int_t AliEMCALTriggerPatchADCInfoAP::GetADC ( UChar_t  col,
UChar_t  row 
) const

Get the ADC value at the given position in the patch. The position (col, row) is supposed to be relative to the starting position of the trigger patch.

Parameters
[in]colColoumn of the fastor postion relative to the patch starting position
[in]rowRow of the fastor position relative to the patch starting postition
Returns
Fastor ADC value at the given position of the patch

Definition at line 78 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Int_t AliEMCALTriggerPatchADCInfoAP::GetMaxADC ( ) const

Get the maximum FastOR ADC value within the trigger patch

Returns
Maximum FastOR ADC value in trigger patch

Definition at line 99 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Int_t AliEMCALTriggerPatchADCInfoAP::GetNFastorsContrib ( ) const

Get number of non-zero FastOR ADC values within a trigger patch (equivalent to contributing fastors).

Returns
Number of non-zero (contributing) FastORs

Definition at line 114 of file AliEMCALTriggerPatchADCInfoAP.cxx.

UChar_t AliEMCALTriggerPatchADCInfoAP::GetPatchSize ( ) const
inline

Get the size of the patch

Returns
Size of the patch

Definition at line 96 of file AliEMCALTriggerPatchADCInfoAP.h.

Int_t AliEMCALTriggerPatchADCInfoAP::GetSumADC ( ) const

Calculate sum of all FastOR ADC values connected

Returns
Sum of all FastOR ADC values

Definition at line 86 of file AliEMCALTriggerPatchADCInfoAP.cxx.

AliEMCALTriggerPatchADCInfoAP & AliEMCALTriggerPatchADCInfoAP::operator= ( const AliEMCALTriggerPatchADCInfoAP ref)

Assignment operator

Parameters
[in]refReference for the assignment
Returns

Definition at line 49 of file AliEMCALTriggerPatchADCInfoAP.cxx.

void AliEMCALTriggerPatchADCInfoAP::SetADC ( Int_t  adc,
UChar_t  col,
UChar_t  row 
)

Set ADC value for a given fastor position inside the trigger patch. The position (col, row) is supposed to be relative to the starting position of the trigger patch.

Parameters
ADCFastor ADC value for the given fastor position
colColoumn of the fastor postion relative to the patch starting position
rowRow of the fastor position relative to the patch starting postition

Definition at line 70 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchMasking::MakeFastorADCValuesForPatch(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalNoiseTriggers::MakeFastorADCValuesForPatch().

void AliEMCALTriggerPatchADCInfoAP::SetPatchSize ( UChar_t  patchsize)

Set the size of the patch. Attention: Allocates space for the ADC values

Parameters
[in]patchsizeSize of the patch

Definition at line 65 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Member Data Documentation

AliEMCALTriggerDataGrid<Int_t> AliEMCALTriggerPatchADCInfoAP::fADCValues
private

underlying container with ADC data

Definition at line 117 of file AliEMCALTriggerPatchADCInfoAP.h.

Referenced by AliEMCALTriggerPatchADCInfoAP(), GetADC(), GetMaxADC(), GetNFastorsContrib(), GetSumADC(), operator=(), SetADC(), and SetPatchSize().

UChar_t AliEMCALTriggerPatchADCInfoAP::fPatchSize
private

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