Skip to content

Instantly share code, notes, and snippets.

@VanyaBelyaev
Created March 2, 2018 08:16
Show Gist options
  • Save VanyaBelyaev/f335248a874f65f9dabdbd151a526e47 to your computer and use it in GitHub Desktop.
Save VanyaBelyaev/f335248a874f65f9dabdbd151a526e47 to your computer and use it in GitHub Desktop.
from Bender.Main import setData, appMgr, SUCCESS
## The configuration of the job
def configure ( inputdata , ## the list of input files
catalogs = [] , ## xml-catalogs (filled by GRID)
castor = False , ## use the direct access to castor/EOS ?
params = {} ) :
## import DaVinci & configure it!
from Configurables import DaVinci
## delegate the actual configuration to DaVinci
rootInTES = '/Event/PSIX'
dv = DaVinci ( DataType = '2012' ,
InputType = 'MDST' ,
RootInTES = rootInTES )
from PhysConf.Selections import AutomaticData, PrintSelection
particles = AutomaticData( 'Phys/SelPsi2KForPsiX/Particles' )
particles = PrintSelection ( particles )
dv.UserAlgorithms.append ( particles )
## define the input data
setData ( inputdata , catalogs , castor )
## get/create application manager
gaudi = appMgr()
return SUCCESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment