Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:05

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /// \file electromagnetic/TestEm9/include/DetectorConstruction.hh
0027 /// \brief Definition of the DetectorConstruction class
0028 //
0029 //
0030 //
0031 /////////////////////////////////////////////////////////////////////////
0032 //
0033 // TestEm9: Cryslal calorimetry
0034 //
0035 // Created: 31.01.03 V.Ivanchenko
0036 //
0037 // Modified:
0038 //
0039 ////////////////////////////////////////////////////////////////////////
0040 //
0041 
0042 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0044 
0045 #ifndef DetectorConstruction_h
0046 #define DetectorConstruction_h 1
0047 
0048 #include "G4Material.hh"
0049 #include "G4ThreeVector.hh"
0050 #include "G4VPhysicalVolume.hh"
0051 #include "G4VUserDetectorConstruction.hh"
0052 #include "globals.hh"
0053 
0054 class G4Tubs;
0055 class G4LogicalVolume;
0056 class G4UniformMagField;
0057 class DetectorMessenger;
0058 class G4Region;
0059 class G4ProductionCuts;
0060 
0061 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0062 
0063 class DetectorConstruction : public G4VUserDetectorConstruction
0064 {
0065   public:
0066     DetectorConstruction();
0067     virtual ~DetectorConstruction();
0068 
0069     virtual G4VPhysicalVolume* Construct();
0070 
0071     void SetEcalMaterial(const G4String&);
0072     void SetAbsMaterial(const G4String&);
0073     void SetEcalLength(G4double val);
0074     void SetEcalWidth(G4double val);
0075     void SetVertexLength(G4double val);
0076     void SetPadLength(G4double val);
0077     void SetPadWidth(G4double val);
0078     void SetAbsLength(G4double val);
0079 
0080     void UpdateGeometry();
0081 
0082     inline G4double GetWorldSizeZ() { return fWorldZ; }
0083 
0084   private:
0085     void DefineMaterials();
0086     G4VPhysicalVolume* ConstructVolumes();
0087 
0088     DetectorConstruction& operator=(const DetectorConstruction& right);
0089     DetectorConstruction(const DetectorConstruction&);
0090 
0091     G4double fEcalLength;
0092     G4double fEcalWidth;
0093     G4double fVertexLength;
0094     G4double fPadLength;
0095     G4double fPadWidth;
0096     G4double fAbsLength;
0097     G4double fWorldZ;
0098 
0099     G4Material* fCalMaterial;
0100     G4Material* fVertMaterial;
0101     G4Material* fAbsMaterial;
0102     G4Material* fWorldMaterial;
0103     G4Material* fYorkMaterial;
0104 
0105     G4LogicalVolume* fLogicWorld;
0106     G4LogicalVolume* fLogicCal;
0107     G4LogicalVolume* fLogicA1;
0108     G4LogicalVolume* fLogicA2;
0109     G4LogicalVolume* fLogicA3;
0110     G4LogicalVolume* fLogicA4;
0111 
0112     G4Region* fVertexRegion;
0113     G4Region* fMuonRegion;
0114 
0115     G4ProductionCuts* fVertexDetectorCuts;
0116     G4ProductionCuts* fMuonDetectorCuts;
0117 
0118     DetectorMessenger* fDetectorMessenger;  // pointer to the Messenger
0119 };
0120 
0121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0122 
0123 #endif