/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Functions | Variables
readCo60data Namespace Reference

Classes

class  getCo60ESAlg

Functions

def configure
def run

Variables

 Detector = gbl.DayaBay.Detector
 ServiceMode = gbl.ServiceMode
 DetectorId = gbl.DetectorId
 FeeChannelId = gbl.DayaBay.FeeChannelId
 AdPmtSensor = gbl.DayaBay.AdPmtSensor
 Context = gbl.Context
 TH1F = gbl.TH1F
 TParameter = gbl.TParameter
 TH2F = gbl.TH2F
 Trigger = gbl.DayaBay.Trigger
 det = None
 runno = None

Function Documentation

def readCo60data::configure (   argv = [])
Template job module 

Definition at line 155 of file readCo60data.py.

00156                         :
00157     """ Template job module """
00158     # Process module command line arguments here
00159     from optparse import OptionParser
00160     parser = OptionParser() 
00161 
00162     # Example module option
00163     parser.add_option("-d","--det",
00164                       default=1,
00165                       type="int",
00166                       help="DetectorId of AD with Co60 [default: %default]")
00167 
00168     parser.add_option("-r","--runno",
00169                       default=0,
00170                       type="int",
00171                       help="Run number [default: %default]")
00172     
00173     (options,args) = parser.parse_args(args=argv)
00174 
00175     # Must save option so it can be use in 'run()' function
00176     global det,runno
00177     det = options.det
00178     runno = options.runno
00179     print " Set DetectorId to ", det
00180     print " Set run to ", runno
00181     
00182     return

def readCo60data::run (   app)
Configure and add the algorithm to job

Definition at line 183 of file readCo60data.py.

00184             :
00185     '''
00186     Configure and add the algorithm to job
00187     '''
00188     # Add Python algorithm to job here
00189     myAlg = getCo60ESAlg("MyCo60ESAlg")
00190     # Retrieve module option, and set in algorithm
00191     global det
00192     global runno
00193     myAlg.det = det
00194     myAlg.runno = runno
00195     app.ExtSvc += ["StatisticsSvc","DybPmtCalibSvc"]
00196     # Add algorithm to job
00197     app.addAlgorithm(myAlg)
00198     pass

Variable Documentation

readCo60data::Detector = gbl.DayaBay.Detector

Definition at line 17 of file readCo60data.py.

readCo60data::ServiceMode = gbl.ServiceMode

Definition at line 18 of file readCo60data.py.

readCo60data::DetectorId = gbl.DetectorId

Definition at line 19 of file readCo60data.py.

readCo60data::FeeChannelId = gbl.DayaBay.FeeChannelId

Definition at line 20 of file readCo60data.py.

readCo60data::AdPmtSensor = gbl.DayaBay.AdPmtSensor

Definition at line 21 of file readCo60data.py.

readCo60data::Context = gbl.Context

Definition at line 22 of file readCo60data.py.

readCo60data::TH1F = gbl.TH1F

Definition at line 23 of file readCo60data.py.

readCo60data::TParameter = gbl.TParameter

Definition at line 24 of file readCo60data.py.

readCo60data::TH2F = gbl.TH2F

Definition at line 25 of file readCo60data.py.

readCo60data::Trigger = gbl.DayaBay.Trigger

Definition at line 26 of file readCo60data.py.

Definition at line 152 of file readCo60data.py.

Definition at line 153 of file readCo60data.py.

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

Generated on Fri May 16 2014 09:55:28 for Co60Auto by doxygen 1.7.4