AliPhysics  8d00e07 (8d00e07)
AliEmcalCorrectionCellEmulateCrosstalk Class Reference

Correction component to emulate cell-level crosstalk in the EMCal correction framework. More...

#include <AliEmcalCorrectionCellEmulateCrosstalk.h>

Inheritance diagram for AliEmcalCorrectionCellEmulateCrosstalk:

Public Member Functions

 AliEmcalCorrectionCellEmulateCrosstalk ()
 
virtual ~AliEmcalCorrectionCellEmulateCrosstalk ()
 
Bool_t Initialize ()
 
void UserCreateOutputObjects ()
 
Bool_t Run ()
 
void PrintTCardParam ()
 
- Public Member Functions inherited from AliEmcalCorrectionComponent
 AliEmcalCorrectionComponent ()
 
 AliEmcalCorrectionComponent (const char *name)
 
virtual ~AliEmcalCorrectionComponent ()
 
virtual void ExecOnce ()
 
virtual Bool_t UserNotify ()
 
virtual Bool_t CheckIfRunChanged ()
 
void GetEtaPhiDiff (const AliVTrack *t, const AliVCluster *v, Double_t &phidiff, Double_t &etadiff)
 
void UpdateCells ()
 
void GetPass ()
 
void FillCellQA (TH1F *h)
 
Int_t InitBadChannels ()
 
AliParticleContainerAddParticleContainer (const char *n)
 
AliTrackContainerAddTrackContainer (const char *n)
 
AliMCParticleContainerAddMCParticleContainer (const char *n)
 
AliClusterContainerAddClusterContainer (const char *n)
 
void AdoptParticleContainer (AliParticleContainer *cont)
 
void AdoptTrackContainer (AliTrackContainer *cont)
 
void AdoptMCParticleContainer (AliMCParticleContainer *cont)
 
void AdoptClusterContainer (AliClusterContainer *cont)
 
AliParticleContainerGetParticleContainer (Int_t i=0) const
 
AliParticleContainerGetParticleContainer (const char *name) const
 
AliClusterContainerGetClusterContainer (Int_t i=0) const
 
AliClusterContainerGetClusterContainer (const char *name) const
 
AliMCParticleContainerGetMCParticleContainer (Int_t i=0) const
 
AliMCParticleContainerGetMCParticleContainer (const char *name) const
 
AliTrackContainerGetTrackContainer (Int_t i=0) const
 
AliTrackContainerGetTrackContainer (const char *name) const
 
void RemoveParticleContainer (Int_t i=0)
 
void RemoveClusterContainer (Int_t i=0)
 
AliEMCALRecoUtilsGetRecoUtils () const
 
AliVCaloCells * GetCaloCells () const
 
TListGetOutputList () const
 
void SetCaloCells (AliVCaloCells *cells)
 
void SetRecoUtils (AliEMCALRecoUtils *ru)
 
void SetInputEvent (AliVEvent *event)
 
void SetMCEvent (AliMCEvent *mcevent)
 
void SetUsingInputEvent (bool b=true)
 
void SetEMCALGeometry (AliEMCALGeometry *geometry)
 
void SetCentralityBin (Int_t bin)
 
void SetCentrality (Double_t cent)
 
void SetNcentralityBins (Int_t n)
 
void SetVertex (Double_t *vertex)
 
void SetIsESD (Bool_t isESD)
 
void SetYAMLConfiguration (PWG::Tools::AliYAMLConfiguration config)
 Set YAML Configuration. More...
 
template<typename T >
bool GetProperty (std::string propertyName, T &property, bool requiredProperty=true, std::string correctionName="")
 Retrieve property. More...
 

Protected Member Functions

void MakeCellTCardCorrelation ()
 
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 fTCardCorrMaxInduced
 Maximum induced energy signal on adjacent cells. More...
 
Bool_t fPrintOnce
 Print once analysis parameters. More...
 
- Protected Attributes inherited from AliEmcalCorrectionComponent
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...
 
AliEMCALRecoUtilsfRecoUtils
 Pointer to RecoUtils. More...
 
