]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCDBHandler.h
Protection added in case no ESD files have been chained.
[u/mrichter/AliRoot.git] / STEER / AliCDBHandler.h
CommitLineData
7de84b33 1#ifndef ALICDBHANDLER_H
2#define ALICDBHANDLER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * * See cxx source for full Copyright notice */
5/* $Id$ */
6
7////////////////////////////////////////////////////////////////////////////
8// //
9// The SAX XML file handler used by the OCDB Manager //
10// get the OCDB Folder <-> Run Range correspondance //
11// //
12// Chiara.Zampolli (Chiara.Zampolli@cern.ch) //
13// //
14////////////////////////////////////////////////////////////////////////////
15
16#include <TObject.h>
17class TString;
18
19class AliCDBHandler : public TObject {
20
21public:
22
23 AliCDBHandler();
24 AliCDBHandler(Int_t run);
25 AliCDBHandler(const AliCDBHandler &sh);
26 virtual ~AliCDBHandler();
27 AliCDBHandler &operator=(const AliCDBHandler &sh);
28
29 // functions to interface to TSAXHandler
30 void OnStartDocument();
31 void OnEndDocument();
32 void OnStartElement(const char *name, const TList *attributes);
33 void OnEndElement(const char *name);
34 void OnCharacters(const char *name);
35 void OnComment(const char *name);
36 void OnWarning(const char *name);
37 void OnError(const char *name);
38 void OnFatalError(const char *name);
39 void OnCdataBlock(const char *name, Int_t len);
40
41 Int_t GetStartRunRange() const {return fStartRunRange;}
42 Int_t GetEndRunRange() const {return fEndRunRange;}
43 TString GetOCDBFolder() const {return fOCDBFolder;}
44 void SetRun(Int_t run) {fRun=run;}
45
46 private:
47 Int_t fRun; // run for which the LHC Period Folder has to be found
48 Int_t fStartRunRange; // start run corresponding to the request
49 Int_t fEndRunRange; // end run corresponding to the request
50 TString fOCDBFolder; // OCDB folder corresponding to the request
51
52 ClassDef(AliCDBHandler,0); // The XML file handler for the OCDB
53};
54#endif
55