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

List of all members.

Public Member Functions

def __init__
def initialize
def execute

Public Attributes

 count
 rio
 riop

Detailed Description

An algorithm that will change the RootIOCnvSvc's output file map.

Definition at line 10 of file OutputFrobicator.py.


Constructor & Destructor Documentation

def RootIOTest::OutputFrobicator::OutFrob::__init__ (   self,
  name = "OutFrob" 
)

Definition at line 14 of file OutputFrobicator.py.

00015                                      :
00016         GaudiAlgo.__init__(self,name)
00017         self.count = 0
00018         return


Member Function Documentation

def RootIOTest::OutputFrobicator::OutFrob::initialize (   self)

Definition at line 19 of file OutputFrobicator.py.

00020                         :
00021         sc = GaudiAlgo.initialize(self)
00022         if sc.isFailure(): 
00023             print 'Failed to initialize GaudiAlgo base class'
00024             return sc
00025         self.rio = self.svc('IRootIOSvc','RootIOCnvSvc')
00026         if not self.rio:
00027             print 'Failed to get RootIOCnvSvc, bogus!'
00028             return FAILURE
00029         self.riop = Bindings.iProperty('RootIOCnvSvc',self.rio)
00030         return SUCCESS

def RootIOTest::OutputFrobicator::OutFrob::execute (   self)

Definition at line 31 of file OutputFrobicator.py.

00032                      :
00033         self.count += 1 
00034         print self.count
00035 
00036         outstreams = self.riop.OutputStreams
00037         for k,v in outstreams.iteritems():
00038             print '\t%s --> %s'%(k,v)
00039             basenum,ext = os.path.splitext(v)
00040             base,num = basenum.split("_")
00041             newname = '%s_%03d%s'%(base,self.count,ext)
00042             print 'Changing output stream "%s" output file from "%s" to "%s"'%(k,v,newname)
00043             self.rio.associateOutput(newname,k)
00044             continue
00045 
00046         #for k,v in self.riop.properties().iteritems():
00047         #    print '\t"%s" --> (%s)%s [%s]'%(k,v.ptype(),v.value(),v.documentation())
00048 
00049         return SUCCESS        
00050 


Member Data Documentation

Definition at line 14 of file OutputFrobicator.py.

Definition at line 19 of file OutputFrobicator.py.

Definition at line 19 of file OutputFrobicator.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:20:12 for RootIOTest by doxygen 1.7.4