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) //
13 // Roberto Preghenella (R+) (preghenella@bo.infn.it) //
16 ////////////////////////////////////////////////////////////////////////////
21 class AliTOFDaConfigHandler : public TObject {
25 AliTOFDaConfigHandler();
26 AliTOFDaConfigHandler(const AliTOFDaConfigHandler &sh);
27 virtual ~AliTOFDaConfigHandler();
28 AliTOFDaConfigHandler &operator=(const AliTOFDaConfigHandler &sh);
30 // functions to interface to TSAXHandler
31 void OnStartDocument();
33 void OnStartElement(const char *name, const TList *attributes);
34 void OnEndElement(const char *name);
35 void OnCharacters(const char *name);
36 void OnComment(const char *name);
37 void OnWarning(const char *name);
38 void OnError(const char *name);
39 void OnFatalError(const char *name);
40 void OnCdataBlock(const char *name, Int_t len);
42 Int_t GetMeanMultiplicity() const {return fMeanMultiplicity;};
43 Int_t GetMaxHits() const {return fMaxHits;};
47 Int_t fMeanMultiplicity; // mean multiplicity
48 Int_t fMaxHits; // max hits
50 ClassDef(AliTOFDaConfigHandler,1);