boss Namespace Reference


Classes

class  AthAppMgr
class  _AlgSvcMemberProxy
class  _AlgSvcRedirect

Functions

def AthMessage
def AthWarning
def AthError
def Usage
def where
def printFile
def include
def __hookDebugger
def _cachedLookup

Variables

tuple ldpreload
list optionsPath = os.environ[ 'JOBOPTSEARCHPATH' ]
 optionsPath = os.curdir
tuple optionsPath = re.split( ',|' + os.pathsep, optionsPath )
tuple argc = len( sys.argv )
string jobOptions = ""
tuple doDebug = ( '', 0 )
list scripts = []
tuple doDebug = ( 'gdb', 1 )
 jobOptions = arg
tuple doDebug = ( arg, 0 )
tuple doDebug = ( doDebug[0], 1 )
list gaudimodule = sys.modules[ 'gaudimodule' ]
int NO_EVSEL = 99
int MONTECARLO = 0
int ZEBRA = 1
tuple theApp = AthAppMgr()
tuple Algorithm = lambdaname:_cachedLookup( name, _algorithms, theApp.algorithm )
tuple Service = lambdaname:_cachedLookup( name, _services, theApp.service )
tuple AuditorSvc = lambda:_cachedLookup( 'AuditorSvc', _services, theApp.service )
tuple sgfile = os.path.join( os.environ[ 'STOREGATEROOT' ], 'share', 'StoreGate.py' )
int ALL = 0
int VERBOSE = 1
int DEBUG = 2
int INFO = 3
int WARNING = 4
int ERROR = 5
int FATAL = 6
int TRUE = 1
int FALSE = 0
int doesSetup = 0
tuple scrfile = open( scripts[ 0 ], 'r' )
tuple pos = line.find( "theApp.setup" )
int doesSetup = 1
tuple ldpreload
list optionsPath = os.environ[ 'JOBOPTSEARCHPATH' ]
 optionsPath = os.curdir
tuple optionsPath = re.split( ',|' + os.pathsep, optionsPath )
tuple argc = len( sys.argv )
string jobOptions = ""
tuple doDebug = ( '', 0 )
list scripts = []
tuple doDebug = ( 'gdb', 1 )
 jobOptions = arg
tuple doDebug = ( arg, 0 )
tuple doDebug = ( doDebug[0], 1 )
list gaudimodule = sys.modules[ 'gaudimodule' ]
int NO_EVSEL = 99
int MONTECARLO = 0
int ZEBRA = 1
tuple theApp = AthAppMgr()
tuple Algorithm = lambdaname:_cachedLookup( name, _algorithms, theApp.algorithm )
tuple Service = lambdaname:_cachedLookup( name, _services, theApp.service )
tuple AuditorSvc = lambda:_cachedLookup( 'AuditorSvc', _services, theApp.service )
tuple sgfile = os.path.join( os.environ[ 'STOREGATEROOT' ], 'share', 'StoreGate.py' )
int ALL = 0
int VERBOSE = 1
int DEBUG = 2
int INFO = 3
int WARNING = 4
int ERROR = 5
int FATAL = 6
int TRUE = 1
int FALSE = 0
int doesSetup = 0
tuple scrfile = open( scripts[ 0 ], 'r' )
tuple pos = line.find( "theApp.setup" )
int doesSetup = 1


Function Documentation

def boss::AthMessage (   descr  ) 

Definition at line 41 of file boss.py.

00041                        :
00042    print " ==>         : " + descr
00043 
def AthWarning( descr ):

def boss::AthWarning (   descr  ) 

Definition at line 44 of file boss.py.

00044                        :
00045    print " ==> WARNING : " + descr
00046 
def AthError( descr ):

def boss::AthError (   descr  ) 

Definition at line 47 of file boss.py.

00047                      :
00048    print " ==> ERROR   : " + descr + '!'
00049    sys.exit( -1 )                            # <== Note exit function!
00050 
def Usage( prog ):

def boss::Usage (   prog  ) 

Definition at line 51 of file boss.py.

00051                  :
00052    print "usage: %s [-d [<debugger>]] [script1.py [script2.py [...]]]" % prog
00053    sys.exit( -1 )                            # <== Note exit function!
00054 
### file inclusion

def boss::where (   filename,
  pathlist = [] 
)

Definition at line 65 of file boss.py.

Referenced by calibUtil::Metadata::adjustVend(), rdbModel::XercesBuilder::buildQuery(), RootInterface::f_getTreeNr(), RootAddress::getBranchname(), RootInterface::getTreeNr(), rdbModel::Table::isSupersedable(), RootAddress::RootAddress(), rdbModel::MysqlConnection::select(), ProjectMessenger::SetNewValue(), rdbModel::Table::supersedeRow(), rdbModel::MysqlConnection::update(), rdbModel::Table::updateRows(), and rdbModel::Rdb::updateRows().

