/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
Mixing::Configure Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 MixAlg
 MixSvc

Detailed Description

Definition at line 5 of file __init__.py.


Constructor & Destructor Documentation

def Mixing::Configure::__init__ (   self)
Do default configureation of MixingSvc. 

Definition at line 7 of file __init__.py.

00008                       :
00009         '''Do default configureation of MixingSvc. '''
00010         from Gaudi.Configuration import ApplicationMgr
00011         app = ApplicationMgr()
00012 
00013         evtsel = "MixEventSelector"
00014 
00015         from Mixing.MixingConf import MixRootEvtSelector
00016         select = MixRootEvtSelector(evtsel)
00017         app.ExtSvc.append(select)
00018          
00019         from DybPython.Control import nuwa
00020         nuwa.evtmgr.loopMgr.EvtSel = evtsel
00021 
00022         from Mixing.MixingConf import MixRootIOCnvSvc
00023         rio = MixRootIOCnvSvc("RootIOCnvSvc")
00024         app.ExtSvc.append(rio)
00025         from GaudiSvc.GaudiSvcConf import EvtPersistencySvc
00026         per = EvtPersistencySvc()
00027         per.CnvServices = [ rio ];
00028         rio.DefaultOutput= "Mixing.root"
00029 
00030         from DybIO.DybIOConf import DybStorageSvc
00031         app.ExtSvc += [ DybStorageSvc() ]
00032 
00033         from Mixing.MixingConf import MixingAlgorithm
00034         mixalg = MixingAlgorithm()
00035         app.TopAlg.append(mixalg)
00036         self.MixAlg = mixalg
00037         from RootIOTest.RootIOTestConf import DybStoreAlg
00038         dsa = DybStoreAlg()
00039         app.TopAlg.append(dsa)
00040 
00041         MixingDays = 5.4 
00042 #        if MixingDays:
00043 #           print 'Mixing time =', MixingDays
00044 
00045         begintime = 0.0
00046 #        print 'Begin time = ', begintime
00047 
00048         input_samples={
00049              "Gamma1":["05MEVGAMMA_D100.root"],
00050              "Gamma2":["08MEVGAMMA_D100.root"],
00051              "IBD":["FullIBD.root"]
00052          }
00053    
00054         if input_samples:
00055 #          print 'input_samples=', str(input_samples)
00056 
00057             sample_tau={"Gamma1":86400./1000, "Gamma2":86400./930, "IBD":86400./980}
00058 
00059 #        if sample_tau:
00060 #           print "sample_deltaT=", str(sample_tau)
00061   
00062             rio.SampleInputs  = input_samples
00063             rio.SampleTaus    = sample_tau
00064             rio.MixingTime    = MixingDays
00065             rio.BeginTime     = begintime
00066             self.MixSvc=rio
00067 
00068         return


Member Data Documentation

Definition at line 7 of file __init__.py.

Definition at line 9 of file __init__.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:15:21 for Mixing by doxygen 1.7.4