]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/Tender/AliTender.h
RC12, RC17 violation: suppression
[u/mrichter/AliRoot.git] / ANALYSIS / Tender / AliTender.h
1 #ifndef ALITENDER_H
2 #define ALITENDER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 // Author: Andrei Gheata, 31/08/2009
8
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 //==============================================================================
15
16 #ifndef ALIANALYSISTASK_H
17 #include "AliAnalysisTask.h"
18 #endif
19
20 class AliCDBManager;
21 class AliESDEvent;
22 class AliESDInputHandler;
23 class AliTenderSupply;
24
25 class AliTender : public AliAnalysisTask {
26
27 private:
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
37   
38   AliTender(const AliTender &other);
39   AliTender& operator=(const AliTender &other);
40
41 public:  
42   AliTender();
43   AliTender(const char *name);
44   virtual ~AliTender();
45
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;}
53   // Configuration
54   void                      SetDefaultCDBStorage(const char *dbString="local://$ALICE_ROOT/OCDB");
55
56   // Run control
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);
61     
62   ClassDef(AliTender,1)  // Class describing the tender car for ESD analysis
63 };
64 #endif