Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /geant4/examples/advanced/eRosita/application/include/eRositaDetectorConstruction.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 #ifndef eRositaDetectorConstruction_h
0028 #define eRositaDetectorConstruction_h 1
0029 
0030 #include "globals.hh"
0031 #include "G4VUserDetectorConstruction.hh"
0032 #include "G4SystemOfUnits.hh"
0033 #include "G4VisAttributes.hh"
0034 
0035 class G4Box;
0036 class G4LogicalVolume;
0037 class G4Material;
0038 class G4VPhysicalVolume;
0039 
0040 class eRositaDetectorConstruction : public G4VUserDetectorConstruction {
0041 public:
0042     explicit eRositaDetectorConstruction();
0043     
0044     ~eRositaDetectorConstruction() override;
0045 
0046     auto Construct() -> G4VPhysicalVolume* override;
0047 
0048     auto GetTracker() -> const G4VPhysicalVolume* {
0049         return trackerPhysicalVolume;        
0050     };
0051     
0052     // auto GetTrackerFullLength() -> G4double { return trackerFullLength; };
0053     
0054     // auto GetTargetFullLength() -> G4double { return targetFullLength; };
0055     
0056     // auto GetWorldFullLength() -> G4double { return worldFullLength; };
0057 
0058     void ConstructSDandField() override;
0059 
0060     void SetTargetMaterial(G4String materialName);
0061     
0062     void SetTrackerMaterial(G4String materialName);
0063     
0064     void SetWorldMaterial(G4String materialName);
0065 
0066 private:
0067     // world
0068     G4Box* worldSolid; // solid envelope
0069     G4LogicalVolume* worldLogicalVolume; // logical volume
0070     G4VPhysicalVolume* worldPhysicalVolume; // physical volume
0071     G4VisAttributes* worldVisualizationStyle; // visualization style
0072 
0073     // target
0074     G4Box* targetSolid; // solid
0075     G4LogicalVolume* targetLogicalVolume; // logical volume
0076     G4VPhysicalVolume* targetPhysicalVolume; // physical volume
0077     G4VisAttributes* targetVisualizationStyle; // visualization style
0078 
0079     // tracker
0080     G4Box* trackerSolid; // solid
0081     G4LogicalVolume* trackerLogicalVolume; // logical volume
0082     G4VPhysicalVolume* trackerPhysicalVolume; // physical volume
0083     G4VisAttributes* trackerVisualizationStyle; // visualization style
0084 
0085     // material
0086     G4Material* vacuum;
0087     G4Material* targetMaterial; // target material
0088     G4Material* trackerMaterial; // tracker material
0089     G4Material* worldMaterial; // tracker material
0090     
0091     // size
0092     G4double worldHalfLength; // half length of the world volume
0093     G4double targetHalfLength; // half length of target
0094     G4double targetHalfDepth; // half depth of target
0095     G4double trackerHalfLength; // half length of tracker
0096     G4double trackerHalfDepth; // half depth of tracker
0097 
0098     // spatial position of the target
0099     G4double targetPositionX; // x coordinate
0100     G4double targetPositionY; // y coordinate
0101     G4double targetPositionZ; // z coordinate
0102     
0103     // spatial position of the tracker
0104     G4double trackerPositionX; // x coordinate
0105     G4double trackerPositionY; // y coordinate
0106     G4double trackerPositionZ; // z coordinate
0107 };
0108 #endif