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

In This Package:

mixing.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 """
00003 nuwa.py -A none -l 4 -n 1000 mixing.py
00004 
00005 """
00006 
00007 inputpath = ""
00008 outputpath = ""
00009 
00010 import Mixing
00011 mixing=Mixing.Configure()
00012 
00013 #Set the samples being mixed
00014 mixing.MixSvc.SampleInputs={
00015             "IBD1":[inputpath+"IBD_DayaBayAD1.root"],
00016             "IBD2":[inputpath+"IBD_DayaBayAD1.root"],
00017             "RAD1":[inputpath+"Co60_PMT_DayaBayAD1.root"], 
00018             "RAD2":[inputpath+"Co60_PMT_DayaBayAD2.root"],
00019             "RAD3":[inputpath+"Co60_sst_DayaBayAD1.root"],
00020             "RAD4":[inputpath+"Co60_sst_DayaBayAD2.root"],
00021             "RAD5":[inputpath+"K40_gds_DayaBayAD1.root"], 
00022             "RAD6":[inputpath+"K40_gds_DayaBayAD2.root"],
00023             "RAD7":[inputpath+"K40_lso_DayaBayAD1.root"],
00024             "RAD8":[inputpath+"K40_lso_DayaBayAD2.root"],
00025             "RAD9":[inputpath+"K40_PMT_DayaBayAD1.root"],
00026             "RAD10":[inputpath+"K40_PMT_DayaBayAD2.root"],
00027             "RAD11":[inputpath+"K40_sst_DayaBayAD1.root"],
00028             "RAD12":[inputpath+"K40_sst_DayaBayAD2.root"],
00029             "RAD13":[inputpath+"Th232_gds_DayaBayAD1.root"], 
00030             "RAD14":[inputpath+"Th232_gds_DayaBayAD2.root"],
00031             "RAD15":[inputpath+"Th232_lso_DayaBayAD1.root"],
00032             "RAD16":[inputpath+"Th232_lso_DayaBayAD2.root"],
00033             "RAD17":[inputpath+"Th232_PMT_DayaBayAD1.root"],
00034             "RAD18":[inputpath+"Th232_PMT_DayaBayAD2.root"],
00035             "RAD19":[inputpath+"Th232_sst_DayaBayAD1.root"],
00036             "RAD20":[inputpath+"Th232_sst_DayaBayAD2.root"],
00037             "RAD21":[inputpath+"U238_gds_DayaBayAD1.root"], 
00038             "RAD22":[inputpath+"U238_gds_DayaBayAD2.root"],
00039             "RAD23":[inputpath+"U238_lso_DayaBayAD1.root"],
00040             "RAD24":[inputpath+"U238_lso_DayaBayAD2.root"],
00041             "RAD25":[inputpath+"U238_PMT_DayaBayAD1.root"],
00042             "RAD26":[inputpath+"U238_PMT_DayaBayAD2.root"],
00043             "RAD27":[inputpath+"U238_sst_DayaBayAD1.root"],
00044             "RAD28":[inputpath+"U238_sst_DayaBayAD2.root"]
00045          }
00046 if mixing.MixSvc.SampleInputs:
00047     print 'input_samples=', str(mixing.MixSvc.SampleInputs)
00048 
00049 #Set the event rates of the samples    
00050 mixing.MixSvc.SampleTaus={"IBD1":86400./10000,
00051                         "IBD2": 86400./2000,
00052                         "RAD1": 86400./2000,
00053                         "RAD2": 86400./2000,
00054                         "RAD3": 86400./2000,
00055                         "RAD4": 86400./2000,
00056                         "RAD5": 86400./2000,
00057                         "RAD6": 86400./2000,
00058                         "RAD7": 86400./2000,
00059                         "RAD8": 86400./2000,
00060                         "RAD9": 86400./2000,
00061                         "RAD10": 86400./2000,
00062                         "RAD11": 86400./2000,
00063                         "RAD12": 86400./2000,
00064                         "RAD13": 86400./2000,
00065                         "RAD14": 86400./2000,
00066                         "RAD15": 86400./2000,
00067                         "RAD16": 86400./2000,
00068                         "RAD17": 86400./2000,
00069                         "RAD18": 86400./2000,
00070                         "RAD19": 86400./2000,
00071                         "RAD20": 86400./2000,
00072                         "RAD21": 86400./2000,
00073                         "RAD22": 86400./2000,
00074                         "RAD23": 86400./2000,
00075                         "RAD24": 86400./2000,
00076                         "RAD25": 86400./2000,
00077                         "RAD26": 86400./2000,
00078                         "RAD27": 86400./2000,
00079                         "RAD28": 86400./2000}
00080 if mixing.MixSvc.SampleTaus:
00081     print 'sample_deltaT=', str(mixing.MixSvc.SampleTaus)
00082 
00083 #Set the time window of mixing
00084 mixing.MixSvc.MixingTime= 10000
00085 if mixing.MixSvc.MixingTime:
00086     print 'Mixing Time=', mixing.MixSvc.MixingTime
00087 
00088 #Set the begin time of this time
00089 mixing.MixSvc.BeginTime=0.0
00090 print 'Begin Time = ', mixing.MixSvc.BeginTime
00091 
00092 mixing.MixSvc.DefaultOutput=outputpath+"mixing.root"
00093 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:11:47 2011 for FMCP11a by doxygen 1.4.7