/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
Dump::SayWhat Class Reference
Inheritance diagram for Dump::SayWhat:
Inheritance graph
[legend]
Collaboration diagram for Dump::SayWhat:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def dump_genheader
def dump_roheader
def check_roheader
def execute
def __init__
def initialize
def execute
def finalize
def verbose
def debug
def info
def warning
def error
def fatal
def getAES
def initializeHeader
def finalizeHeader

Public Attributes

 genPath
 readoutPath
 msgSvc
 archiveSvc
 stats
 defaultInputLocation
 execNumber
 currentJobId

Detailed Description

Definition at line 8 of file Dump.py.


Constructor & Destructor Documentation

def Dump::SayWhat::__init__ (   self,
  name = None 
)

Definition at line 10 of file Dump.py.

00011                                    :
00012         DybPythonAlg.__init__(self,name)
00013 
00014         self.genPath = '/Event/Gen/GenHeader'
00015         self.readoutPath = '/Event/Readout/ReadoutHeader'
00016 
00017         return


Member Function Documentation

def Dump::SayWhat::dump_genheader (   self,
  gh 
)

Definition at line 18 of file Dump.py.

00019                                :
00020         if not gh: 
00021             self.info("GenHeader does not exist")
00022             return
00023 
00024 
00025         evt = gh.event()
00026 
00027         self.info("GenHeader(%s)#%d @ %s" % (gh.generatorName(), evt.event_number(),
00028                                              gh.context().AsString()))
00029         vtx = evt.signal_process_vertex()
00030         for part in irange(vtx.particles_out_const_begin(), vtx.particles_out_const_end()):
00031             self.info('\t%d (%d) %f MeV' % (part.pdg_id(), part.status(), 
00032                                             part.generatedMass()/units.MeV) )
00033             continue
00034         return

def Dump::SayWhat::dump_roheader (   self,
  rh 
)

Definition at line 35 of file Dump.py.

00036                               :
00037         if not rh: 
00038             self.info("ReadoutHeader does not exist")
00039             return
00040 
00041         self.info("ReadoutHeader @ %s" % rh.context().AsString())
00042 
00043         ro = rh.readout()
00044         if not ro:
00045             self.info("No Readout object in the ReadoutHeader")
00046         else:
00047             self.info("Readout: %s #%d @ %s %d" % (ro.detector().asString(),
00048                                                    ro.triggerNumber(), 
00049                                                    ro.triggerTime().AsString(),
00050                                                    ro.triggerType()) )
00051             pass
00052             
00053         dc = rh.daqCrate()
00054         if not dc:
00055             self.info("No DaqCrate object in the ReadoutHeader")
00056         else:
00057             self.info("DaqCrate: %s #%d[%d] @ %s %d" % (dc.detector().asString(),
00058                                                         dc.eventNumber(), 
00059                                                         dc.localTriggerNumber(),
00060                                                         dc.triggerTime().AsString(), 
00061                                                         dc.triggerType() ))
00062             pass
00063         return

def Dump::SayWhat::check_roheader (   self,
  roh 
)

Definition at line 64 of file Dump.py.

00065                                 :
00066         'Return True if okay'
00067         dt = roh.latest().GetSeconds() - roh.earliest().GetSeconds()
00068         if dt <= 1e-9:
00069             #self.warning('ReadoutHeader at "%s" has too small dt: %f seconds' % \
00070             #                 (roh.context().AsString(),dt))
00071             return False
00072         return True

def Dump::SayWhat::execute (   self)

Definition at line 73 of file Dump.py.

00074                      :
00075         tes = self.evtSvc()
00076 
00077         self.info("Dumping TES")
00078         self.dump_genheader(tes[self.genPath])
00079         roh = tes[self.readoutPath]
00080         self.dump_roheader(roh)
00081         if not self.check_roheader(roh):
00082             pass
00083             #return FAILURE
00084 
00085         self.info("Dumping AES")
00086         ghlist = self.getAES(self.genPath) or []
00087         for gh in ghlist:
00088             self.dump_genheader(gh)
00089         rhlist = self.getAES(self.readoutPath) or []
00090         for rh in rhlist:
00091             self.dump_roheader(rh)
00092 
00093         return SUCCESS


Member Data Documentation

Definition at line 10 of file Dump.py.

Definition at line 10 of file Dump.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 10:16:19 for Test15 by doxygen 1.7.4