Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:17:00

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 // Please cite the following paper if you use this software
0027 // Nucl.Instrum.Meth.B260:20-27, 2007
0028 
0029 #ifndef DetectorConstruction_h
0030 #define DetectorConstruction_h 1
0031 
0032 #include "G4VUserDetectorConstruction.hh"
0033 #include "G4Box.hh"
0034 #include "G4PVPlacement.hh"
0035 #include "G4Mag_UsualEqRhs.hh"
0036 #include "G4TransportationManager.hh"
0037 #include "G4UserLimits.hh"
0038 #include "G4ClassicalRK4.hh"
0039 #include "G4PropagatorInField.hh"
0040 
0041 #include "DetectorMessenger.hh"
0042 #include "TabulatedField3D.hh"
0043 
0044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0045 
0046 class DetectorConstruction : public G4VUserDetectorConstruction
0047 {
0048 public:
0049 
0050   DetectorConstruction();
0051   ~DetectorConstruction();
0052 
0053   G4VPhysicalVolume* Construct();
0054 
0055   void ConstructSDandField();
0056      
0057   void PrintDetectorParameters();
0058  
0059   void SetG1 (G4float);
0060   void SetG2 (G4float);
0061   void SetG3 (G4float);
0062   void SetG4 (G4float);
0063   
0064   G4float GetG1 () {return fG1;};
0065   G4float GetG2 () {return fG2;};
0066   G4float GetG3 () {return fG3;};
0067   G4float GetG4 () {return fG4;};
0068   
0069   G4int GetModel(){return fModel;};
0070   void  SetModel (G4int);
0071   
0072   G4int GetCoef();
0073   void  SetCoef(G4int val);
0074   
0075   G4int GetProfile(){return fProfile;};
0076   void  SetProfile(G4int myProfile);
0077   
0078   G4int GetGrid(){return fGrid;};
0079   void  SetGrid(G4int myGrid);
0080 
0081   G4LogicalVolume* GetLogicalWorld() {return fLogicWorld;};
0082   G4LogicalVolume* GetLogicalVol() {return fLogicVol;};
0083   G4LogicalVolume* GetLogicalGrid() {return fLogicControlVol_GridShadow;};
0084 
0085   G4float fG1, fG2, fG3, fG4;
0086   G4int fModel, fCoef, fProfile, fGrid;
0087 
0088 private:
0089    
0090   void DefineMaterials();
0091   G4VPhysicalVolume* ConstructVolumes();     
0092 
0093   G4VPhysicalVolume* fPhysiWorld;
0094   G4LogicalVolume*   fLogicWorld;  
0095   G4Box*             fSolidWorld;
0096   
0097   G4VPhysicalVolume* fPhysiVol;
0098   G4LogicalVolume*   fLogicVol;  
0099   G4Box*             fSolidVol;
0100   
0101   G4VPhysicalVolume* fPhysiGridVol;
0102   G4LogicalVolume*   fLogicGridVol;  
0103   G4Box*         fSolidGridVol;
0104 
0105   G4VPhysicalVolume* fPhysiGridVol_Hole;
0106   G4LogicalVolume*   fLogicGridVol_Hole;  
0107   G4Box*         fSolidGridVol_Hole;
0108 
0109   G4VPhysicalVolume* fPhysiControlVol_GridShadow;
0110   G4LogicalVolume*   fLogicControlVol_GridShadow;  
0111   G4Box*             fSolidControlVol_GridShadow;
0112 
0113   G4Material*        fDefaultMaterial;
0114   G4Material*        fGridMaterial;
0115 
0116   DetectorMessenger* fDetectorMessenger;
0117   
0118   //
0119   static G4ThreadLocal TabulatedField3D * fField;
0120   
0121 };
0122 #endif
0123 
0124