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

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 lastTimestamp

Detailed Description

Definition at line 31 of file RpcHack.py.


Constructor & Destructor Documentation

def RpcHack::RpcHackAlg::__init__ (   self,
  name 
)

Definition at line 33 of file RpcHack.py.

00034                            :
00035         DybPythonAlg.__init__(self,name)
00036         self.lastTimestamp = TimeStamp()
00037         return


Member Function Documentation

def RpcHack::RpcHackAlg::initialize (   self)

Definition at line 38 of file RpcHack.py.

00039                         :
00040         status = DybPythonAlg.initialize(self)
00041         if status.isFailure(): return status
00042         self.info("initializing")
00043         return SUCCESS

def RpcHack::RpcHackAlg::execute (   self)
Check for RPC data block, and 'fix' it

Definition at line 44 of file RpcHack.py.

00045                      :
00046         """Check for RPC data block, and 'fix' it"""
00047 
00048         evt = self.evtSvc()
00049 
00050         # Access the Readout Header.  This is a container for the readout data
00051         readoutHdr = evt["/Event/Readout/ReadoutHeader"]
00052         if readoutHdr == None:
00053             self.error("Failed to get current readout header")
00054             return FAILURE
00055 
00056         # Check for RPC data
00057         detectorId = readoutHdr.context().GetDetId()  
00058         if detectorId == DetectorId.kRPC or detectorId == DetectorId.kUnknown:
00059             """Found RPC block, reset detector ID and times"""
00060             context = readoutHdr.context()
00061             newContext = Context(context.GetSite(),context.GetSimFlag(),
00062                                  self.lastTimestamp,DetectorId.kRPC)
00063             readoutHdr.setContext(newContext)
00064             readoutHdr.setEarliest(self.lastTimestamp)
00065             readoutHdr.setLatest(self.lastTimestamp)
00066             
00067         self.lastTimestamp = TimeStamp( readoutHdr.timeStamp() )    
00068         return SUCCESS
        
def RpcHack::RpcHackAlg::finalize (   self)

Definition at line 69 of file RpcHack.py.

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


Member Data Documentation

Definition at line 33 of file RpcHack.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:34 for Quickstart by doxygen 1.7.4