AliPhysics  608b256 (608b256)
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, int indexOffset);
52  void VerifyCombinedCells(std::vector <AliVCaloCells *> inputCaloCells);
53  void AddObjectToEvent(TObject *obj, AliVEvent * event, Bool_t attempt = kFALSE);
54 
59  AliVCaloCells *fCombinedCells;
60 
63 
64  // Allows the registration of the class so that it is availble to be used by the correction task.
66 
68  ClassDef(AliEmcalCorrectionCellCombineCollections, 2); // EMCal correction to combine cell collections
70 };
71 
72 #endif /* AliEmcalCorrectionCellCombineCollections_H */
static RegisterCorrectionComponent< AliEmcalCorrectionCellCombineCollections > reg
void AddCellsToCombinedCellObject(AliVCaloCells *inputCells, int indexOffset)
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 VerifyCombinedCells(std::vector< AliVCaloCells * > inputCaloCells)
bool fVerifyCombinedCells
True if the task should confirm that the combined cells properly copied the input cells...
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.