/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
MixItUp::WillItBlend Class Reference

List of all members.

Public Member Functions

def __init__
def configureMixing
def configureElectronic
def configureTrigRead
def configureSingleLoader
def configureSim15
def configure

Public Attributes

 stage_cfg

Detailed Description

Class to configure mixing of different files.

Definition at line 5 of file MixItUp.py.


Constructor & Destructor Documentation

def MixItUp::WillItBlend::__init__ (   self)

Definition at line 11 of file MixItUp.py.

00012                       :
00013         self.stage_cfg = None
00014         return


Member Function Documentation

def MixItUp::WillItBlend::configureMixing (   self,
  streams 
)

Definition at line 15 of file MixItUp.py.

00016                                      :
00017         'Configure mixing'
00018 
00019         from Gaudi.Configuration import ApplicationMgr
00020         theApp = ApplicationMgr()
00021         from LoadingProc.LoadingProcConf import LoadingProc, HsAssembler
00022         from RootIOSvc.RootIOSvcConf import RootIOCnvSvc
00023         from DybIO.DybIOConf import DybInputLoadTool
00024         from DybIO.DybIOConf import DybNextEntryPolicyTool
00025 
00026         for name,rate,filelist in streams:
00027 
00028             lpname = 'LoadingProcFor_'+name
00029             assname = 'AssemblerFor_'+name
00030             iltname = 'LoadToolFor_'+name
00031             nepname = 'NextEntryPolicyFor_'+name
00032             rioname = 'RootIOCnvSvcFor_'+name
00033 
00034             lp = LoadingProc(lpname)
00035             lp.StartSec = 0
00036             lp.StartNano = 0
00037             #lp.Distribution = "Exponential"
00038             lp.Distribution = "Periodic"
00039             lp.Rate = rate
00040             lp.HsAssembler = assname
00041             lp.OutputLevel = 2
00042             lp.ThisStageName = "Detector"
00043             lp.LowerStageName = ""
00044             self.stage_cfg.DetectorSequence.Members.append(lp)
00045 
00046             
00047             ass = HsAssembler(assname)
00048             #ass.Debug = True
00049             ass.OutputLevel = 2
00050             ass.DybInputLoadTool = iltname
00051             ass.DybNextEntryPolicyTool = nepname
00052 
00053             rio = RootIOCnvSvc(rioname)
00054             theApp.ExtSvc.append(rio)
00055 
00056             inputstream = {'default': filelist}
00057             from RootIOSvc import wash_streams
00058             rio.InputStreams = wash_streams( inputstream )
00059         
00060 
00061             ilt = DybInputLoadTool(iltname)
00062             ilt.RootIOSvc = rio
00063             ilt.ConversionSvc = rio        
00064 
00065             pol = DybNextEntryPolicyTool(nepname)
00066             pol.Mode = "sequential"
00067             #pol.Mode = "random" # default
00068             continue
00069         return
00070 
        
def MixItUp::WillItBlend::configureElectronic (   self)
Configure the Electronics stage

Definition at line 71 of file MixItUp.py.

00072                                  :
00073         '''Configure the Electronics stage'''
00074         
00075         import ElecSim
00076         es = ElecSim.Configure(use_push_algs = False)
00077         
00078         # from ElecSim.ElecSimConf import EsIdealFeeTool
00079         # feeTool = EsIdealFeeTool()
00080         # feeTool.EnableNonlinearity=False
00081 
00082         from ElecSimProc.ElecSimProcConf import ElecSimProc
00083         esp = ElecSimProc()
00084         esp.ThisStageName = "Electronic"
00085         esp.LowerStageName = "Detector"
00086         esp.OutputLevel = 2
00087         self.stage_cfg.ElectronicSequence.Members.append(esp)
00088         return
    
def MixItUp::WillItBlend::configureTrigRead (   self)
Configure the Trigger and Readout stage

Definition at line 89 of file MixItUp.py.

00090                                :
00091         '''Configure the Trigger and Readout stage'''
00092         from TrigReadProc.TrigReadProcConf import TrigReadProc
00093         tsp = TrigReadProc()
00094         tsp.ThisStageName = "TrigRead"
00095         tsp.LowerStageName = "Electronic"
00096         #tsp.TrigTools = [...]
00097         #tsp.RoTools = [...]
00098         tsp.OutputLevel = 2
00099         self.stage_cfg.TrigReadSequence.Members.append(tsp)
00100         return
    
def MixItUp::WillItBlend::configureSingleLoader (   self)
Configure the SingleLoader stage

Definition at line 101 of file MixItUp.py.

00102                                    :
00103         '''Configure the SingleLoader stage'''
00104         from SingleLoader.SingleLoaderConf import SingleLoader
00105         sll = SingleLoader()
00106         sll.ThisStageName = "SingleLoader"
00107         sll.LowerStageName = "TrigRead"
00108         sll.OutputLevel = 2
00109         self.stage_cfg.SingleLoaderSequence.Members.append(sll)
        
def MixItUp::WillItBlend::configureSim15 (   self)

Definition at line 110 of file MixItUp.py.

00111                             :
00112         from Stage.StageConf import Sim15
00113         sim15=Sim15()
00114         sim15.TopStage = "SingleLoader"
00115         #sim15.TopStage = "Detector"
00116 
00117         from Gaudi.Configuration import ApplicationMgr
00118         theApp = ApplicationMgr()
00119         theApp.TopAlg.append(sim15)

def MixItUp::WillItBlend::configure (   self,
  streams 
)

Definition at line 120 of file MixItUp.py.

00121                                :
00122         from Stage import Configure as StageConfigure
00123         self.stage_cfg = StageConfigure()
00124         self.stage_cfg.addStages(['Detector','Electronic','TrigRead','SingleLoader'])
00125 
00126         self.configureMixing(streams)
00127         self.configureElectronic()
00128         self.configureTrigRead()
00129         self.configureSingleLoader()
00130         self.configureSim15()
00131         
00132         return
        

Member Data Documentation

Definition at line 11 of file MixItUp.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:16:19 for Test15 by doxygen 1.7.4