// $Id$ // Category: geometry // // Detector construction class with interactive setting of detectors setup // available. // In case the detector setup is not defined in Root macro Config.C // commands /alDet/switchOn/Off can be used either interactively or // in Geant4 macro. #ifndef ALI_DET_CONSTRUCTION_H #define ALI_DET_CONSTRUCTION_H #include "AliModulesComposition.h" #include class G4VPhysicalVolume; class AliDetConstruction : public AliModulesComposition { public: AliDetConstruction(); // --> protected // AliDetConstruction(const AliDetConstruction& right); virtual ~AliDetConstruction(); // methods virtual G4VPhysicalVolume* Construct(); // set methods void SetTopVolumeName(G4String name); protected: AliDetConstruction(const AliDetConstruction& right); // operators AliDetConstruction& operator=(const AliDetConstruction& right); private: // methods void BuildDetectors(); void CreateDetectors(); void CheckDetDependencies(); // data members G4String fTopVolumeName; //top volume name }; // inline methods inline void AliDetConstruction::SetTopVolumeName(G4String name) { fTopVolumeName = name; } #endif //ALI_DET_CONSTRUCTION_H