]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: geometry | |
3 | // | |
7005154f | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class AliDetConstruction | |
7 | // ------------------------ | |
676fb573 | 8 | // Detector construction class with interactive setting of detectors setup |
9 | // available. | |
10 | // In case the detector setup is not defined in Root macro Config.C | |
7005154f | 11 | // the commands /alDet/switchOn/Off can be used either interactively or |
676fb573 | 12 | // in Geant4 macro. |
13 | ||
14 | #ifndef ALI_DET_CONSTRUCTION_H | |
15 | #define ALI_DET_CONSTRUCTION_H | |
16 | ||
17 | #include "AliModulesComposition.h" | |
80ed9a99 | 18 | #include "AliDetSwitchVector.h" |
676fb573 | 19 | |
20 | #include <globals.hh> | |
21 | ||
22 | class G4VPhysicalVolume; | |
23 | ||
24 | class AliDetConstruction : public AliModulesComposition | |
25 | { | |
26 | public: | |
27 | AliDetConstruction(); | |
28 | // --> protected | |
29 | // AliDetConstruction(const AliDetConstruction& right); | |
30 | virtual ~AliDetConstruction(); | |
31 | ||
32 | // methods | |
33 | virtual G4VPhysicalVolume* Construct(); | |
80ed9a99 | 34 | virtual void GenerateXMLGeometry() const; |
676fb573 | 35 | |
36 | protected: | |
37 | AliDetConstruction(const AliDetConstruction& right); | |
38 | ||
39 | // operators | |
40 | AliDetConstruction& operator=(const AliDetConstruction& right); | |
41 | ||
42 | private: | |
43 | // methods | |
44 | void BuildDetectors(); | |
45 | void CreateDetectors(); | |
46 | void CheckDetDependencies(); | |
47 | ||
48 | // data members | |
80ed9a99 | 49 | AliDetSwitchVector fDetSwitchVector; //vector of AliDetSwitch |
676fb573 | 50 | }; |
51 | ||
676fb573 | 52 | #endif //ALI_DET_CONSTRUCTION_H |
53 |