/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Functions
XmlDetDesc::MCS Namespace Reference

Functions

def configure

Function Documentation

def XmlDetDesc::MCS::configure (   argv = None)
Configure the MCS geometry module with (radius, height, angle) or (r,z,phi)

Each quantity should be a number multiplied to a unit.  Eg:

200*mm -1*m 240*degree

Definition at line 8 of file MCS.py.

00009                         :
00010     '''
00011     Configure the MCS geometry module with (radius, height, angle) or (r,z,phi)
00012 
00013     Each quantity should be a number multiplied to a unit.  Eg:
00014 
00015     200*mm -1*m 240*degree
00016     '''
00017     radius, height, angle = argv
00018     
00019     # turn on / hook in the MCS to the nominal geometry.xml/structure.xml
00020     os.environ['DD_GEOMETRY_EXTRA'] = '<catalogref href="ManualCalibration/geometry.xml#ManualCalibration"/>'
00021     os.environ['DD_STRUCTURE_EXTRA'] = '<catalogref href="ManualCalibration/structure.xml#ManualCalibration"/>'
00022 
00023     # hook in the physical volumes to the AD/GDS.xml file
00024     os.environ['DD_AD_GDS_EE'] = '''
00025 <!ENTITY MCSParameters SYSTEM "../ManualCalibration/parameters.xml">
00026 <!ENTITY MCSPhysVols SYSTEM "../ManualCalibration/physvols.xml">
00027 '''
00028     os.environ['DD_AD_GDS_TOP'] = '&MCSParameters;'
00029     os.environ['DD_AD_GDS_PV'] = '&MCSPhysVols;'
00030 
00031     # set the location parameters which are in the ManualCalibration/parameters.xml file
00032     os.environ['MCS_SOURCE_RADIUS'] = radius
00033     os.environ['MCS_SOURCE_HEIGHT'] = height
00034     os.environ['MCS_SOURCE_ANGLE'] = angle
00035 
00036     return
00037     
00038 
00039 
00040 
00041 
00042 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:07 for XmlDetDesc by doxygen 1.7.4