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;
24 class AliTender : public AliAnalysisTask {
27 Int_t fDebug; // Debug level
28 Int_t fRun; // Current run
29 Bool_t fRunChanged; // Flag for run change.
30 ULong_t fCDBkey; // Key to unlock CDB manager
31 TString fDefaultStorage; // Default CDB storage
32 AliCDBManager *fCDB; // Pointer to CDB manager
33 AliESDInputHandler *fESDhandler; // Pointer to ESD input handler
34 AliESDEvent *fESD; // Pointer to current ESD event
35 TObjArray *fSupplies; // Array of tender supplies
37 AliTender(const AliTender &other);
38 AliTender& operator=(const AliTender &other);
42 AliTender(const char *name);
46 Int_t GetRun() const {return fRun;}
47 AliCDBManager *GetCDBManager() const {return fCDB;}
48 AliESDInputHandler *GetESDhandler() const {return fESDhandler;}
49 AliESDEvent *GetEvent() const {return fESD;}
50 TObjArray *GetSupplies() const {return fSupplies;}
51 Bool_t RunChanged() const {return fRunChanged;}
53 void SetDefaultCDBStorage(const char *dbString="local://$ALICE_ROOT/OCDB");
56 virtual void ConnectInputData(Option_t *option = "");
57 virtual void CreateOutputObjects();
58 virtual Bool_t Notify() {return kTRUE;}
59 virtual void Exec(Option_t *option);
61 ClassDef(AliTender,1) // Class describing the tender car for ESD analysis