/search.css" rel="stylesheet" type="text/css"/> /search.js">
Classes | |
class | expcalc |
Functions | |
def | configure |
def | run |
Variables | |
Detector = gbl.DayaBay.Detector | |
Site = gbl.Site | |
DetectorId = gbl.DetectorId | |
CLHEP = gbl.CLHEP | |
options = None |
def AdRec::expcalc::configure | ( | argv = [] | ) |
Definition at line 99 of file expcalc.py.
00100 : 00101 # Process module options 00102 global options 00103 from optparse import OptionParser 00104 00105 parser = OptionParser() 00106 parser.add_option("-s", "--siteName", type="string", 00107 default="DayaBay", 00108 help="site name") 00109 parser.add_option("-d", "--detName", type="string", 00110 default="AD1", 00111 help="detector name") 00112 parser.add_option("-x", "--vertex-x", type="string", 00113 default="0*m", 00114 help="X coordinate of the given vertex") 00115 parser.add_option("-y", "--vertex-y", type="string", 00116 default="0*m", 00117 help="Y coordinate of the given vertex") 00118 parser.add_option("-z", "--vertex-z", type="string", 00119 default="0*m", 00120 help="Z coordinate of the given vertex") 00121 (options, args) = parser.parse_args(args=argv) 00122 00123 # example for How to change the optical parameters 00124 # for expected charge calculation 00125 00126 # from AdRec.AdRecConf import ExpQCalcTool 00127 # mytool = ExpQCalcTool("expcalc.ExpQCalcTool") 00128 # mytool.AbsLength = 10470. # mm, default value in QMLFTool 00129 # mytool.TopRefZ = 2104.55 # mm, default value in QMLFTool 00130 # mytool.BotRefZ = -2027.5 # mm, default value in QMLFTool 00131 # mytool.TopReflectivity = 0.9786 # mm, default value in QMLFTool 00132 # mytool.TopReflectivity = 0.9786 # mm, default value in QMLFTool
def AdRec::expcalc::run | ( | app | ) |
Configure and add an algorithm to job
Definition at line 133 of file expcalc.py.
00134 : 00135 ''' 00136 Configure and add an algorithm to job 00137 ''' 00138 from DybPython.Tools import unitify 00139 00140 calcAlg = expcalc("expcalc") 00141 x = unitify(options.vertex_x) 00142 y = unitify(options.vertex_y) 00143 z = unitify(options.vertex_z) 00144 calcAlg.vertex = CLHEP.Hep3Vector(x, y, z) 00145 calcAlg.siteName = options.siteName 00146 calcAlg.detName = options.detName 00147 app.addAlgorithm(calcAlg) 00148 00149 pass
Definition at line 19 of file expcalc.py.
Definition at line 20 of file expcalc.py.
Definition at line 21 of file expcalc.py.
AdRec::expcalc::CLHEP = gbl.CLHEP |
Definition at line 23 of file expcalc.py.
AdRec::expcalc::options = None |
Definition at line 98 of file expcalc.py.