Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:16:35

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 // (adapted from B1DetectorConstruction)
0028 // Author: A.Knaian (ara@nklabs.com), N.MacFadden (natemacfadden@gmail.com)
0029 
0030 #ifndef DetectorConstruction_h
0031 #define DetectorConstruction_h 1
0032 
0033 #include "G4VUserDetectorConstruction.hh"
0034 #include "globals.hh"
0035 
0036 #include "FastAerosol.hh"
0037 
0038 #include "G4UserLimits.hh"
0039 
0040 class G4VPhysicalVolume;
0041 class G4LogicalVolume;
0042 class DetectorConstructionMessenger;
0043 
0044 /// Detector construction class to define materials and geometry.
0045 
0046 class DetectorConstruction : public G4VUserDetectorConstruction
0047 {
0048 public:
0049  explicit DetectorConstruction();
0050  virtual ~DetectorConstruction();
0051  virtual G4VPhysicalVolume* Construct() override;
0052     
0053  G4LogicalVolume* GetScoringVolume() const { return fScoringVolume; }
0054 
0055  // Physics
0056  G4double fStepLim = DBL_MAX;// global step limit
0057  G4UserLimits* fStepLimits;// physics implementation of limit
0058 
0059  // Cloud build choice
0060  G4bool fFastAerosolCloud = false;
0061  G4bool fParameterisedCloud = false;
0062  G4bool fSmoothCloud = false;
0063 
0064  // Cloud droplet details
0065  G4double fDropletR = 1;
0066 
0067  // FastAerosol cloud details
0068  FastAerosol* fCloud = NULL; // the cloud bulk and droplet positions
0069  
0070  G4bool fPrePopulate = false;
0071  // whether to pre-load droplet positions (true) or not (false)
0072  G4double fDropletNumDens = 0; //number density of droplets
0073  G4double fMinSpacing = 0.0;// minimum spacing between droplets
0074  G4int fCloudSeed = 0; // random seed dictating droplet distribution
0075 
0076  // parameterised cloud details
0077  G4double fSmartless = 2.0;             
0078  // control the 'fSmartless' property of parameterised solid. Roughly how many voxels the volume is split into for geometry optimization
0079 
0080  G4String fCloudShapeStr = "box";        // cloud bulk shape
0081  G4String fDropletShapeStr = "sphere";  // droplet shape
0082 
0083  G4VSolid* fCloudShape; // actual cloud bulk shape
0084  G4VSolid* fDropletShape;// actual droplet solid
0085 
0086 protected:
0087  G4LogicalVolume*  fScoringVolume;
0088 
0089 private:
0090  DetectorConstructionMessenger* fMessenger;
0091 };
0092 
0093 #endif
0094