Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomBeamBlock Class Reference

#include <DicomBeamBlock.hh>

Public Member Functions

 DicomBeamBlock (DRTBlockSequenceInRTBeamsModule::Item bcompItem)
 
 ~DicomBeamBlock ()
 
void Print (std::ostream &out)
 
void DumpToFile (std::ofstream &out)
 

Detailed Description

Definition at line 34 of file DicomBeamBlock.hh.

Constructor & Destructor Documentation

DicomBeamBlock::DicomBeamBlock ( DRTBlockSequenceInRTBeamsModule::Item  bcompItem)

Definition at line 32 of file DicomBeamBlock.cc.

33 {
34  OFString fstr;
35  Sint32 fint;
36  Float64 ffloat;
37  OFVector<Float64> fvfloat;
38  OFCondition cond;
39  G4cout << " DicomBeamBlock::DicomBeamBlock " << G4endl;
40 
41  bblItem.getBlockName(fstr);
42  bblItem.getBlockType(fstr);
43  bblItem.getBlockNumber(fint);
44  theBlockNumber = fint;
45  G4cout << " Number " << fint << G4endl;
46  bblItem.getBlockTrayID(fstr);
47  bblItem.getMaterialID(fstr);
48  bblItem.getBlockNumberOfPoints(fint);
49  bblItem.getBlockData(fvfloat);
50 
51  bblItem.getSourceToBlockTrayDistance(ffloat);
52  theSourceToBlockTrayDistance = ffloat;
53 
54  bblItem.getBlockMountingPosition(fstr);
55  theBlockMountingPosition = fstr;
56 
57  bblItem.getBlockDivergence(fstr);
58  bblItem.getBlockThickness(ffloat);
59  bblItem.getBlockTransmission(ffloat);
60 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
DicomBeamBlock::~DicomBeamBlock ( )
inline

Definition at line 38 of file DicomBeamBlock.hh.

38 {};

Member Function Documentation

void DicomBeamBlock::DumpToFile ( std::ofstream &  out)

Definition at line 69 of file DicomBeamBlock.cc.

70 {
71  std::string name = ":P BLOCK_" + G4UIcommand::ConvertToString(theBlockNumber) + "_";
72 
73  fout << ":PS BLOCK_POS " << theBlockMountingPosition << G4endl;
74 
75  fout << name << "SourceToBlockTrayDistance " << theSourceToBlockTrayDistance << G4endl;
76 
77 }
const XML_Char * name
Definition: expat.h:151
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:372
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void DicomBeamBlock::Print ( std::ostream &  out)

Definition at line 63 of file DicomBeamBlock.cc.

64 {
65 
66 }

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