Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 08:31:09

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 ExP01DetectorConstruction.hh
0027 /// \brief Definition of the ExP01DetectorConstruction class
0028 
0029 #ifndef ExP01DetectorConstruction_h
0030 #define ExP01DetectorConstruction_h 1
0031 
0032 #include "ExP01MagneticField.hh"
0033 
0034 #include "G4VUserDetectorConstruction.hh"
0035 #include "globals.hh"
0036 
0037 class G4Box;
0038 class G4LogicalVolume;
0039 class G4VPhysicalVolume;
0040 class G4Material;
0041 class ExP01DetectorMessenger;
0042 
0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0044 
0045 /// Detector Construction for the persistency example
0046 
0047 class ExP01DetectorConstruction : public G4VUserDetectorConstruction
0048 {
0049   public:
0050     ExP01DetectorConstruction();
0051     ~ExP01DetectorConstruction();
0052 
0053   public:
0054     virtual G4VPhysicalVolume* Construct();
0055 
0056     const G4VPhysicalVolume* GetTracker() { return fPhysiTracker; };
0057     G4double GetTrackerFullLength() { return fTrackerLength; };
0058     G4double GetTargetFullLength() { return fTargetLength; };
0059     G4double GetWorldFullLength() { return fWorldLength; };
0060 
0061     void SetTargetMaterial(G4String);
0062     void SetChamberMaterial(G4String);
0063     void SetMagField(G4double);
0064 
0065   private:
0066     G4Box* fSolidWorld;  // pointer to the solid envelope
0067     G4LogicalVolume* fLogicWorld;  // pointer to the logical envelope
0068     G4VPhysicalVolume* fPhysiWorld;  // pointer to the physical envelope
0069 
0070     G4Box* fSolidTarget;  // pointer to the solid Target
0071     G4LogicalVolume* fLogicTarget;  // pointer to the logical Target
0072     G4VPhysicalVolume* fPhysiTarget;  // pointer to the physical Target
0073 
0074     G4Box* fSolidTracker;  // pointer to the solid Tracker
0075     G4LogicalVolume* fLogicTracker;  // pointer to the logical Tracker
0076     G4VPhysicalVolume* fPhysiTracker;  // pointer to the physical Tracker
0077 
0078     G4Box* fSolidChamber;  // pointer to the solid Chamber
0079     G4LogicalVolume* fLogicChamber;  // pointer to the logical Chamber
0080     G4VPhysicalVolume* fPhysiChamber;  // pointer to the physical Chamber
0081 
0082     G4Material* fTargetMater;  // pointer to the target  material
0083     G4Material* fChamberMater;  // pointer to the chamber material
0084     ExP01MagneticField* fPMagField;  // pointer to the magnetic field
0085 
0086     ExP01DetectorMessenger* fDetectorMessenger;  // pointer to the Messenger
0087 
0088     G4double fWorldLength;  // Full length of the world volume
0089     G4double fTargetLength;  // Full length of Target
0090     G4double fTrackerLength;  // Full length of Tracker
0091     G4int fNbOfChambers;  // Nb of chambers in the tracker region
0092     G4double fChamberWidth;  // width of the chambers
0093     G4double fChamberSpacing;  // distance between chambers
0094 };
0095 
0096 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0097 
0098 #endif