]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFDaConfigHandler.h
Adding configuration file for TOF da running during Physics runs.
[u/mrichter/AliRoot.git] / TOF / AliTOFDaConfigHandler.h
diff --git a/TOF/AliTOFDaConfigHandler.h b/TOF/AliTOFDaConfigHandler.h
new file mode 100644 (file)
index 0000000..8894e30
--- /dev/null
@@ -0,0 +1,50 @@
+#ifndef ALITOFDACONFIGHANDLER_H
+#define ALITOFDACONFIGHANDLER_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * * See cxx source for full Copyright notice */
+/* $Id$ */
+
+////////////////////////////////////////////////////////////////////////////
+//                                                                        //
+//  The SAX XML file handler used by the TOF DA for PHYSICS runs          //
+//  to get the necessary flags to run (e.g. debug flag)                   //
+//                                                                        //
+//  Chiara.Zampolli (Chiara.Zampolli@cern.ch)                             //
+//                                                                        //
+////////////////////////////////////////////////////////////////////////////
+
+#include <TObject.h>
+class TString;
+
+class AliTOFDaConfigHandler : public TObject {
+
+public:
+
+  AliTOFDaConfigHandler();
+  AliTOFDaConfigHandler(const AliTOFDaConfigHandler &sh);
+  virtual ~AliTOFDaConfigHandler();
+  AliTOFDaConfigHandler &operator=(const AliTOFDaConfigHandler &sh);
+
+  // functions to interface to TSAXHandler
+  void          OnStartDocument();
+  void          OnEndDocument();
+  void          OnStartElement(const char *name, const TList *attributes);
+  void          OnEndElement(const char *name);
+  void          OnCharacters(const char *name);
+  void          OnComment(const char *name);
+  void          OnWarning(const char *name);
+  void          OnError(const char *name);
+  void          OnFatalError(const char *name);
+  void          OnCdataBlock(const char *name, Int_t len);
+
+  Int_t GetDebugFlag() const {return fDebugFlag;}
+  Int_t GetT0Flag() const {return fT0Flag;}
+
+ private:
+  Int_t fDebugFlag;          // debug flag: 0-->off, 1-->first level of debug, 2-->second level of debug, 3-->third level of debug
+  Int_t fT0Flag;             // flag for using T0: 0-->off, 1-->on
+
+  ClassDef(AliTOFDaConfigHandler,0);  
+};
+#endif
+