/search.css" rel="stylesheet" type="text/css"/> /search.js">
Classes | |
class | MuonTag |
Functions | |
def | configure |
def | run |
Variables | |
Detector = gbl.DayaBay.Detector | |
DetectorId = gbl.DetectorId | |
TimeStamp = gbl.TimeStamp | |
options = None |
def Tagger::MuonTagger::MuonTag::configure | ( | argv = [] | ) |
Configuration with command line arguments
Definition at line 182 of file MuonTag.py.
00183 : 00184 """Configuration with command line arguments""" 00185 global options 00186 from optparse import OptionParser 00187 00188 parser = OptionParser() 00189 parser.add_option("-l", "--location", type="string", 00190 default="/Event/CalibReadout/CalibReadoutHeader", 00191 help="Target for muon tagging") 00192 parser.add_option("-c", "--calibStatslocation", type="string", 00193 default="/Event/Data/CalibStats", 00194 help="calibstats Target for muon tagging") 00195 parser.add_option("-p", "--prompt-dt", type="string", 00196 default="300*nanosecond", 00197 help="Muon prompt time window") 00198 parser.add_option("-r", "--retrigger-dt", type="string", 00199 default="10*microsecond", 00200 help="Muon retrigger time window") 00201 parser.add_option("-q", "--ad-charge", type="float", 00202 default=2500., 00203 help="AD muon charge cut") 00204 (options, args) = parser.parse_args(args=argv)
def Tagger::MuonTagger::MuonTag::run | ( | app | ) |
Definition at line 205 of file MuonTag.py.
00206 : 00207 global options 00208 from DybPython.Tools import unitify 00209 00210 myAlg = MuonTag("MuonTag") 00211 myAlg.location = options.location 00212 myAlg.calibStatslocation = options.calibStatslocation 00213 myAlg.dtPromptCut = unitify(options.prompt_dt) 00214 myAlg.dtRetriggerCut = unitify(options.retrigger_dt) 00215 app.addAlgorithm(myAlg)
Tagger::MuonTagger::MuonTag::Detector = gbl.DayaBay.Detector |
Definition at line 19 of file MuonTag.py.
Tagger::MuonTagger::MuonTag::DetectorId = gbl.DetectorId |
Definition at line 20 of file MuonTag.py.
Tagger::MuonTagger::MuonTag::TimeStamp = gbl.TimeStamp |
Definition at line 21 of file MuonTag.py.
Definition at line 180 of file MuonTag.py.