Created
March 2, 2018 08:16
-
-
Save VanyaBelyaev/f335248a874f65f9dabdbd151a526e47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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