AliPhysics  c7b8e89 (c7b8e89)

#include <AliEMCALTriggerPatchADCInfoAP.h>

## Public Member Functions

Int_t GetADC (UChar_t col, UChar_t row) const

Int_t GetNFastorsContrib () const

UChar_t GetPatchSize () const

void SetPatchSize (UChar_t patchsize)

## Private Attributes

UChar_t fPatchSize
Size of the patch. More...

underlying container with ADC data More...

## Detailed Description

Definition at line 29 of file AliEMCALTriggerPatchADCInfoAP.h.

## Constructor & Destructor Documentation

Dummy constructor

Definition at line 19 of file AliEMCALTriggerPatchADCInfoAP.cxx.

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

Parameters
 [in] patchsize Size of the trigger patch

Definition at line 26 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Copy constructor

Parameters
 [in]

Definition at line 34 of file AliEMCALTriggerPatchADCInfoAP.cxx.

inlinevirtual

Destructor, deleting underlying data container

Definition at line 60 of file AliEMCALTriggerPatchADCInfoAP.h.

## Member Function Documentation

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] col Coloumn of the fastor postion relative to the patch starting position [in] row Row 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.

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.

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.

inline

Get the size of the patch

Returns
Size of the patch

Definition at line 96 of file AliEMCALTriggerPatchADCInfoAP.h.

Calculate sum of all FastOR ADC values connected

Returns
Sum of all FastOR ADC values

Definition at line 86 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Assignment operator

Parameters
 [in] ref Reference for the assignment
Returns

Definition at line 49 of file AliEMCALTriggerPatchADCInfoAP.cxx.

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
 ADC Fastor ADC value for the given fastor position col Coloumn of the fastor postion relative to the patch starting position row Row of the fastor position relative to the patch starting postition

Definition at line 70 of file AliEMCALTriggerPatchADCInfoAP.cxx.

 void AliEMCALTriggerPatchADCInfoAP::SetPatchSize ( UChar_t patchsize )

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

Parameters
 [in] patchsize Size of the patch

Definition at line 65 of file AliEMCALTriggerPatchADCInfoAP.cxx.

Referenced by GetPatchSize().

private