Smaller changes
[u/mrichter/AliRoot.git] / AliGeant4 / AliDetConstruction.h
CommitLineData
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
22class G4VPhysicalVolume;
23
24class 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();
d6c2b863 46 void CheckDependence(const G4String& master, const G4String& slave);
676fb573 47 void CheckDetDependencies();
48
49 // data members
80ed9a99 50 AliDetSwitchVector fDetSwitchVector; //vector of AliDetSwitch
676fb573 51};
52
676fb573 53#endif //ALI_DET_CONSTRUCTION_H
54