StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiMasterDetectorBuilder.h
1 #ifndef StiMasterDetectorBuilder_H
2 #define StiMasterDetectorBuilder_H
3 #include <vector>
4 #include "StiDetectorBuilder.h"
5 
6 class StiMasterDetectorBuilder : public StiDetectorBuilder, public vector<StiDetectorBuilder*>
7 {
8 public:
9  StiMasterDetectorBuilder(bool active);
10  virtual ~StiMasterDetectorBuilder();
11  virtual bool hasMore() const;
12  virtual StiDetector * next();
13  virtual void reset();
14  virtual void unset(){;}
15  virtual void build(StMaker&source);
16  virtual void add(StiDetectorBuilder *builder);
17  virtual StiDetectorBuilder * get(const string & name);
18  virtual StiMaterial * add(StiMaterial *material) {return StiDetectorBuilder::add(material);}
19  virtual StiShape * add(StiShape *shape) {return StiDetectorBuilder::add(shape);}
20  virtual StiDetector * add(StiDetector *detector) {return StiDetectorBuilder::add(detector);}
21  virtual StiDetector * add(unsigned int row, unsigned int sector, StiDetector *detector)
22  {return StiDetectorBuilder::add(row,sector,detector);}
23 };
24 
25 #endif
virtual void build(StMaker &source)
virtual StiDetector * add(StiDetector *detector)