Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4RadiatorDescription.cxx
Go to the documentation of this file.
1//------------------------------------------------
2// The Geant4 Virtual Monte Carlo package
3// Copyright (C) 2007 - 2015 Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see geant4_vmc/LICENSE.
7// Contact: root-vmc@cern.ch
8//-------------------------------------------------
9
14
16#include "TG4Globals.h"
17
18//_____________________________________________________________________________
20 : fVolumeName(volumeName),
21 fXtrModel(""),
22 fFoilNumber(0),
23 fLayers(),
24 fStrawTube{ "", 0., 0. }
25{
27}
28
29//_____________________________________________________________________________
34
35//_____________________________________________________________________________
37 const G4String& materialName, G4double thickness, G4double fluctuation)
38{
39 fLayers.push_back(std::make_tuple(materialName, thickness, fluctuation));
40}
41
42//_____________________________________________________________________________
44 const G4String& materialName, G4double wallThickness, G4double gasThickness)
45{
46 fStrawTube = std::make_tuple(materialName, wallThickness, gasThickness);
47}
48
49//_____________________________________________________________________________
51 G4int i) const
52{
53 if (i >= G4int(fLayers.size())) {
54 TString text = "The layer ";
55 text += i;
56 text += " is not defined.";
57 TG4Globals::Warning("TG4RadiatorDescription", "GetLayer", text);
58 return std::make_tuple("", 0., 0.);
59 }
60 return fLayers[i];
61}
Definition of the TG4Globals class and basic container types.
Definition of the TG4RadiatorDescription class.
static void Warning(const TString &className, const TString &methodName, const TString &text)
TG4RadiatorDescription(const G4String &volumeName="")
std::tuple< G4String, G4double, G4double > Component
void SetStrawTube(const G4String &materialName, G4double wallThickness, G4double gasThickness)
Component GetLayer(G4int i) const
void SetLayer(const G4String &materialName, G4double thickness, G4double fluctuation)
std::vector< Component > fLayers
The layer parameters.
Component fStrawTube
The straw tube parameters.