1 #ifndef ALITOFDACONFIGHANDLER_H
2 #define ALITOFDACONFIGHANDLER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////////////////////////////////
9 // The SAX XML file handler used by the TOF DA for PHYSICS runs //
10 // to get the necessary flags to run (e.g. debug flag) //
12 // Chiara.Zampolli (Chiara.Zampolli@cern.ch) //
14 ////////////////////////////////////////////////////////////////////////////
19 class AliTOFDaConfigHandler : public TObject {
23 AliTOFDaConfigHandler();
24 AliTOFDaConfigHandler(const AliTOFDaConfigHandler &sh);
25 virtual ~AliTOFDaConfigHandler();
26 AliTOFDaConfigHandler &operator=(const AliTOFDaConfigHandler &sh);
28 // functions to interface to TSAXHandler
29 void OnStartDocument();
31 void OnStartElement(const char *name, const TList *attributes);
32 void OnEndElement(const char *name);
33 void OnCharacters(const char *name);
34 void OnComment(const char *name);
35 void OnWarning(const char *name);
36 void OnError(const char *name);
37 void OnFatalError(const char *name);
38 void OnCdataBlock(const char *name, Int_t len);
40 Int_t GetDebugFlag() const {return fDebugFlag;}
41 Int_t GetT0Flag() const {return fT0Flag;}
44 Int_t fDebugFlag; // debug flag: 0-->off, 1-->first level of debug, 2-->second level of debug, 3-->third level of debug
45 Int_t fT0Flag; // flag for using T0: 0-->off, 1-->on
47 ClassDef(AliTOFDaConfigHandler,0);