SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS_AGATA.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 // $Id: SToGS_AGATA.hh,v 1.8 2006/06/29 17:47:30 gunter Exp $
27 // GEANT4 tag $Name: geant4-08-02 $
28 //
29 #ifndef SToGS_AGATA_h
30 #define SToGS_AGATA_h 1
31 
32 #include "globals.hh"
33 #include "G4VUserDetectorConstruction.hh"
34 
35 // std includes
36 #include <iostream>
37 #include <sstream>
38 #include <fstream>
39 
40 class G4Box;
41 class G4Sphere;
42 class G4LogicalVolume;
43 class G4VPhysicalVolume;
44 class G4Material;
45 class G4Polycone;
46 class G4AssemblyVolume;
47 
48 
50 namespace SToGS {
52 
58  class AGATA : public G4VUserDetectorConstruction
59  {
60  private:
62  G4String faSolid;
63  G4String faCluster;
64  G4String faEuler;
65 
66  private:
67  // From the two hexagones, the method shapes a polycone by substracting edges.
68  // x/y_front/back are the points defining the hexagone at 0 and z.
69  // The dilatation is used to build the spacing/capsule.
70  // 1 mm means all points of the hexagones are moved by 1mm along their radius
71  // IMPORTANT: the dilatation
72  G4VSolid *AGATAShaper(G4Polycone *polycone,
73  G4double *xfront, G4double *yfront, G4double *xback, G4double *yback,
74  G4double zback,
75  G4double added_dilatation = 0.0);
77  G4VPhysicalVolume *PlaceAGATACapsule(G4String which_capsule, G4String opt);
78  G4LogicalVolume *MakeAGATACapsule(G4String which_capsule, G4String opt);
79 
81  G4AssemblyVolume *MakeAGATACluster(G4String opt);
82 
83  public:
85  AGATA() :
86  faSolid("DetectorFactory/SemiConductors/Ge/Builders/agata_capsule.geo"),
87  faCluster("DetectorFactory/SemiConductors/Ge/Builders/agata_cluster.geo"),
88  faEuler("DetectorFactory/SemiConductors/Ge/Builders/agata_euler.geo")
89  {
90  ;
91  }
93  AGATA(G4String filename)
94  {
95  ;
96  }
97  virtual ~AGATA()
98  {
99  ;
100  }
102  virtual G4VPhysicalVolume* Construct();
103 
104  };
105 } // SToGS Namespace
106 
107 #endif
virtual G4VPhysicalVolume * Construct()
One of the mandatory class to be implemented in order to have G4 working properly.
Definition: SToGS_AGATA.cc:437
AGATA()
constructor
Definition: SToGS_AGATA.hh:85
Class to build AGATA from the same configuration files [asolid, acluster, aeuler] that the ones in th...
Definition: SToGS_AGATA.hh:58
virtual ~AGATA()
Definition: SToGS_AGATA.hh:97
AGATA(G4String filename)
TODO read where are builders from a single configuration file.
Definition: SToGS_AGATA.hh:93