AliPhysics  bdbde52 (bdbde52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalCorrectionCellCombineCollections.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCORRECTIONCELLCOMBINECOLLECTIONS_H
2 #define ALIEMCALCORRECTIONCELLCOMBINECOLLECTIONS_H
3 
5 
6 class AliVCaloCells;
7 
31  public:
34 
35  // Sets up and runs the task
38  void ExecOnce();
39  Bool_t Run();
40 
41  std::string GetExternalCellsBranchName() const { return fExternalCellsBranchName; }
42  std::string GetCombinedCellsBranchName() const { return fCreatedCellsBranchName; }
43 
44  void SetExternalCellsBranchName(const char * inputName) { fExternalCellsBranchName = inputName; }
45  void SetCombinedCellsBranchName(const char * inputName) { fCreatedCellsBranchName = inputName; }
46 
47  protected:
48 
49  void SetupCombinedCells();
50  void CreateCombinedCells();
51  void AddCellsToCombinedCellObject(AliVCaloCells * inputCells);
52  void AddObjectToEvent(TObject *obj, AliVEvent * event, Bool_t attempt = kFALSE);
53 
57  AliVCaloCells *fCombinedCells;
58 
61 
62  // Allows the registration of the class so that it is availble to be used by the correction task.
64 
66  ClassDef(AliEmcalCorrectionCellCombineCollections, 1); // EMCal correction to combine cell collections
68 };
69 
70 #endif /* AliEmcalCorrectionCellCombineCollections_H */
static RegisterCorrectionComponent< AliEmcalCorrectionCellCombineCollections > reg
std::string fCreatedCellsBranchName
Name of the cell branch which will be created for the combined cells.
AliEmcalCorrectionCellCombineCollections & operator=(const AliEmcalCorrectionCellCombineCollections &)
Combines two cell collections into one collection.
std::string fExternalCellsBranchName
Name of the cell branch which will be copied from the external event for the combined cells...
Base class for correction components in the EMCal correction framework.
void AddObjectToEvent(TObject *obj, AliVEvent *event, Bool_t attempt=kFALSE)
bool fInitializedCombinedCells
! True if the combined cells object has been initialized
bool Bool_t
Definition: External.C:53
AliVCaloCells * fCombinedCells
! Cells combined from the input and external events.