SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS_SemiConductorGeDF.hh
Go to the documentation of this file.
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 
27 #ifndef SToGS_SemiConductorGeDF_h
28 #define SToGS_SemiConductorGeDF_h 1
29 
30 #include "SToGS_DetectorFactory.hh"
31 
32 class G4Polycone;
33 
35 namespace SToGS {
37 
40 {
41 public:
43  virtual G4VPhysicalVolume * Make(G4String /* name */, G4String /* version_string */);
44 
45 public:
46  // From the two hexagones, the method shapes a polycone by substracting edges.
47  // x/y_front/back are the points defining the hexagone at 0 and z.
48  // The dilatation is used to build the spacing/capsule.
49  // 1 mm means all points of the hexagones are moved by 1mm along their radius
50  // IMPORTANT: the dilatation is not applied to the polycone, the user should add it to the radius and length
51  G4VSolid *AGATAShaper(G4Polycone *polycone,
52  G4double *xfront, G4double *yfront, G4double *xback, G4double *yback,
53  G4double zback,
54  G4double added_dilatation = 0.0);
56 
61  G4VPhysicalVolume *MakeAGATACapsule(G4String which_capsule, G4String opt,
62  G4String geo_file = "DetectorFactory/SemiConductors/Ge/Builders/agata_capsule.geo");
63 
65 
71  G4VPhysicalVolume *MakeAGATACluster(G4String detname, G4String opt,
72  G4String geo_file = "DetectorFactory/SemiConductors/Ge/Builders/agata_cluster.geo");
73 
75  G4VPhysicalVolume *MakeEXOCLOVER(G4String detname, G4String opt = "");
76 
77  // EUROBALL types
78  // Tapered i.e. Phase 1
79  G4VPhysicalVolume *MakeEURO_PI(G4String detname, G4String opt = "");
80  // Clovers i.e. Phase 2
81  G4VPhysicalVolume *MakeEURO_PII(G4String detname, G4String opt = "");
82  // Clovers i.e. Phase 3
83  G4VPhysicalVolume *MakeEURO_PIII(G4String detname, G4String opt = "");
84 
85 public:
86  SemiConductorGeDF(G4String path) : DetectorFactory(path)
87  {;}
89  {;}
90 
92  virtual void MakeStore();
93 };
94 } // SToGS Namespace
95 
96 #endif
97 
98 
G4VPhysicalVolume * MakeAGATACapsule(G4String which_capsule, G4String opt, G4String geo_file="DetectorFactory/SemiConductors/Ge/Builders/agata_capsule.geo")
From asolid file provided by AGATA, get a capsule.
G4VPhysicalVolume * MakeEURO_PII(G4String detname, G4String opt="")
Base classe to build all Ge like detectors.
virtual G4VPhysicalVolume * Make(G4String, G4String)
Should be implemented in any sub factory. It built (C++) a detector and return it.
G4VSolid * AGATAShaper(G4Polycone *polycone, G4double *xfront, G4double *yfront, G4double *xback, G4double *yback, G4double zback, G4double added_dilatation=0.0)
virtual void MakeStore()
build the default store i.e. all the Ge detectors.
Base Factory. This is a container of sub-factories.
G4VPhysicalVolume * MakeEURO_PI(G4String detname, G4String opt="")
G4VPhysicalVolume * MakeAGATACluster(G4String detname, G4String opt, G4String geo_file="DetectorFactory/SemiConductors/Ge/Builders/agata_cluster.geo")
from acluster file, provided by AGATA, get a triple cluter
G4VPhysicalVolume * MakeEXOCLOVER(G4String detname, G4String opt="")
A EXOGAM Clover.
G4VPhysicalVolume * MakeEURO_PIII(G4String detname, G4String opt="")