| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MixInputScript.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 """
00003 nuwa.py --history=off -A none -K --leak-check-method=main -n 10000 -l 4 MixInputScript.py
00004 
00005 """
00006 
00007 import MixInputSvc
00008 mixinput=MixInputSvc.Configure()
00009 
00010 #Set the samples being mixed
00011 mixinput.MixSvc.SampleInputs={
00012 #            "IBD":["IBDEventDetSim10000.root", "IBDEventDetSim10001.root"],
00013             "Gamma":["GammaDetSim.root"],
00014             "Positron":["PositronDetSim.root"],
00015             }
00016 if mixinput.MixSvc.SampleInputs:
00017     print 'input_samples=', str(mixinput.MixSvc.SampleInputs)
00018 
00019 #Set the event rates of the samples    
00020 mixinput.MixSvc.SampleTaus={"Gamma":86400./10000, "Positron": 86400./5000}
00021 if mixinput.MixSvc.SampleTaus:
00022     print 'sample_deltaT=', str(mixinput.MixSvc.SampleTaus)
00023 
00024 #Set the samples file num
00025 mixinput.MixSvc.SampleFileNum={"Gamma":10000, "Positron":10000}
00026 if mixinput.MixSvc.SampleFileNum:
00027     print 'sample_filenum=', str(mixinput.MixSvc.SampleFileNum)
00028 
00029 #Set the Random Seed of mixing
00030 mixinput.MixSvc.RandomSeed = 3572298
00031 if mixinput.MixSvc.RandomSeed:
00032     print 'Mixinput RandomSeed=', mixinput.MixSvc.RandomSeed
00033 
00034 #Set the begin time of this time
00035 mixinput.MixSvc.BeginTime=0.
00036 print 'Begin Time = ', mixinput.MixSvc.BeginTime
00037 
00038 mixinput.MixSvc.DefaultOutput= "Mixedfile.root"
00039 
00040 from Gaudi.Configuration import ApplicationMgr
00041 app = ApplicationMgr()
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:44:38 2011 for MixInputSvc by doxygen 1.4.7