TListfOutput
 ! 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 &)
 
AliEmcalCorrectionCellEmulateCrosstalkoperator= (const AliEmcalCorrectionCellEmulateCrosstalk &)
 

Static Private Attributes

static RegisterCorrectionComponent< AliEmcalCorrectionCellEmulateCrosstalkreg
 

Detailed Description

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.

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-Grenoble, AliAnalysisTaskEMCALClusterize
Raymond Ehlers raymo.nosp@m.nd.e.nosp@m.hlers.nosp@m.@yal.nosp@m.e.edu, Yale University, centralize EMCal corrections using components
James Mulligan james.nosp@m..mul.nosp@m.ligan.nosp@m.@yal.nosp@m.e.edu, Yale University, centralize EMCal corrections using components
Date
Feb 11 2018

Definition at line 23 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Constructor & Destructor Documentation

AliEmcalCorrectionCellEmulateCrosstalk::AliEmcalCorrectionCellEmulateCrosstalk ( )

Default constructor

Definition at line 27 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

AliEmcalCorrectionCellEmulateCrosstalk::~AliEmcalCorrectionCellEmulateCrosstalk ( )
virtual

Destructor

Definition at line 60 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

AliEmcalCorrectionCellEmulateCrosstalk::AliEmcalCorrectionCellEmulateCrosstalk ( const AliEmcalCorrectionCellEmulateCrosstalk )
private

Member Function Documentation

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::AcceptCell ( Int_t  absID)
protected

Reject cell if acceptance criteria not passed:

  • correct cell number
Parameters
absIDabsolute cell ID number
Returns
bool quality of cell, exists or not

Definition at line 520 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by MakeCellTCardCorrelation().

void AliEmcalCorrectionCellEmulateCrosstalk::AddInducedEnergiesToExistingCells ( )
protected

Add to existing cells the found induced energies in MakeCellTCardCorrelation() if new signal is larger than 10 MeV.

Definition at line 445 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by Run().

void AliEmcalCorrectionCellEmulateCrosstalk::AddInducedEnergiesToNewCells ( )
protected

Add news cells if the found induced energies in MakeCellTCardCorrelation() is larger than 10 MeV.

Definition at line 474 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by Run().

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::Initialize ( )
virtual

Initialize and configure the component.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 67 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

void AliEmcalCorrectionCellEmulateCrosstalk::MakeCellTCardCorrelation ( )
protected

Recover each cell amplitude and absId and induce energy in cells in cross of the same T-Card

Definition at line 203 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by Run().

AliEmcalCorrectionCellEmulateCrosstalk& AliEmcalCorrectionCellEmulateCrosstalk::operator= ( const AliEmcalCorrectionCellEmulateCrosstalk )
private
void AliEmcalCorrectionCellEmulateCrosstalk::PrintTCardParam ( )

Print parameters for T-Card correlation emulation.

Definition at line 535 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by Initialize().

void AliEmcalCorrectionCellEmulateCrosstalk::ResetArrays ( )
protectedvirtual

Reset arrays containing information for all possible cells.

Definition at line 503 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), and Run().

template<typename T >
void AliEmcalCorrectionCellEmulateCrosstalk::RetrieveAndSetProperties ( const T properties)
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.

Parameters
[in]propertiesYAML to class members map

Definition at line 105 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Initialize().

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::Run ( )
virtual

Called for each event to process the event data.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 158 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

void AliEmcalCorrectionCellEmulateCrosstalk::SetProperty ( Float_t  val[][fgkNsm],
std::vector< double > &  property,
unsigned int  iSM,
const std::string &  name 
)
protected

Handles assigning properties to 2D array class members.

Parameters
[in]valArray class member from map
[in]propertyValues extracted from the YAML config to be assigned to val
[in]iSMSuper-module number (0 indexed)
[in]nameName of the property which is being assigned

Definition at line 115 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Referenced by RetrieveAndSetProperties().

