![]() |
AliPhysics
bdbde52 (bdbde52)
|
Combines two cell collections into one collection. More...
#include <AliEmcalCorrectionCellCombineCollections.h>
Protected Member Functions | |
void | SetupCombinedCells () |
void | CreateCombinedCells () |
void | AddCellsToCombinedCellObject (AliVCaloCells *inputCells) |
void | AddObjectToEvent (TObject *obj, AliVEvent *event, Bool_t attempt=kFALSE) |
AliEmcalCorrectionCellCombineCollections (const AliEmcalCorrectionCellCombineCollections &) | |
AliEmcalCorrectionCellCombineCollections & | operator= (const AliEmcalCorrectionCellCombineCollections &) |
Protected Attributes | |
std::string | fExternalCellsBranchName |
Name of the cell branch which will be copied from the external event for the combined cells. More... | |
std::string | fCreatedCellsBranchName |
Name of the cell branch which will be created for the combined cells. More... | |
bool | fInitializedCombinedCells |
! True if the combined cells object has been initialized More... | |
AliVCaloCells * | fCombinedCells |
! Cells combined from the input and external events. More... | |
![]() | |
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... | |
Bool_t | fIsEmbedded |
Trigger, embedded signal. 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 RegisterCorrectionComponent < AliEmcalCorrectionCellCombineCollections > | reg |
Combines two cell collections into one collection.
The internal cell branch should be set by the correction task! Then, the external cell branch name should be set in the correction configuration. The branch will be retrieved by this task.
Note that this task must run in a seperate correction task and must be configured to run after the previous ones. Otherwise, the cell branches will not yet be corrected!
With a bit of generalization, along with some small modifications in AliEmcalCorrectionTask, this task could combine aribtrary collections of cells together. However, this is quite unnecessary for the current purposes, so it will be left for the future if it is necessary.
Definition at line 30 of file AliEmcalCorrectionCellCombineCollections.h.
AliEmcalCorrectionCellCombineCollections::AliEmcalCorrectionCellCombineCollections | ( | ) |
Standard constructor for the correction components.
Definition at line 24 of file AliEmcalCorrectionCellCombineCollections.cxx.
|
virtual |
Destructor.
Definition at line 38 of file AliEmcalCorrectionCellCombineCollections.cxx.
|
protected |
|
protected |
Takes the input cells and adds them to the combine cells. To do so, the each individual cell must be duplicated.
[in] | inputCells | Cells to be added to the combined cells |
Definition at line 173 of file AliEmcalCorrectionCellCombineCollections.cxx.
Referenced by CreateCombinedCells().
|
protected |
Add object to event. Adapted from AliAnalysisTaskEmcal.
[in] | obj | Object to be added |
[in] | event | Event to which the object is added |
[in] | attempt | If true don't handle error |
Definition at line 205 of file AliEmcalCorrectionCellCombineCollections.cxx.
Referenced by SetupCombinedCells().
|
protected |
Create cells combined from the input event and the external (embedded) event. This is only necessary for cells because they basic object is a cell "container" rather than the actual objects, which can then be accessed through EMCal containers (like clusters or tracks).
Definition at line 138 of file AliEmcalCorrectionCellCombineCollections.cxx.
Referenced by Run().
|
virtual |
The combined cells are setup during ExecOnce() to atempt to make the cell object creation as efficient as possible (although it is difficult to do compared to AliEmcalContainer derived classes).
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 86 of file AliEmcalCorrectionCellCombineCollections.cxx.
|
inline |
Definition at line 42 of file AliEmcalCorrectionCellCombineCollections.h.
|
inline |
Definition at line 41 of file AliEmcalCorrectionCellCombineCollections.h.
|
virtual |
Initialize all needed variables from the YAML configuration.
Note that "usedefault" is only applied to the externalCellsBranchName because the "usedefault" name for the combinedCellsBranchName is not well defined. However, just using the default in the default YAML configuration should serve more or less the same purpose.
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 52 of file AliEmcalCorrectionCellCombineCollections.cxx.
|
protected |
|
virtual |
Run each event to fill the combined cells from input and external cells. Note that the combined cells object should have already been created.
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 122 of file AliEmcalCorrectionCellCombineCollections.cxx.
|
inline |
Definition at line 45 of file AliEmcalCorrectionCellCombineCollections.h.
|
inline |
Definition at line 44 of file AliEmcalCorrectionCellCombineCollections.h.
|
protected |
Setup the combined cells object and add it to the input event.
NOTE: It could have been added to the embedded event, but then classes outside of AliEmcalCorrection{Task,Component} have some difficulty in using them. It is better to put them in the input event, although it is important to ensure that the requested name is not already in use.
Definition at line 99 of file AliEmcalCorrectionCellCombineCollections.cxx.
Referenced by CreateCombinedCells(), and ExecOnce().
|
virtual |
Create user output objects.
Reimplemented from AliEmcalCorrectionComponent.
Definition at line 75 of file AliEmcalCorrectionCellCombineCollections.cxx.
|
protected |
! Cells combined from the input and external events.
Definition at line 57 of file AliEmcalCorrectionCellCombineCollections.h.
Referenced by AddCellsToCombinedCellObject(), CreateCombinedCells(), and SetupCombinedCells().
|
protected |
Name of the cell branch which will be created for the combined cells.
Definition at line 55 of file AliEmcalCorrectionCellCombineCollections.h.
Referenced by GetCombinedCellsBranchName(), Initialize(), SetCombinedCellsBranchName(), and SetupCombinedCells().
|
protected |
Name of the cell branch which will be copied from the external event for the combined cells.
Definition at line 54 of file AliEmcalCorrectionCellCombineCollections.h.
Referenced by CreateCombinedCells(), GetExternalCellsBranchName(), Initialize(), and SetExternalCellsBranchName().
|
protected |
! True if the combined cells object has been initialized
Definition at line 56 of file AliEmcalCorrectionCellCombineCollections.h.
Referenced by CreateCombinedCells(), and SetupCombinedCells().
|
staticprotected |
Definition at line 63 of file AliEmcalCorrectionCellCombineCollections.h.