3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 // Author: Andrei Gheata, 31/08/2009
9 //==============================================================================
10 // AliTender - Tender wagon providing access to ESD event and CDB.
11 // The tender calls an arbitrary number of user algorithms that add or
12 // correct information in ESD based on CDB info that was not available
13 // during pass1 reconstruction.
14 //==============================================================================
16 #ifndef ALIANALYSISTASK_H
17 #include "AliAnalysisTask.h"
22 class AliESDInputHandler;
23 class AliTenderSupply;
25 class AliTender : public AliAnalysisTask {
28 Int_t fDebug; // Debug level
29 Int_t fRun; // Current run
30 Bool_t fRunChanged; // Flag for run change.
31 ULong_t fCDBkey; // Key to unlock CDB manager
32 TString fDefaultStorage; // Default CDB storage
33 AliCDBManager *fCDB; // Pointer to CDB manager
34 AliESDInputHandler *fESDhandler; // Pointer to ESD input handler
35 AliESDEvent *fESD; // Pointer to current ESD event
36 TObjArray *fSupplies; // Array of tender supplies
38 AliTender(const AliTender &other);
39 AliTender& operator=(const AliTender &other);
43 AliTender(const char *name);
46 void AddSupply(AliTenderSupply *supply);
47 Int_t GetRun() const {return fRun;}
48 AliCDBManager *GetCDBManager() const {return fCDB;}
49 AliESDInputHandler *GetESDhandler() const {return fESDhandler;}
50 AliESDEvent *GetEvent() const {return fESD;}
51 TObjArray *GetSupplies() const {return fSupplies;}
52 Bool_t RunChanged() const {return fRunChanged;}
54 void SetDefaultCDBStorage(const char *dbString="local://$ALICE_ROOT/OCDB");
57 virtual void ConnectInputData(Option_t *option = "");
58 virtual void CreateOutputObjects();
59 virtual Bool_t Notify() {return kTRUE;}
60 virtual void Exec(Option_t *option);
62 ClassDef(AliTender,1) // Class describing the tender car for ESD analysis