QwGeant4
QweakSimTungstenPlug Class Reference

#include <QweakSimTungstenPlug.hh>

+ Collaboration diagram for QweakSimTungstenPlug:

Public Member Functions

 QweakSimTungstenPlug ()
 Constructor. More...
 
virtual ~QweakSimTungstenPlug ()
 Destructor. More...
 
void ConstructTungstenPlug (G4VPhysicalVolume *)
 
G4VPhysicalVolume * getTungstenPlugPhysicalVolume ()
 

Private Attributes

QweakSimMaterialpMaterial
 
G4LogicalVolume * TungstenPlugLogical
 
G4VPhysicalVolume * TungstenPlugPhysical
 
G4Material * TungstenPlug_Material
 
G4VSensitiveDetector * TungstenPlugSD
 

Detailed Description

Definition at line 27 of file QweakSimTungstenPlug.hh.

Constructor & Destructor Documentation

QweakSimTungstenPlug::QweakSimTungstenPlug ( )

Constructor.

Definition at line 14 of file QweakSimTungstenPlug.cc.

References QweakSimMaterial::GetInstance(), QweakSimMaterial::GetMaterial(), pMaterial, TungstenPlug_Material, TungstenPlugLogical, and TungstenPlugPhysical.

15 {
16  // W-Plug
17  TungstenPlugLogical = NULL;
18  TungstenPlugPhysical = NULL;
19 
20  // get access to material definition
22 
23  // TungstenPlug Material
24  TungstenPlug_Material = pMaterial->GetMaterial("G4_W"); // For now...I thought this was an alloy....
25 }
static QweakSimMaterial * GetInstance()
G4VPhysicalVolume * TungstenPlugPhysical
G4Material * TungstenPlug_Material
QweakSimMaterial * pMaterial
G4Material * GetMaterial(G4String material)
G4LogicalVolume * TungstenPlugLogical

+ Here is the call graph for this function:

QweakSimTungstenPlug::~QweakSimTungstenPlug ( )
virtual

Destructor.

Definition at line 28 of file QweakSimTungstenPlug.cc.

28 { }

Member Function Documentation

void QweakSimTungstenPlug::ConstructTungstenPlug ( G4VPhysicalVolume *  MotherVolume)

Definition at line 31 of file QweakSimTungstenPlug.cc.

References inch, pSurfChk, TungstenPlug_Material, TungstenPlugLogical, TungstenPlugPhysical, and TungstenPlugSD.

Referenced by QweakSimDetectorConstruction::ConstructQweak().

32 {
33  // Dimensions of W-plug
34  // Updated Numbers found on drawings provided by Greg Smith
35  // Page 13 of
36  G4double WPlugOD = 3.125*inch; // Outer Diameter of Plug
37  G4double WPlugID1 = 0.508*inch; // Front Face Inner Diameter
38  G4double WPlugID2 = 0.848*inch; // Rear Face Inner Diameter
39  G4double WPlugLength = 8.250*inch; // Full Length of Conical Section (Upstream end)
40  G4double ZLocation = -579.2895*cm+2.5*inch; // Global Z position of the center of the W Plug
41 
42  // Define Upstream W-plug
43  G4Cons* TungstenPlugSolid = new G4Cons("TungstenPlugSolid",
44  WPlugID1/2.0,
45  WPlugOD/2.0,
46  WPlugID2/2.0,
47  WPlugOD/2.0,
48  WPlugLength/2.0,
49  0,
50  360*degree);
51 
52  TungstenPlugLogical = new G4LogicalVolume(TungstenPlugSolid,
54  "TungstenPlugLogical");
55 
56  TungstenPlugPhysical = new G4PVPlacement(0,
57  G4ThreeVector(0.0,0.0,ZLocation), // plug position
58  "TungstenPlugPhysical",
60  MotherVolume,
61  false,
62  0,
63  pSurfChk);
64 
65  ////////////////////////////////////
66  // Define Visulization Attributes //
67  ////////////////////////////////////
68 
69  G4Colour red(1.,0.,0.);
70  G4VisAttributes* TungstenPlug_VisAtt = new G4VisAttributes(red);
71  TungstenPlug_VisAtt->SetVisibility(true);
72  TungstenPlugLogical->SetVisAttributes(TungstenPlug_VisAtt);
73 
74  ////////////////////////////////////
75  // Define Sensitive Detectors //
76  ////////////////////////////////////
77 
78  G4SDManager* SDman = G4SDManager::GetSDMpointer();
79 
80  TungstenPlugSD = new QweakSimTungstenPlug_DetectorSD("TungstenPlugSD");
81  SDman->AddNewDetector(TungstenPlugSD);
82  TungstenPlugLogical->SetSensitiveDetector(TungstenPlugSD);
83 
84 }
G4VSensitiveDetector * TungstenPlugSD
G4VPhysicalVolume * TungstenPlugPhysical
static const G4double inch
G4Material * TungstenPlug_Material
G4LogicalVolume * TungstenPlugLogical
static const G4bool pSurfChk

+ Here is the caller graph for this function:

G4VPhysicalVolume* QweakSimTungstenPlug::getTungstenPlugPhysicalVolume ( )
inline

Definition at line 52 of file QweakSimTungstenPlug.hh.

References TungstenPlugPhysical.

Referenced by QweakSimDetectorConstruction::ConstructQweak().

52 {return TungstenPlugPhysical;}
G4VPhysicalVolume * TungstenPlugPhysical

+ Here is the caller graph for this function:

Field Documentation

QweakSimMaterial* QweakSimTungstenPlug::pMaterial
private

Definition at line 32 of file QweakSimTungstenPlug.hh.

Referenced by QweakSimTungstenPlug().

G4Material* QweakSimTungstenPlug::TungstenPlug_Material
private

Definition at line 38 of file QweakSimTungstenPlug.hh.

Referenced by ConstructTungstenPlug(), and QweakSimTungstenPlug().

G4LogicalVolume* QweakSimTungstenPlug::TungstenPlugLogical
private

Definition at line 35 of file QweakSimTungstenPlug.hh.

Referenced by ConstructTungstenPlug(), and QweakSimTungstenPlug().

G4VPhysicalVolume* QweakSimTungstenPlug::TungstenPlugPhysical
private
G4VSensitiveDetector* QweakSimTungstenPlug::TungstenPlugSD
private

Definition at line 41 of file QweakSimTungstenPlug.hh.

Referenced by ConstructTungstenPlug().


The documentation for this class was generated from the following files: