// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // $Id: RangeTelescopeConstruction.hh,v 1.2 2006/06/29 16:57:29 gunter Exp $ // GEANT4 tag $Name: geant4-09-03-patch-02 $ // //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #ifndef RangeTelescopeConstruction_h #define RangeTelescopeConstruction_h 1 #include "G4VUserDetectorConstruction.hh" #include "globals.hh" #include "G4ThreeVector.hh" #include "G4Region.hh" class G4LogicalVolume; class G4Material; class G4UniformMagField; class MaterialDefinitions; class RangeTelescopeConstructionMessenger; const G4int MaxTally = 20; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... class RangeTelescopeConstruction { public: RangeTelescopeConstruction(); ~RangeTelescopeConstruction(); public: void SetAbsSizeZ (G4double); void SetAbsSizeXY (G4double); void SetAbsMaterial (G4String); void SetDisSizeZ (G4double); void SetAbs2SizeZ (G4double); void SetAbs2SizeXY (G4double); void SetAbs2Material (G4String); void SetEpiSizeZ (G4double); void SetEpiSizeXY (G4double); void SetEpiMaterial (G4String); void SetSubSizeZ (G4double); void SetSubSizeXY (G4double); void SetSubMaterial (G4String); void SetMagField (G4double); void SetworldizeX(); void SetStripMaterial(G4String); void SetTallySize (G4ThreeVector); void SetTallyMaterial (G4String); void SetTallyPosition (G4ThreeVector); void SetRTtype (G4String); void SetStripX(G4double); void SetStripYZ(G4double); void SetAirgapSizeZ(G4double); void SetTrackerAirgapX(G4double); void SetNoModuleTracker(G4int); void SetNoModuleRT(G4int); void SetFrontFacePosition(G4ThreeVector); void Construct(); void ConstructVolumes(G4LogicalVolume*); bool ConstructRangeTelescope(); void ConstructRangeTelescope(G4bool construct); void CalculatePositions(); void ConstructSDandField(); // void UpdateGeometry(); public: G4double GetWorldSizeZ() {return worldSizeZ;}; G4double GetWorldSizeXY() {return worldSizeXY;}; G4Material* GetWorldMaterial() {return worldMaterial;}; G4double GetAbsorSizeZ() {return absorSizeZ;}; G4double GetAbsorSizeXY() {return absorSizeXY;}; G4Material* GetAbsorMaterial() {return absorMaterial;}; G4double GetAbsor2SizeZ() {return absor2SizeZ;}; G4double GetAbsor2SizeXY() {return absor2SizeXY;}; G4Material* GetAbsor2Material() {return absor2Material;}; G4LogicalVolume* GetLogicalTally() {return lTally;} G4double GetTallyMass() {return tallyMass;}; G4int GetTallyNumber() {return tallyNumber;}; void PrintParameters(); private: G4Region* telRegion; G4double worldSizeZ; G4double worldSizeXY; G4Material* worldMaterial; G4double distanceX; G4double absorSizeZ; G4double absorSizeXY; G4Material* absorMaterial; G4double absor2SizeZ; G4double absor2SizeXY; G4Material* absor2Material; G4double EpiSizeZ; G4double EpiSizeXY; G4double airgap; G4double ModuleXY; G4double ModuleZ; G4Material* EpiMaterial; G4double SubSizeZ; G4double SubSizeXY; G4double DummySizeX; G4double DummySizeY; G4double DummySizeZ; G4int NoModulesRT; G4int StripNoMod; G4double RTelX; G4double RTelY; G4double RTelZ; G4Material* SubMaterial; G4Material* ModMaterial; G4double StripXY; G4double StripSizeZ; G4double StripAirgap; G4double StripReplica; G4double StripModuleZ; G4Material* StripMaterial; G4ThreeVector FrontFacePositon; G4ThreeVector RTPosition; G4UniformMagField* magField; G4LogicalVolume* lAbsor; G4LogicalVolume* lAbsor2; G4LogicalVolume* lEpi; G4LogicalVolume* lSub; G4LogicalVolume* lBox; G4LogicalVolume* lTel; G4LogicalVolume* lMod; G4LogicalVolume* lStrip1; G4LogicalVolume* lStrip2; G4LogicalVolume* lStripMod1; G4LogicalVolume* lStripMod2; G4LogicalVolume* lStripSi; G4LogicalVolume* lStripRT; G4LogicalVolume* lWorld; G4VPhysicalVolume* pWorld; G4String RTtype; G4double AirgapRT; G4ThreeVector tallySize; G4Material* tallyMaterial; G4double tallyMass; G4int tallyNumber; G4ThreeVector* tallyPosition; G4LogicalVolume* lTally; MaterialDefinitions* materialDefinition; RangeTelescopeConstructionMessenger* detectorMessenger; G4bool constructRT; private: void DefineMaterials(); }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif