92 lines
3.4 KiB
C++
92 lines
3.4 KiB
C++
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
// $Id: A01DetectorConstruction.hh,v 1.5 2006/06/29 16:30:50 gunter Exp $
|
|
// --------------------------------------------------------------
|
|
//
|
|
|
|
#ifndef A01DetectorConstruction_h
|
|
#define A01DetectorConstruction_h 1
|
|
|
|
#include "globals.hh"
|
|
#include "G4VUserDetectorConstruction.hh"
|
|
#include "G4RotationMatrix.hh"
|
|
|
|
class G4VPhysicalVolume;
|
|
class G4Material;
|
|
class G4VSensitiveDetector;
|
|
class G4VisAttributes;
|
|
class A01DetectorConstMessenger;
|
|
class A01MagneticField;
|
|
|
|
class A01DetectorConstruction : public G4VUserDetectorConstruction
|
|
{
|
|
public:
|
|
A01DetectorConstruction();
|
|
virtual ~A01DetectorConstruction();
|
|
|
|
public:
|
|
virtual G4VPhysicalVolume* Construct();
|
|
void SetArmAngle(G4double val);
|
|
inline G4double GetArmAngle() { return armAngle; }
|
|
|
|
private:
|
|
void ConstructMaterials();
|
|
void DestroyMaterials();
|
|
void DumpGeometricalTree(G4VPhysicalVolume* aVolume,G4int depth=0);
|
|
|
|
private:
|
|
A01DetectorConstMessenger* messenger;
|
|
A01MagneticField* magneticField;
|
|
|
|
G4Material* air;
|
|
G4Material* argonGas;
|
|
G4Material* scintillator;
|
|
G4Material* CsI;
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
G4Material* lead;
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
G4VisAttributes* worldVisAtt;
|
|
G4VisAttributes* magneticVisAtt;
|
|
G4VisAttributes* armVisAtt;
|
|
G4VisAttributes* hodoscopeVisAtt;
|
|
G4VisAttributes* chamberVisAtt;
|
|
G4VisAttributes* wirePlaneVisAtt;
|
|
G4VisAttributes* EMcalorimeterVisAtt;
|
|
G4VisAttributes* cellVisAtt;
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
G4VisAttributes* HadCalorimeterVisAtt;
|
|
G4VisAttributes* HadCalorimeterCellVisAtt;
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
G4double armAngle;
|
|
G4RotationMatrix* armRotation;
|
|
G4VPhysicalVolume* secondArmPhys;
|
|
};
|
|
|
|
#endif
|
|
|