00065                                     :
00066  # special case for those filenames that already contain a path
00067    if os.path.dirname( filename ):
00068       if os.access( filename, os.R_OK ):
00069          return filename
00070 
00071  # test the file name in all possible paths until first found
00072    for path in pathlist:
00073       f = os.path.join( path, filename )
00074       if os.access( f, os.R_OK ):
00075          return f
00076 
00077  # no such accessible file avalailable
00078    return ''
00079 
def printFile( fn ):

def boss::printFile (   fn  ) 

Definition at line 80 of file boss.py.

00080                    :
00081    AthMessage( 'begin listing of "%s"' % fn )
00082 
00083    f = open( fn, 'r' )
00084    for line in f.readlines():
00085       print line,
00086    f.close()
00087 
00088    AthMessage( 'end listing of "%s"' % fn )
00089 
def include( fn ):

def boss::include (   fn  ) 

Definition at line 90 of file boss.py.

00090                  :
00091    name = where( os.path.expanduser( os.path.expandvars( fn ) ), optionsPath )
00092    if not os.path.exists( name ):
00093       name = where( os.path.basename( fn ), optionsPath )
00094       if os.path.exists( name ):
00095          AthWarning( 'using %s instead of %s' % (name,fn) )
00096       else:
00097          AthError( 'include file %s can not be found' % fn )   # exits
00098 
00099    printFile( name )
00100    execfile( name, globals() )
00101 
### check version

def boss::__hookDebugger (   prog  )  [private]

Definition at line 147 of file boss.py.

00147                           :
00148    if len( prog ):
00149       pid = os.spawnvp( os.P_NOWAIT, prog, [ prog, 'python', str( os.getpid() ) ] )
00150     # give debugger some time to attach to the python process
00151       import time
00152       time.sleep( 0.500 )
00153 
### get Gaudi extension classes

def boss::_cachedLookup (   name,
  cache,
  func 
) [private]

Definition at line 267 of file boss.py.

00267                                       :
00268    try:
00269       res = cache[ name ]
00270    except KeyError:
00271       res = func( name )
00272       cache[ name ] = res
00273    return res
00274 
00275 _algorithms, _services = {}, {}
Algorithm  = lambda name : _cachedLookup( name, _algorithms, theApp.algorithm )


Variable Documentation

tuple boss::ldpreload [static]

Initial value:

string.strip( string.replace(
      os.environ[ 'LD_PRELOAD' ], 'libGaudiKernel.so libBossServices.so', '' ) )

Definition at line 18 of file boss.py.

list boss::optionsPath = os.environ[ 'JOBOPTSEARCHPATH' ] [static]

Definition at line 57 of file boss.py.

boss::optionsPath = os.curdir [static]

Definition at line 59 of file boss.py.

tuple boss::optionsPath = re.split( ',|' + os.pathsep, optionsPath ) [static]

Definition at line 61 of file boss.py.

tuple boss::argc = len( sys.argv ) [static]

Definition at line 112 of file boss.py.

string boss::jobOptions = "" [static]

Definition at line 113 of file boss.py.

Referenced by EventWriter::getJobOptions(), and RootInterface::getJobOptions().

tuple boss::doDebug = ( '', 0 ) [static]

Definition at line 118 of file boss.py.

list boss::scripts = [] [static]

Definition at line 119 of file boss.py.

tuple boss::doDebug = ( 'gdb', 1 ) [static]

Definition at line 122 of file boss.py.

boss::jobOptions = arg [static]

Definition at line 135 of file boss.py.

tuple boss::doDebug = ( arg, 0 ) [static]

Definition at line 138 of file boss.py.

tuple boss::doDebug = ( doDebug[0], 1 ) [static]

Definition at line 144 of file boss.py.

list boss::gaudimodule = sys.modules[ 'gaudimodule' ] [static]

Definition at line 156 of file boss.py.

int boss::NO_EVSEL = 99 [static]

Definition at line 160 of file boss.py.

int boss::MONTECARLO = 0 [static]

Definition at line 161 of file boss.py.

int boss::ZEBRA = 1 [static]

Definition at line 162 of file boss.py.

tuple boss::theApp = AthAppMgr() [static]

Definition at line 264 of file boss.py.

Referenced by main().

tuple boss::Algorithm = lambdaname:_cachedLookup( name, _algorithms, theApp.algorithm ) [static]

Definition at line 276 of file boss.py.

Referenced by StepHandler::beginRun(), StepSequencer::existingAlg(), StepSequencer::initSequencer(), and RootIoSvc::run().

