ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
STCyclotronDetectorConstruction.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file STCyclotronDetectorConstruction.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // Author: F. Poignant, floriane.poignant@gmail.com
27 //
29 
30 #ifndef STCyclotronDetectorConstruction_h
31 #define STCyclotronDetectorConstruction_h 1
32 
34 #include "globals.hh"
35 #include "G4PhysicalConstants.hh"
36 #include <fstream>
37 
38 class G4VPhysicalVolume;
39 class G4LogicalVolume;
40 class G4Region;
41 class G4Tubs;
42 class G4Material;
44 class G4Element;
45 
47 
49 {
50 public:
53 
55  void ConstructSDandField();
56 
60  void SetTargetIsotopeN(G4int );
73 
76  void SetFoilIsotopeN(G4int );
89 
92 
93  //Get methods
103 
104 private:
105 
107 
108  //Messenger parameters
110  std::vector<G4String> fIsotopeName;
111  std::vector<G4double> fIsotopeZ;
112  std::vector<G4int> fIsotopeN;
113  std::vector<G4double> fIsotopeA;
114  std::vector<G4String> fElementName;
115  std::vector<G4String> fElementSymbole;
116  std::vector<G4int> fElementNComponents;
117  std::vector<G4double> fElementAbundance;
118  std::vector<G4String> fNaturalElementName;
119  std::vector<G4double> fNaturalMaterialFractionMass;
122  std::vector<G4double> fMaterialFractionMass;
123 
124  std::vector<G4String> fIsotopeNameFoil;
125  std::vector<G4double> fIsotopeZFoil;
126  std::vector<G4int> fIsotopeNFoil;
127  std::vector<G4double> fIsotopeAFoil;
128  std::vector<G4String> fElementNameFoil;
129  std::vector<G4String> fElementSymboleFoil;
130  std::vector<G4int> fElementNComponentsFoil;
131  std::vector<G4double> fElementAbundanceFoil;
132  std::vector<G4String> fNaturalElementNameFoil;
133  std::vector<G4double> fNaturalMaterialFractionMassFoil;
136  std::vector<G4double> fMaterialFractionMassFoil;
137 
140 
141  //Parameters that are used/modified in the set methods
142  //When modifying the target parameters
143 
144  //Material
147  //Foil
152  //WORLD
154  //PART 3
158  //PART 4
166  //Target
171  //PART 5
178 
181 
184 
185  std::ofstream fParametersSummary;
186 
187 };
188 #endif