Back to home page

EIC code displayed by LXR

 
 

    


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

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 /// \file FlashDetectorConstruction.hh
0028 
0029 #ifndef FlashDetectorConstruction_h
0030 #define FlashDetectorConstruction_h 1
0031 
0032 #include "G4VUserDetectorConstruction.hh"
0033 #include "globals.hh"
0034 
0035 #include "G4Material.hh"
0036 #include "tls.hh"
0037 #include "G4ThreeVector.hh"
0038 #include "G4UserLimits.hh"
0039 
0040 class G4VPhysicalVolume;
0041 class G4LogicalVolume;
0042 class FlashApplicator;
0043 class G4VSensitiveDetector;
0044 class G4NistManager;
0045 class G4Tubs;
0046 class G4Box;
0047 class G4Element;
0048 class G4VisAttributes;
0049 
0050 
0051 class FlashDetectorMessenger;
0052 
0053 
0054 class FlashDetectorConstruction : public G4VUserDetectorConstruction {
0055 public:
0056   G4VPhysicalVolume *physicalTreatmentRoom;
0057   G4LogicalVolume *logicTreatmentRoom;
0058   G4VPhysicalVolume *ConstructPhantom(G4double CollPos);
0059   G4VPhysicalVolume *ConstructDetector();
0060 
0061   FlashDetectorConstruction();
0062   virtual ~FlashDetectorConstruction();
0063 
0064   virtual G4VPhysicalVolume *Construct();
0065   virtual void ConstructSDandField();
0066 
0067    G4bool  SetPhantomMaterial(G4String material);
0068   G4bool  SetDetectorMaterial(G4String material);
0069   void SetAirGap(G4double position);
0070   void SetPhantomSize(G4double sizeX, G4double sizeY, G4double sizeZ);
0071 
0072   void SetDetectorThickness(G4double thickness);
0073    void SetDetector_subThickness(G4double thickness_sub);
0074   void SetDetectorWidth(G4double width);
0075    void SetDetectorPosition(G4double position);
0076  void SetAirGap_water_detector(G4double spost);
0077 
0078   G4VisAttributes *skyBlue;
0079   G4VisAttributes *red;
0080   G4VisAttributes *blue;
0081   G4VisAttributes *green;
0082 
0083   
0084 private:
0085 
0086   FlashDetectorMessenger* fDetectorMessenger;
0087   
0088   G4Material *airNist;
0089   G4Material *fPhantomMaterial;
0090   FlashApplicator *Collimator;
0091 
0092   G4double fAirGap;
0093   G4double fPhantomSizeX, fPhantomSizeY, fPhantomSizeZ, fPhantom_coordinateX,fPosition_coefficient;
0094   G4ThreeVector fPhantomPosition;
0095   G4double fDet_thickness,fDet_width,fDet_sub_thickness,fDetectorPosition,fAirGap_phantom_det;
0096   G4Element *Si;
0097   G4Element *C;
0098   G4Material *SiC;
0099   G4Material *fDetectorMaterial;
0100 
0101   G4Box *fPhantom;
0102 
0103 
0104   G4Box *fDet_box;
0105   G4LogicalVolume *fDetLogicalVolume;
0106   G4VPhysicalVolume *fDet_phys;
0107 
0108  G4Box *fDet_sub;
0109  G4LogicalVolume *fDet_sub_LogicalVolume;
0110  G4VPhysicalVolume *fDet_sub_phys;
0111 
0112   
0113   void DefineMaterials();
0114 
0115 
0116   G4LogicalVolume *fPhantomLogicalVolume;
0117   G4VPhysicalVolume *fPhant_phys;
0118   G4VPhysicalVolume *fPhantom_physical;
0119     
0120   G4UserLimits *fStepLimit;
0121   G4bool fCheckOverlaps;
0122  
0123   G4NistManager *nist;
0124 
0125 
0126  
0127 
0128 };
0129 
0130 #endif