tuple boss::Service = lambdaname:_cachedLookup( name, _services, theApp.service ) [static]

Definition at line 277 of file boss.py.

tuple boss::AuditorSvc = lambda:_cachedLookup( 'AuditorSvc', _services, theApp.service ) [static]

Definition at line 278 of file boss.py.

tuple boss::sgfile = os.path.join( os.environ[ 'STOREGATEROOT' ], 'share', 'StoreGate.py' ) [static]

Definition at line 339 of file boss.py.

int boss::ALL = 0 [static]

Definition at line 353 of file boss.py.

int boss::VERBOSE = 1 [static]

Definition at line 354 of file boss.py.

int boss::DEBUG = 2 [static]

Definition at line 355 of file boss.py.

int boss::INFO = 3 [static]

Definition at line 356 of file boss.py.

int boss::WARNING = 4 [static]

Definition at line 357 of file boss.py.

int boss::ERROR = 5 [static]

Definition at line 358 of file boss.py.

int boss::FATAL = 6 [static]

Definition at line 359 of file boss.py.

int boss::TRUE = 1 [static]

Definition at line 361 of file boss.py.

int boss::FALSE = 0 [static]

Definition at line 362 of file boss.py.

int boss::doesSetup = 0 [static]

Definition at line 367 of file boss.py.

tuple boss::scrfile = open( scripts[ 0 ], 'r' ) [static]

Definition at line 368 of file boss.py.

tuple boss::pos = line.find( "theApp.setup" ) [static]

Definition at line 370 of file boss.py.

Referenced by EmcRecShowerShape::A20Moment(), EmcRecShowerShape::A42Moment(), ers::Issue::add_qualifier(), TrkMomCalculator::calcCurvAllWeights(), PathResolver::check_search_path(), BesEmcEndGeometry::ComputeDimAndPos(), ExtBesEmcEndGeometry::ComputeDimAndPos(), BesTofConstruction::ConstructBr1Tof(), BesTofConstruction::ConstructBr2Tof(), EmcRecTofDigitCalib::Convert(), ers::StreamFactory::create_stream(), MdcHitOnTrack::driftVelocity(), Dump(), BesSensitiveManager::EndOfTrack(), MdcHitOnTrack::entranceAngle(), MdcHitOnTrack::entranceAngleHit(), MdcxCosmicSewer::execute(), KalFitAlg::execute(), EsTimeAlg::execute(), AbsCor::execute(), THistogram::fillPhi(), MdcxTrackFinder::fillTrack(), MdcTrkRecon::fillTrackList(), THistogram::fillX(), THistogram::fillY(), HltStoreSvc::finalize(), MdcBbEmcEff::finalize(), RawFileReader::findEventById(), TRunge::Function(), ers::Issue::get_value(), RootAddress::getBranchname(), TrkDifLineTraj::getDFInfo(), TrkCircleTraj::getDFInfo(), TrkDifPieceTraj::getDFInfo(), NeutTraj::getDFInfo(), HelixTraj::getDFInfo(), TrkCircleTraj::getDFInfo2(), TrkDifTraj::getDFInfo2(), TrkDifPieceTraj::getDFInfo2(), HelixTraj::getDFInfo2(), XmlRpc::XmlRpcUtil::getNextTag(), RecEmcCluster::getPosition(), RecEmcCluster::getSecondMoment(), BesMucDigit::GetStripPos(), TrkHelixUtils::helixFromMomErr(), RootCnvSvc::initFiles(), ers::Issue::insert(), Intersection(), HltID::is_algorithm(), TofID::is_barrel(), MucID::is_barrel(), EmcID::is_barrel(), HltID::is_con_inf(), HltID::is_criteria(), HltID::is_ef_result(), HltID::is_emc_inf(), HltID::is_energy(), HltID::is_eventtype(), HltID::is_mdc_inf(), TofID::is_mrpc(), HltID::is_muc_inf(), HltID::is_ncon(), HltID::is_number(), TofID::is_scin(), HltID::is_tof_inf(), HltID::is_version(), EmcRecShowerShape::LatMoment(), TrkHelixUtils::lineFromMomErr(), TTrackManager::makeTds(), FTFinder::makeTds(), EmcRecTofMatch::Match(), MdcxCosmicSewer::MdcxHitsToHots(), MucRecHit::MucRecHit(), eformat::PagedMemory< TMAXPAGES >::const_iterator::operator[](), EmcRecShowerPosLogShMax::Position(), EmcRecShowerPosLoglin::Position(), EmcRecShowerPosLog::Position(), EmcRecShowerPosLinShMax::Position(), EmcRecShowerPosLin::Position(), PR_basename(), PR_compress_path(), PR_dirname(), PR_find_from_list(), BesTofSD::ProcessHits(), BesMucSD::ProcessHits(), RecMucTrack::Project(), MagFieldReader::readField(), RootAddress::RootAddress(), EmcRecShowerShape::SecondMoment(), ers::HumanStream::send(), ers::DefaultStream::send(), MdcTrack::storeTrack(), StringParse::StringParse(), facilities::Timestamp::toBinary(), RecEmcShowerCnv::TObjectToDataObject(), EmcTrackCnv::TObjectToDataObject(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), BesTofDigitizerEcV1::TofPmtAccum(), BesTofDigitizerBrV2::TofPmtAccum(), BesTofDigitizerBrV1::TofPmtAccum(), Track2Helix(), TrkCompTrk::TrkCompTrk(), MdcHitOnTrack::updateCorrections(), BesSensitiveManager::UpdateVertex(), MdcHitOnTrack::wireAmbig(), ers::StreamFactory::write_to(), and ers::IssueFactory::write_to().

