#ifndef HSPECTROMETER_H
#define HSPECTROMETER_H

#include "TNamed.h"
#include "TList.h"

class HDetector;
class HParIo;
class HGeomShapes;

class HSpectrometer : public TNamed {
protected:
  TList* detectors;  // List of detectors
  Bool_t changed;    //! flag is kTRUE if the setup changes
  HGeomShapes* shapes;  //! shape class containing the different shapes
public:
  HSpectrometer();
  ~HSpectrometer();
  void addDetector(HDetector* det);
  HDetector* getDetector(const Char_t* name);
  Bool_t init(void);
  void activateParIo(HParIo* io);
  Bool_t write();
  Bool_t write(HParIo* io);
  Bool_t hasChanged() {return changed;}
  void setChanged(Bool_t f=kTRUE) {changed=f;}
  TList* getListOfDetectors() {return detectors;}
  HGeomShapes* getShapes();
  void print();
  ClassDef(HSpectrometer,0) // Class for the spectrometer configuration
};

#endif  /* !HSPECTROMETER_H */


Last change: Sat May 22 13:14:27 2010
Last generated: 2010-05-22 13:14

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.