1 #ifndef ALITOFNOISECONFIGHANDLER_H
2 #define ALITOFNOISECONFIGHANDLER_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 noiseDA //
10 // to get the necessary flags to run (e.g. debug flag) //
12 // Chiara.Zampolli (Chiara.Zampolli@cern.ch) //
14 ////////////////////////////////////////////////////////////////////////////
19 class AliTOFNoiseConfigHandler : public TObject {
23 AliTOFNoiseConfigHandler();
24 AliTOFNoiseConfigHandler(const AliTOFNoiseConfigHandler &sh);
25 virtual ~AliTOFNoiseConfigHandler();
26 AliTOFNoiseConfigHandler &operator=(const AliTOFNoiseConfigHandler &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;}
43 Int_t fDebugFlag; // debug flag: 0-->off, 1-->on
45 ClassDef(AliTOFNoiseConfigHandler,0);