Adding configuration file for TOF da running during Physics runs.
[u/mrichter/AliRoot.git] / TOF / AliTOFNoiseConfigHandler.h
CommitLineData
fa2852b6 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 */
5/* $Id$ */
6
7////////////////////////////////////////////////////////////////////////////
8// //
9// The SAX XML file handler used by the TOF noiseDA //
10// to get the necessary flags to run (e.g. debug flag) //
11// //
12// Chiara.Zampolli (Chiara.Zampolli@cern.ch) //
13// //
14////////////////////////////////////////////////////////////////////////////
15
16#include <TObject.h>
17class TString;
18
19class AliTOFNoiseConfigHandler : public TObject {
20
21public:
22
23 AliTOFNoiseConfigHandler();
24 AliTOFNoiseConfigHandler(const AliTOFNoiseConfigHandler &sh);
25 virtual ~AliTOFNoiseConfigHandler();
26 AliTOFNoiseConfigHandler &operator=(const AliTOFNoiseConfigHandler &sh);
27
28 // functions to interface to TSAXHandler
29 void OnStartDocument();
30 void OnEndDocument();
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);
39
40 Int_t GetDebugFlag() const {return fDebugFlag;}
fa2852b6 41
42 private:
43 Int_t fDebugFlag; // debug flag: 0-->off, 1-->on
fa2852b6 44
59f6cc12 45 ClassDef(AliTOFNoiseConfigHandler,0);
fa2852b6 46};
47#endif
48