Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:41

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 //
0027 // --------------------------------------------------------------
0028 //   GEANT 4 - Underground Dark Matter Detector Advanced Example
0029 //
0030 //      For information related to this code contact: Alex Howard
0031 //      e-mail: alexander.howard@cern.ch
0032 // --------------------------------------------------------------
0033 // Comments
0034 //
0035 //                  Underground Advanced
0036 //               by A. Howard and H. Araujo 
0037 //                    (27th November 2001)
0038 //
0039 // DetectorConstruction header
0040 // --------------------------------------------------------------
0041 
0042 #ifndef DMXDetectorConstruction_h
0043 #define DMXDetectorConstruction_h 1
0044 
0045 #include "G4VUserDetectorConstruction.hh"
0046 #include "globals.hh"
0047 #include "G4Cache.hh"
0048 
0049 class G4LogicalVolume;
0050 class G4VPhysicalVolume;
0051 class G4Material;
0052 
0053 class G4UserLimits;
0054 
0055 class DMXScintSD;
0056 class DMXPmtSD;
0057 
0058 class DMXDetectorMessenger;
0059 
0060 class DMXDetectorConstruction : public G4VUserDetectorConstruction 
0061 {
0062 public:
0063 
0064   DMXDetectorConstruction();
0065   ~DMXDetectorConstruction();
0066 
0067 public:
0068 
0069   G4VPhysicalVolume* Construct();
0070   void ConstructSDandField();
0071 
0072   void SetRoomEnergyCut(G4double);
0073   void SetEnergyCut(G4double);
0074   void SetTimeCut(G4double);
0075   void SetRoomTimeCut(G4double);
0076  
0077 private:
0078 
0079   void DefineMaterials();
0080 
0081   G4UserLimits*    theUserLimitsForRoom; 
0082   G4UserLimits*    theUserLimitsForDetector; 
0083   //  G4UserLimits*    theUserLimitsForXenon; 
0084 
0085   G4double         theMaxTimeCuts;
0086   G4double         theMaxStepSize;
0087   G4double         theDetectorStepSize;
0088   G4double         theMinEkine;
0089   G4double         theRoomMinEkine;
0090   
0091   G4double         theRoomTimeCut;
0092 
0093 
0094 #include "DMXDetectorMaterial.ihh"  // materials used
0095 
0096   G4double sourceZ;
0097 
0098   G4LogicalVolume*   world_log;        // pointers
0099   G4VPhysicalVolume* world_phys;  
0100 
0101 #include "DMXDetectorRoom.ihh"
0102 
0103   G4LogicalVolume*   lab_log;
0104   G4VPhysicalVolume* lab_phys;  
0105 
0106   G4LogicalVolume*   LN2jacket_log;
0107   G4VPhysicalVolume* LN2jacket_phys;
0108   G4LogicalVolume*   LN2vacuum_log;
0109   G4VPhysicalVolume* LN2vacuum_phys;
0110   G4LogicalVolume*   LN2vessel_log;
0111   G4VPhysicalVolume* LN2vessel_phys;  
0112   G4LogicalVolume*   LN2_log;
0113   G4VPhysicalVolume* LN2_phys;
0114   G4LogicalVolume*   jacket_log;
0115   G4VPhysicalVolume* jacket_phys;
0116   G4LogicalVolume*   jacketflange_log;
0117   G4VPhysicalVolume* topjacketflange_phys;
0118   G4VPhysicalVolume* bottomjacketflange_phys;
0119   G4LogicalVolume*   vacuum_log;
0120   G4VPhysicalVolume* vacuum_phys;
0121   G4LogicalVolume*   copper_log;
0122   G4VPhysicalVolume* copper_phys;
0123   G4LogicalVolume*   coppertop_log;
0124   G4VPhysicalVolume* coppertop_phys;
0125   G4LogicalVolume*   vessel_log;
0126   G4VPhysicalVolume* vessel_phys;
0127   G4LogicalVolume*   vesseltop_log1;
0128   G4VPhysicalVolume* vesseltop_phys1;
0129   G4LogicalVolume*   vesseltop_log2;
0130   G4VPhysicalVolume* vesseltop_phys2;
0131   G4LogicalVolume*   vesselbottom_log1;
0132   G4VPhysicalVolume* vesselbottom_phys1;
0133   G4LogicalVolume*   vesselbottom_log2;
0134   G4VPhysicalVolume* vesselbottom_phys2;
0135   G4LogicalVolume*   pmtvesselbottom_log1;
0136   G4VPhysicalVolume* pmtvesselbottom_phys1;
0137   G4LogicalVolume*   pmtvesselbottom_log2;
0138   G4VPhysicalVolume* pmtvesselbottom_phys2;
0139   G4LogicalVolume*   GXe_log;
0140   G4VPhysicalVolume* GXe_phys;  
0141   G4LogicalVolume*   gaslag_log;
0142   G4VPhysicalVolume* gaslag_phys;  
0143   G4LogicalVolume*   CuShield_log; 
0144   G4VPhysicalVolume* CuShield_phys;  
0145   G4LogicalVolume*   LXe_log; 
0146   G4VPhysicalVolume* LXe_phys;  
0147   G4LogicalVolume*   liqLag_log; 
0148   G4VPhysicalVolume* liqLag_phys;  
0149   G4LogicalVolume*   alpha_log;   
0150   G4VPhysicalVolume* alpha_phys;
0151   G4LogicalVolume*   americium_log;   
0152   G4VPhysicalVolume* americium_phys; 
0153   G4LogicalVolume*   ring_log;   
0154   G4VPhysicalVolume* ring_phys_gas[2]; 
0155   G4VPhysicalVolume* ring_phys_liq[6]; 
0156   G4LogicalVolume*   mirror_log;   
0157   G4VPhysicalVolume* mirror_phys; 
0158   G4LogicalVolume*   grid1_log;   
0159   G4VPhysicalVolume* grid1_phys; 
0160   G4LogicalVolume*   grid2_log;   
0161   G4VPhysicalVolume* grid2_phys; 
0162   G4LogicalVolume*   pmt_log;   
0163   G4VPhysicalVolume* pmt_phys; 
0164   G4LogicalVolume*   phcath_log;
0165   G4VPhysicalVolume* phcath_phys; 
0166 
0167   G4Cache<DMXScintSD*> LXeSD; //pointer to sensitive detectors
0168   G4Cache<DMXPmtSD*> pmtSD;
0169 
0170   // pointer to the Detector Messenger:
0171   DMXDetectorMessenger*  detectorMessenger;
0172 
0173 };
0174 
0175 #endif
0176