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

In This Package:

Public Member Functions | Public Attributes | Static Public Attributes
ReadoutDetector::ReadoutDetectorAlg Class Reference
Inheritance diagram for ReadoutDetector::ReadoutDetectorAlg:
Inheritance graph
[legend]
Collaboration diagram for ReadoutDetector::ReadoutDetectorAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def findDetector
def __init__
def initialize
def execute
def finalize

Public Attributes

 cableSvc

Static Public Attributes

list detList

Detailed Description

Definition at line 21 of file ReadoutDetector.py.


Constructor & Destructor Documentation

def ReadoutDetector::ReadoutDetectorAlg::__init__ (   self,
  name 
)

Definition at line 31 of file ReadoutDetector.py.

00032                            :
00033         DybPythonAlg.__init__(self,name)
00034         return


Member Function Documentation

def ReadoutDetector::ReadoutDetectorAlg::findDetector (   instance,
  detname,
  detlist = detList 
)

Definition at line 26 of file ReadoutDetector.py.

00027                                                           :
00028         for i in range(0,len(detlist)):
00029             if (detlist[i] == detname):
00030                 instance.stats["/file0/readout/DetectorName"].Fill(detlist[i],scale)
    
def ReadoutDetector::ReadoutDetectorAlg::initialize (   self)

Definition at line 35 of file ReadoutDetector.py.

00036                         :
00037         status = DybPythonAlg.initialize(self)
00038         if status.isFailure(): return status
00039         self.info("initializing")
00040 
00041         self.cableSvc = self.svc('ICableSvc','CableSvc')
00042         if self.cableSvc == None:
00043             self.error("Failed to get CableSvc")
00044             return FAILURE
00045 
00046         hist = TH1F("Events","The Readout Detector" ,16, 0.0, 16.0)
00047         hist.GetXaxis().SetTitle("Readout Detector")
00048         hist.GetYaxis().SetTitle("Events/Day")
00049         for i in range(0,len(self.detList)):
00050             hist.GetXaxis().SetBinLabel(2 * (i + 1),self.detList[i])
00051         self.stats["/file0/readout/DetectorName"] = hist
00052         
00053         return SUCCESS

def ReadoutDetector::ReadoutDetectorAlg::execute (   self)

Definition at line 54 of file ReadoutDetector.py.

00055                      :
00056         self.info("executing")
00057         evt = self.evtSvc()
00058 
00059         readoutHdr = evt["/Event/Readout/ReadoutHeader"]
00060         if readoutHdr == None:
00061             self.error("Failed to get ReadoutHeader")
00062             return FAILURE
00063 
00064         readout = readoutHdr.readout()
00065         if readout != None:
00066             detectorName = readout.detector().detName()
00067             self.findDetector(detectorName)
00068         
00069         return SUCCESS
        
def ReadoutDetector::ReadoutDetectorAlg::finalize (   self)

Definition at line 70 of file ReadoutDetector.py.

00071                       :
00072         self.info("finalizing")
00073         status = DybPythonAlg.finalize(self)
00074         return status
00075 


Member Data Documentation

Initial value:
['DayaBayAD1', 'DayaBayAD2','LingAoAD1','LingAoAD2',
                'FarAD1','FarAD2','FarAD3','FarAD4']

Definition at line 23 of file ReadoutDetector.py.

Definition at line 35 of file ReadoutDetector.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:54:38 for Calibration by doxygen 1.7.4