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

In This Package:

Public Member Functions | Public Attributes
Configure::Configure::Configure Class Reference

List of all members.

Public Member Functions

def __init__
def addStages

Public Attributes

 stages

Detailed Description

Configure Stages for "pull mode" simulation.

Definition at line 3 of file Configure.py.


Constructor & Destructor Documentation

def Configure::Configure::Configure::__init__ (   self,
  stages = [] 
)
Configure given stages.

Resulting object will have one data member named after each
Stage that holds the configurable for that stage.  Each stage
will be configured with a GaudiSequencer named with the stage
name prepended to "Sequence".  The sequencer is also available
as a data member.  If "ordered" is True, then connect up the
stages in the order given in "stages".

Definition at line 9 of file Configure.py.

00010                                 :
00011         '''
00012         Configure given stages.
00013         
00014         Resulting object will have one data member named after each
00015         Stage that holds the configurable for that stage.  Each stage
00016         will be configured with a GaudiSequencer named with the stage
00017         name prepended to "Sequence".  The sequencer is also available
00018         as a data member.  If "ordered" is True, then connect up the
00019         stages in the order given in "stages".
00020         '''
00021 
00022         self.stages = []
00023         self.addStages(stages)
00024         return


Member Function Documentation

def Configure::Configure::Configure::addStages (   self,
  stages 
)

Definition at line 25 of file Configure.py.

00026                               :
00027 
00028         from StageConf import Stage
00029         from GaudiAlg.GaudiAlgConf import GaudiSequencer
00030         
00031         from Gaudi.Configuration import ToolSvc
00032         toolSvc = ToolSvc()
00033 
00034         for cnf in stages:
00035             if type(cnf) == str: # convert from name to configureable if needed
00036                 cnf = Stage(cnf)
00037 
00038             stage = cnf.name()  # get name before adding seq to toolsvc
00039             toolSvc += cnf
00040             seqName = stage + 'Sequence'
00041             if seqName.find("ToolSvc.") != -1:
00042                 seqName = seqName.replace ( 'ToolSvc.', '' )
00043             seq = GaudiSequencer(seqName)
00044             cnf.Sequencer = seqName
00045             print 'Adding stage named',cnf.name(),'seq named',seq.name()
00046             self.__dict__[stage] = cnf
00047             self.__dict__[seqName] = seq
00048             continue
00049 
00050         self.stages += stages
00051         return
00052 


Member Data Documentation

Definition at line 18 of file Configure.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:07:33 for Stage by doxygen 1.7.4