This commit was generated by cvs2svn to compensate for changes in r1459,
[u/mrichter/AliRoot.git] / AliGeant4 / AliDetConstruction.h
CommitLineData
676fb573 1// $Id$
2// Category: geometry
3//
4// Detector construction class with interactive setting of detectors setup
5// available.
6// In case the detector setup is not defined in Root macro Config.C
7// commands /alDet/switchOn/Off can be used either interactively or
8// in Geant4 macro.
9
10#ifndef ALI_DET_CONSTRUCTION_H
11#define ALI_DET_CONSTRUCTION_H
12
13#include "AliModulesComposition.h"
14
15#include <globals.hh>
16
17class G4VPhysicalVolume;
18
19class AliDetConstruction : public AliModulesComposition
20{
21 public:
22 AliDetConstruction();
23 // --> protected
24 // AliDetConstruction(const AliDetConstruction& right);
25 virtual ~AliDetConstruction();
26
27 // methods
28 virtual G4VPhysicalVolume* Construct();
29
30 // set methods
31 void SetTopVolumeName(G4String name);
32
33 protected:
34 AliDetConstruction(const AliDetConstruction& right);
35
36 // operators
37 AliDetConstruction& operator=(const AliDetConstruction& right);
38
39 private:
40 // methods
41 void BuildDetectors();
42 void CreateDetectors();
43 void CheckDetDependencies();
44
45 // data members
46 G4String fTopVolumeName; //top volume name
47};
48
49// inline methods
50
51inline void AliDetConstruction::SetTopVolumeName(G4String name)
52{ fTopVolumeName = name; }
53
54#endif //ALI_DET_CONSTRUCTION_H
55