![]() |
AliPhysics
80ccde44 (80ccde44)
|
#include <AliEMCALTriggerPatchADCInfoAP.h>
Public Member Functions | |
AliEMCALTriggerPatchADCInfoAP () | |
AliEMCALTriggerPatchADCInfoAP (UChar_t patchsize) | |
AliEMCALTriggerPatchADCInfoAP (const AliEMCALTriggerPatchADCInfoAP &ref) | |
AliEMCALTriggerPatchADCInfoAP & | operator= (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_t > | fADCValues |
underlying container with ADC data More... | |
Definition at line 29 of file AliEMCALTriggerPatchADCInfoAP.h.
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
[in] | patchsize | Size of the trigger patch |
Definition at line 26 of file AliEMCALTriggerPatchADCInfoAP.cxx.
AliEMCALTriggerPatchADCInfoAP::AliEMCALTriggerPatchADCInfoAP | ( | const AliEMCALTriggerPatchADCInfoAP & | ref | ) |
Copy constructor
[in] | Reference for the copy |
Definition at line 34 of file AliEMCALTriggerPatchADCInfoAP.cxx.
|
inlinevirtual |
Destructor, deleting underlying data container
Definition at line 60 of file AliEMCALTriggerPatchADCInfoAP.h.
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.
[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 |
Definition at line 78 of file AliEMCALTriggerPatchADCInfoAP.cxx.
Int_t AliEMCALTriggerPatchADCInfoAP::GetMaxADC | ( | ) | const |
Get the maximum FastOR ADC value within the 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).
Definition at line 114 of file AliEMCALTriggerPatchADCInfoAP.cxx.
|
inline |
Get the 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
Definition at line 86 of file AliEMCALTriggerPatchADCInfoAP.cxx.
AliEMCALTriggerPatchADCInfoAP & AliEMCALTriggerPatchADCInfoAP::operator= | ( | const AliEMCALTriggerPatchADCInfoAP & | ref | ) |
Assignment operator
[in] | ref | Reference for the assignment |
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.
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.
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
[in] | patchsize | Size of the patch |
Definition at line 65 of file AliEMCALTriggerPatchADCInfoAP.cxx.
|
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().
|
private |
Size of the patch.
Definition at line 116 of file AliEMCALTriggerPatchADCInfoAP.h.
Referenced by AliEMCALTriggerPatchADCInfoAP(), GetMaxADC(), GetNFastorsContrib(), GetPatchSize(), GetSumADC(), operator=(), and SetPatchSize().