void AliEmcalCorrectionCellEmulateCrosstalk::SetProperty ( Float_t  val[fgkNsm],
std::vector< double > &  property,
unsigned int  iSM,
const std::string &  name 
)
protected

Handles assigning properties to 1D array class members.

Parameters
[in]valArray class member from map
[in]propertyValues extracted from the YAML config to be assigned to val. It is expected to be contain one value.
[in]iSMSuper-module number (0 indexed)
[in]nameName of the property which is being assigned

Definition at line 130 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

void AliEmcalCorrectionCellEmulateCrosstalk::UserCreateOutputObjects ( )
virtual

Create run-independent objects for output. Called before running over events.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 143 of file AliEmcalCorrectionCellEmulateCrosstalk.cxx.

Member Data Documentation

TH1F* AliEmcalCorrectionCellEmulateCrosstalk::fCellEnergyDistAfter
protected

! cell energy distribution, after energy smearing

Definition at line 59 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Run(), and UserCreateOutputObjects().

TH1F* AliEmcalCorrectionCellEmulateCrosstalk::fCellEnergyDistBefore
protected

! cell energy distribution, before energy smearing

Definition at line 58 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Run(), and UserCreateOutputObjects().

const Int_t AliEmcalCorrectionCellEmulateCrosstalk::fgkNEMCalCells = 17664
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().

const Int_t AliEmcalCorrectionCellEmulateCrosstalk::fgkNsm = 22
staticprotected

Total number of super-modules.

Definition at line 40 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), PrintTCardParam(), and RetrieveAndSetProperties().

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::fPrintOnce
protected

Print once analysis parameters.

Definition at line 80 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Initialize().

TRandom3 AliEmcalCorrectionCellEmulateCrosstalk::fRandom
protected

Random generator.

Definition at line 74 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by MakeCellTCardCorrelation().

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::fRandomizeTCard
protected

Use random induced energy.

Definition at line 75 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrCellsEner[fgkNEMCalCells]
protected

Array with induced cell energy in T-Card neighbour cells.

Definition at line 63 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AddInducedEnergiesToExistingCells(), AddInducedEnergiesToNewCells(), MakeCellTCardCorrelation(), and ResetArrays().

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrCellsNew[fgkNEMCalCells]
protected

Array with induced cell energy in T-Card neighbour cells, that before had no signal.

Definition at line 64 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AddInducedEnergiesToNewCells(), MakeCellTCardCorrelation(), and ResetArrays().

Bool_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrClusEnerConserv
protected

When making correlation, subtract from the reference cell the induced energy on the neighbour cells.

Definition at line 62 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEner[4][fgkNsm]
protected

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 66 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEnerFrac[4][fgkNsm]
protected

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 67 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEnerFracMax[fgkNsm]
protected

In case fTCardCorrInduceEnerFracP1 is non null, restrict the maximum fraction of induced energy per SM.

Definition at line 70 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEnerFracMin[fgkNsm]
protected

In case fTCardCorrInduceEnerFracP1 is non null, restrict the minimum fraction of induced energy per SM.

Definition at line 71 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEnerFracP1[4][fgkNsm]
protected

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 68 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEnerFracWidth[4][fgkNsm]
protected

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 69 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrInduceEnerProb[fgkNsm]
protected

Probability to induce energy loss per SM.

Definition at line 72 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by AliEmcalCorrectionCellEmulateCrosstalk(), Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrMaxInduced
protected

Maximum induced energy signal on adjacent cells.

Definition at line 78 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

Float_t AliEmcalCorrectionCellEmulateCrosstalk::fTCardCorrMinAmp
protected

Minimum cell energy to induce signal on adjacent cells.

Definition at line 77 of file AliEmcalCorrectionCellEmulateCrosstalk.h.

Referenced by Initialize(), MakeCellTCardCorrelation(), and PrintTCardParam().

RegisterCorrectionComponent< AliEmcalCorrectionCellEmulateCrosstalk > AliEmcalCorrectionCellEmulateCrosstalk::reg
staticprivate

Definition at line 88 of file AliEmcalCorrectionCellEmulateCrosstalk.h.


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