int boss::doesSetup = 1 [static]

Definition at line 372 of file boss.py.

tuple boss::ldpreload [static]

Initial value:

string.strip( string.replace(
      os.environ[ 'LD_PRELOAD' ], 'libGaudiKernel.so libBossServices.so', '' ) )

Definition at line 18 of file boss.py.

list boss::optionsPath = os.environ[ 'JOBOPTSEARCHPATH' ] [static]

Definition at line 57 of file boss.py.

boss::optionsPath = os.curdir [static]

Definition at line 59 of file boss.py.

tuple boss::optionsPath = re.split( ',|' + os.pathsep, optionsPath ) [static]

Definition at line 61 of file boss.py.

tuple boss::argc = len( sys.argv ) [static]

Definition at line 112 of file boss.py.

string boss::jobOptions = "" [static]

Definition at line 113 of file boss.py.

tuple boss::doDebug = ( '', 0 ) [static]

Definition at line 118 of file boss.py.

list boss::scripts = [] [static]

Definition at line 119 of file boss.py.

tuple boss::doDebug = ( 'gdb', 1 ) [static]

Definition at line 122 of file boss.py.

boss::jobOptions = arg [static]

Definition at line 135 of file boss.py.

tuple boss::doDebug = ( arg, 0 ) [static]

Definition at line 138 of file boss.py.

tuple boss::doDebug = ( doDebug[0], 1 ) [static]

Definition at line 144 of file boss.py.

list boss::gaudimodule = sys.modules[ 'gaudimodule' ] [static]

Definition at line 156 of file boss.py.

int boss::NO_EVSEL = 99 [static]

Definition at line 160 of file boss.py.

int boss::MONTECARLO = 0 [static]

Definition at line 161 of file boss.py.

int boss::ZEBRA = 1 [static]

Definition at line 162 of file boss.py.

tuple boss::theApp = AthAppMgr() [static]

Definition at line 264 of file boss.py.

tuple boss::Algorithm = lambdaname:_cachedLookup( name, _algorithms, theApp.algorithm ) [static]

Definition at line 276 of file boss.py.

tuple boss::Service = lambdaname:_cachedLookup( name, _services, theApp.service ) [static]

Definition at line 277 of file boss.py.

tuple boss::AuditorSvc = lambda:_cachedLookup( 'AuditorSvc', _services, theApp.service ) [static]

Definition at line 278 of file boss.py.

tuple boss::sgfile = os.path.join( os.environ[ 'STOREGATEROOT' ], 'share', 'StoreGate.py' ) [static]

Definition at line 339 of file boss.py.

int boss::ALL = 0 [static]

Definition at line 353 of file boss.py.

int boss::VERBOSE = 1 [static]

Definition at line 354 of file boss.py.

int boss::DEBUG = 2 [static]

Definition at line 355 of file boss.py.

int boss::INFO = 3 [static]

Definition at line 356 of file boss.py.

int boss::WARNING = 4 [static]

Definition at line 357 of file boss.py.

int boss::ERROR = 5 [static]

Definition at line 358 of file boss.py.

int boss::FATAL = 6 [static]

Definition at line 359 of file boss.py.

int boss::TRUE = 1 [static]

Definition at line 361 of file boss.py.

int boss::FALSE = 0 [static]

Definition at line 362 of file boss.py.

int boss::doesSetup = 0 [static]

Definition at line 367 of file boss.py.

tuple boss::scrfile = open( scripts[ 0 ], 'r' ) [static]

Definition at line 368 of file boss.py.

tuple boss::pos = line.find( "theApp.setup" ) [static]

Definition at line 370 of file boss.py.

int boss::doesSetup = 1 [static]

Definition at line 372 of file boss.py.


Generated on Tue Nov 29 23:36:23 2016 for BOSS_7.0.2 by  doxygen 1.4.7