[807] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // $Id: A01DetectorConstruction.hh,v 1.5 2006/06/29 16:30:50 gunter Exp $ |
---|
| 27 | // -------------------------------------------------------------- |
---|
| 28 | // |
---|
| 29 | |
---|
| 30 | #ifndef A01DetectorConstruction_h |
---|
| 31 | #define A01DetectorConstruction_h 1 |
---|
| 32 | |
---|
| 33 | #include "globals.hh" |
---|
| 34 | #include "G4VUserDetectorConstruction.hh" |
---|
| 35 | #include "G4RotationMatrix.hh" |
---|
| 36 | |
---|
| 37 | class G4VPhysicalVolume; |
---|
| 38 | class G4Material; |
---|
| 39 | class G4VSensitiveDetector; |
---|
| 40 | class G4VisAttributes; |
---|
| 41 | class A01DetectorConstMessenger; |
---|
| 42 | class A01MagneticField; |
---|
| 43 | |
---|
| 44 | class A01DetectorConstruction : public G4VUserDetectorConstruction |
---|
| 45 | { |
---|
| 46 | public: |
---|
| 47 | A01DetectorConstruction(); |
---|
| 48 | virtual ~A01DetectorConstruction(); |
---|
| 49 | |
---|
| 50 | public: |
---|
| 51 | virtual G4VPhysicalVolume* Construct(); |
---|
| 52 | void SetArmAngle(G4double val); |
---|
| 53 | inline G4double GetArmAngle() { return armAngle; } |
---|
| 54 | |
---|
| 55 | private: |
---|
| 56 | void ConstructMaterials(); |
---|
| 57 | void DestroyMaterials(); |
---|
| 58 | void DumpGeometricalTree(G4VPhysicalVolume* aVolume,G4int depth=0); |
---|
| 59 | |
---|
| 60 | private: |
---|
| 61 | A01DetectorConstMessenger* messenger; |
---|
| 62 | A01MagneticField* magneticField; |
---|
| 63 | |
---|
| 64 | G4Material* air; |
---|
| 65 | G4Material* argonGas; |
---|
| 66 | G4Material* scintillator; |
---|
| 67 | G4Material* CsI; |
---|
| 68 | //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
---|
| 69 | G4Material* lead; |
---|
| 70 | //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
---|
| 71 | |
---|
| 72 | G4VisAttributes* worldVisAtt; |
---|
| 73 | G4VisAttributes* magneticVisAtt; |
---|
| 74 | G4VisAttributes* armVisAtt; |
---|
| 75 | G4VisAttributes* hodoscopeVisAtt; |
---|
| 76 | G4VisAttributes* chamberVisAtt; |
---|
| 77 | G4VisAttributes* wirePlaneVisAtt; |
---|
| 78 | G4VisAttributes* EMcalorimeterVisAtt; |
---|
| 79 | G4VisAttributes* cellVisAtt; |
---|
| 80 | //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
---|
| 81 | G4VisAttributes* HadCalorimeterVisAtt; |
---|
| 82 | G4VisAttributes* HadCalorimeterCellVisAtt; |
---|
| 83 | //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
---|
| 84 | |
---|
| 85 | G4double armAngle; |
---|
| 86 | G4RotationMatrix* armRotation; |
---|
| 87 | G4VPhysicalVolume* secondArmPhys; |
---|
| 88 | }; |
---|
| 89 | |
---|
| 90 | #endif |
---|
| 91 | |
---|