![]() |
AliPhysics
7f1bdba (7f1bdba)
|
Correction component to emulate cell-level crosstalk in the EMCal correction framework. More...
#include <AliEmcalCorrectionCellEmulateCrosstalk.h>
Protected Member Functions | |
void | MakeCellTCardCorrelation () |
void | CalculateInducedEnergyInTCardCell (Int_t absId, Int_t absIdRef, Int_t sm, Float_t ampRef, Int_t cellCase) |
void | AddInducedEnergiesToExistingCells () |
void | AddInducedEnergiesToNewCells () |
virtual void | ResetArrays () |
Bool_t | AcceptCell (Int_t absID) |
template<typename T > | |
void | RetrieveAndSetProperties (const T &properties) |
void | SetProperty (Float_t val[][fgkNsm], std::vector< double > &property, unsigned int iSM, const std::string &name) |
void | SetProperty (Float_t val[fgkNsm], std::vector< double > &property, unsigned int iSM, const std::string &name) |
Protected Attributes | |
TH1F * | fCellEnergyDistBefore |
! cell energy distribution, before energy smearing More... | |
TH1F * | fCellEnergyDistAfter |
! cell energy distribution, after energy smearing More... | |
Bool_t | fTCardCorrClusEnerConserv |
When making correlation, subtract from the reference cell the induced energy on the neighbour cells. More... | |
Float_t | fTCardCorrCellsEner [fgkNEMCalCells] |
Array with induced cell energy in T-Card neighbour cells. More... | |
Bool_t | fTCardCorrCellsNew [fgkNEMCalCells] |
Array with induced cell energy in T-Card neighbour cells, that before had no signal. More... | |
Float_t | fTCardCorrInduceEner [4][fgkNsm] |
Induced energy loss gauss constant on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells, param 0. More... | |
Float_t | fTCardCorrInduceEnerFrac [4][fgkNsm] |
Induced energy loss gauss fraction param0 on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells, param 0. More... | |
Float_t | fTCardCorrInduceEnerFracP1 [4][fgkNsm] |
Induced energy loss gauss fraction param1 on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells, param1. More... | |
Float_t | fTCardCorrInduceEnerFracWidth [4][fgkNsm] |
Induced energy loss gauss witdth on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells. More... | |
Float_t | fTCardCorrInduceEnerFracMax [fgkNsm] |
In case fTCardCorrInduceEnerFracP1 is non null, restrict the maximum fraction of induced energy per SM. More... | |
Float_t | fTCardCorrInduceEnerFracMin [fgkNsm] |
In case fTCardCorrInduceEnerFracP1 is non null, restrict the minimum fraction of induced energy per SM. More... | |
Float_t | fTCardCorrInduceEnerProb [fgkNsm] |
Probability to induce energy loss per SM. More... | |
TRandom3 | fRandom |
Random generator. More... | |
Bool_t | fRandomizeTCard |
Use random induced energy. More... | |
Float_t | fTCardCorrMinAmp |
Minimum cell energy to induce signal on adjacent cells. More... | |
Float_t | fTCardCorrMinInduced |
Minimum induced energy signal on adjacent cells, sum of induced plus original energy, use same as cell energy clusterization cut. More... | |
Float_t | fTCardCorrMaxInducedELeak |
Maximum value of induced energy signal that is always leaked, ~5-10 MeV. More... | |
Float_t | fTCardCorrMaxInduced |
Maximum induced energy signal on adjacent cells. More... | |
Bool_t | fPrintOnce |
Print once analysis parameters. More... | |
AliAODCaloCells * | fAODCellsTmp |
! Temporal array of cells copy More... | |
![]() | |
PWG::Tools::AliYAMLConfiguration | fYAMLConfig |
Contains the YAML configuration used to configure the component. More... | |
Bool_t | fCreateHisto |
Flag to make some basic histograms. More... | |
Int_t | fRun |
! Run number More... | |
TString | fFilepass |
Input data pass number. More... | |
Bool_t | fGetPassFromFileName |
Get fFilepass from file name. More... | |
AliEmcalCorrectionEventManager | fEventManager |
Minimal task which inherits from AliAnalysisTaskSE and manages access to the event. More... | |
Bool_t | fEsdMode |
flag for ESD More... | |
AliMCEvent * | fMCEvent |
! MC More... | |
Double_t | fCent |
! Event centrality More... | |
Int_t | fNcentBins |
How many centrality bins (this member copied from AliAnalysisTaskEmcal) More... | |
Int_t | fCentBin |
! Event centrality bin More... | |
Int_t | fNbins |
No. of pt bins. More... | |
Double_t | fMinBinPt |
Min pt in histograms. More... | |
Double_t | fMaxBinPt |
Max pt in histograms. More... | |
Double_t | fVertex [3] |
! Event vertex More... | |
AliEMCALGeometry * | fGeom |
! Geometry object More... | |
Int_t | fMinMCLabel |
Minimum MC label value for the tracks/clusters being considered MC particles. More... | |
TObjArray | fClusterCollArray |
Cluster collection array. More... | |
TObjArray | fParticleCollArray |
Particle/track collection array. More... | |
AliVCaloCells * | fCaloCells |
! Pointer to CaloCells More... | |
AliEMCALRecoUtils * | fRecoUtils |
Pointer to RecoUtils. More... | |
TList * | fOutput |
! List of output histograms More... | |
TString | fBasePath |
Base folder path to get root files. More... | |
Static Protected Attributes | |
static const Int_t | fgkNEMCalCells = 17664 |
Total number of cells in the calorimeter, 10*48*24 (EMCal) + 4*48*8 (EMCal/DCal 1/3) + 6*32*24 (DCal) More... | |
static const Int_t | fgkNsm = 22 |
Total number of super-modules. More... | |
Private Member Functions | |
AliEmcalCorrectionCellEmulateCrosstalk (const AliEmcalCorrectionCellEmulateCrosstalk &) | |
AliEmcalCorrectionCellEmulateCrosstalk & | operator= (const AliEmcalCorrectionCellEmulateCrosstalk &) |
Static Private Attributes | |
static RegisterCorrectionComponent< AliEmcalCorrectionCellEmulateCrosstalk > | reg |
Correction component to emulate cell-level crosstalk in the EMCal correction framework.
Performs energy smearing of cells to mimic T-card crosstalk. The original cell information in the event will be overwritten.
Based on code in AliAnalysisTaskEMCALClusterize.
Definition at line 23 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
AliEmcalCorrectionCellEmulateCrosstalk::AliEmcalCorrectionCellEmulateCrosstalk | ( | ) |
Default constructor
Definition at line 27 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
|
virtual |
Destructor
Definition at line 62 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
|
private |
Reject cell if acceptance criteria not passed:
absID | absolute cell ID number |
Definition at line 524 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by CalculateInducedEnergyInTCardCell().
|
protected |
Add to existing cells the found induced energies in MakeCellTCardCorrelation() if new signal is larger than 10 MeV. Need to destroy/create the default cells list and do a copy from the old to the new via a temporal arrat fAODCellsTmp Not too nice or fast, but it works.
Definition at line 397 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by Run().
|
protected |
Add news cells if the found induced energies in MakeCellTCardCorrelation() is larger than 10 MeV.
Definition at line 430 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by Run().
|
protected |
Calculate the induced energy in a cell belonging to the same T-Card as the reference cell. Used in MakeCellTCardCorrelation()
absId | Id number of cell in same T-Card as reference cell |
absIdRef | Id number of reference cell |
sm | Supermodule number of cell |
ampRef | Amplitude of the reference cell |
cellCase | Type of cell with respect reference cell 0: up or down, 1: up or down on the diagonal, 2: left or right, 3: 2nd row up/down both left/right |
Definition at line 339 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by MakeCellTCardCorrelation().
|
virtual |
Initialize and configure the component.
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 71 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
|
protected |
Recover each cell amplitude and absId and induce energy in cells in cross of the same T-Card
Definition at line 209 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by Run().
|
private |
void AliEmcalCorrectionCellEmulateCrosstalk::PrintTCardParam | ( | ) |
Print parameters for T-Card correlation emulation.
Definition at line 539 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by Initialize(), and MakeCellTCardCorrelation().
|
protectedvirtual |
Reset arrays containing information for all possible cells.
Definition at line 505 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), and Run().
|
protected |
Assigns array properties defined in the YAML config to initialize array class members. Can handle any map for which there is an appropirately defined SetProperty(...).
NOTE: This function needs to be hidden from CINT because it uses templates.
[in] | properties | YAML to class members map |
Definition at line 114 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by Initialize().
|
virtual |
Called for each event to process the event data.
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 164 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
|
protected |
Handles assigning properties to 2D array class members.
[in] | val | Array class member from map |
[in] | property | Values extracted from the YAML config to be assigned to val |
[in] | iSM | Super-module number (0 indexed) |
[in] | name | Name of the property which is being assigned |
Definition at line 121 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
Referenced by RetrieveAndSetProperties().
|
protected |
Handles assigning properties to 1D array class members.
[in] | val | Array class member from map |
[in] | property | Values extracted from the YAML config to be assigned to val. It is expected to be contain one value. |
[in] | iSM | Super-module number (0 indexed) |
[in] | name | Name of the property which is being assigned |
Definition at line 136 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
|
virtual |
Create run-independent objects for output. Called before running over events.
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 149 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.
|
protected |
! Temporal array of cells copy
Definition at line 88 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AddInducedEnergiesToExistingCells(), AddInducedEnergiesToNewCells(), ResetArrays(), and ~AliEmcalCorrectionCellEmulateCrosstalk().
|
protected |
! cell energy distribution, after energy smearing
Definition at line 63 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by Run(), and UserCreateOutputObjects().
|
protected |
! cell energy distribution, before energy smearing
Definition at line 62 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by Run(), and UserCreateOutputObjects().
|
staticprotected |
Total number of cells in the calorimeter, 10*48*24 (EMCal) + 4*48*8 (EMCal/DCal 1/3) + 6*32*24 (DCal)
Definition at line 39 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AddInducedEnergiesToNewCells(), and ResetArrays().
|
staticprotected |
Total number of super-modules.
Definition at line 40 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), PrintTCardParam(), and RetrieveAndSetProperties().
|
protected |
Print once analysis parameters.
Definition at line 86 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by Initialize(), and MakeCellTCardCorrelation().
|
protected |
Random generator.
Definition at line 78 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by CalculateInducedEnergyInTCardCell(), and MakeCellTCardCorrelation().
|
protected |
Use random induced energy.
Definition at line 79 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
|
protected |
Array with induced cell energy in T-Card neighbour cells.
Definition at line 67 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AddInducedEnergiesToExistingCells(), AddInducedEnergiesToNewCells(), CalculateInducedEnergyInTCardCell(), and ResetArrays().
|
protected |
Array with induced cell energy in T-Card neighbour cells, that before had no signal.
Definition at line 68 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AddInducedEnergiesToNewCells(), CalculateInducedEnergyInTCardCell(), and ResetArrays().
|
protected |
When making correlation, subtract from the reference cell the induced energy on the neighbour cells.
Definition at line 66 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
Induced energy loss gauss constant on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells, param 0.
Definition at line 70 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
Induced energy loss gauss fraction param0 on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells, param 0.
Definition at line 71 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
In case fTCardCorrInduceEnerFracP1 is non null, restrict the maximum fraction of induced energy per SM.
Definition at line 74 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
In case fTCardCorrInduceEnerFracP1 is non null, restrict the minimum fraction of induced energy per SM.
Definition at line 75 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
Induced energy loss gauss fraction param1 on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells, param1.
Definition at line 72 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
Induced energy loss gauss witdth on 0-same row, diff col, 1-up/down cells left/right col 2-left/righ col, and 2nd row cells.
Definition at line 73 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
Probability to induce energy loss per SM.
Definition at line 76 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().
|
protected |
Maximum induced energy signal on adjacent cells.
Definition at line 84 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
|
protected |
Maximum value of induced energy signal that is always leaked, ~5-10 MeV.
Definition at line 83 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
|
protected |
Minimum cell energy to induce signal on adjacent cells.
Definition at line 81 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().
|
protected |
Minimum induced energy signal on adjacent cells, sum of induced plus original energy, use same as cell energy clusterization cut.
Definition at line 82 of file AliEmcalCorrectionCellEmulateCrosstalk.h.
Referenced by CalculateInducedEnergyInTCardCell(), Initialize(), and PrintTCardParam().
|
staticprivate |
Definition at line 97 of file AliEmcalCorrectionCellEmulateCrosstalk.h.