/search.css" rel="stylesheet" type="text/css"/> /search.js">
Classes | |
class | EventSource |
class | IBDSource |
class | ADSinglesSource |
class | MuonSource |
class | TestCoincAlg |
Functions | |
def | compareTimeStamp |
def | configure |
def | run |
Variables | |
TimeStamp = gbl.TimeStamp | |
Detector = gbl.DayaBay.Detector | |
Site = gbl.Site | |
DetectorId = gbl.DetectorId | |
RecHeader = gbl.DayaBay.RecHeader | |
tuple | rhe = RecHeader() |
TMath_Gaus = gbl.TMath.Gaus | |
dictionary | detectorNames |
dictionary | sourceId |
def TestCoinc::compareTimeStamp | ( | tsA, | |
tsB | |||
) |
Definition at line 40 of file TestCoinc.py.
00041 : 00042 "Comparison function for timestamps" 00043 if tsA.GetSec() < tsB.GetSec(): 00044 return -1 00045 elif tsA.GetSec() > tsB.GetSec(): 00046 return 1 00047 else: 00048 if tsA.GetNanoSec() < tsB.GetNanoSec(): 00049 return -1 00050 elif tsA.GetNanoSec() > tsB.GetNanoSec(): 00051 return 1 00052 return 0 00053 00054 TimeStamp.__cmp__ = compareTimeStamp 00055 # Detector Names
def TestCoinc::configure | ( | argv = [] | ) |
Configure coincidence testing algorithm
Definition at line 768 of file TestCoinc.py.
def TestCoinc::run | ( | app | ) |
Configure and add coincidence testing algorithm to job
Definition at line 772 of file TestCoinc.py.
00773 : 00774 ''' 00775 Configure and add coincidence testing algorithm to job 00776 ''' 00777 myAlg = TestCoincAlg("MyTestCoincAlg") 00778 # IBD in DayaBay AD1 00779 ibdSrc_DayaBayAD1 = IBDSource("ibdSrc_DayaBayAD1",700./(24*60*60.)) 00780 ibdSrc_DayaBayAD1.site = Site.kDayaBay 00781 ibdSrc_DayaBayAD1.detectorId = DetectorId.kAD1 00782 myAlg.sources += [ibdSrc_DayaBayAD1] 00783 # IBD in DayaBay AD2 00784 ibdSrc_DayaBayAD2 = IBDSource("ibdSrc_DayaBayAD2",700./(24*60*60.)) 00785 ibdSrc_DayaBayAD2.site = Site.kDayaBay 00786 ibdSrc_DayaBayAD2.detectorId = DetectorId.kAD2 00787 myAlg.sources += [ibdSrc_DayaBayAD2] 00788 # Singles in DayaBay AD1 00789 singlesSrc_DayaBayAD1 = ADSinglesSource("singlesSrc_DayaBayAD1",200.0) #Hz 00790 singlesSrc_DayaBayAD1.site = Site.kDayaBay 00791 singlesSrc_DayaBayAD1.detectorId = DetectorId.kAD1 00792 myAlg.sources += [singlesSrc_DayaBayAD1] 00793 # Singles in DayaBay AD2 00794 singlesSrc_DayaBayAD2 = ADSinglesSource("singlesSrc_DayaBayAD2",200.0) #Hz 00795 singlesSrc_DayaBayAD2.site = Site.kDayaBay 00796 singlesSrc_DayaBayAD2.detectorId = DetectorId.kAD2 00797 myAlg.sources += [singlesSrc_DayaBayAD2] 00798 # Muons in DayaBay site 00799 muonSrc_DayaBay = MuonSource("muonSrc_DayaBay",200.0) #Hz 00800 muonSrc_DayaBay.site = Site.kDayaBay 00801 myAlg.sources += [muonSrc_DayaBay] 00802 # Add algorithm 00803 app.addAlgorithm(myAlg) 00804 pass 00805
Definition at line 31 of file TestCoinc.py.
Definition at line 32 of file TestCoinc.py.
Definition at line 33 of file TestCoinc.py.
Definition at line 34 of file TestCoinc.py.
Definition at line 35 of file TestCoinc.py.
tuple TestCoinc::rhe = RecHeader() |
Definition at line 36 of file TestCoinc.py.
TestCoinc::TMath_Gaus = gbl.TMath.Gaus |
Definition at line 37 of file TestCoinc.py.
dictionary TestCoinc::detectorNames |
00001 {DetectorId.kAD1:'AD1', 00002 DetectorId.kAD2:'AD2', 00003 DetectorId.kAD3:'AD3', 00004 DetectorId.kAD4:'AD4', 00005 DetectorId.kIWS:'IWS', 00006 DetectorId.kOWS:'OWS', 00007 DetectorId.kRPC:'RPC' 00008 }
Definition at line 56 of file TestCoinc.py.
dictionary TestCoinc::sourceId |
00001 {"Unknown":0, 00002 "IBDPrompt":1, 00003 "IBDDelayed":2, 00004 "ADSingles":3, 00005 "IWS":4, 00006 "OWS":5, 00007 "OWS_IWS":6, 00008 "AD1_OWS_IWS":7, 00009 "AD2_OWS_IWS":8, 00010 "AD3_OWS_IWS":9, 00011 "AD4_OWS_IWS":10 00012 }
Definition at line 66 of file TestCoinc.py.