## @file: AthenaPython/copy_file.py ## @purpose: simple jobo to copy any file, leveraging the auto-config fwk ## @date January 2010 ## @author Sebastien Binet <*****@*****.**> __version__ = "$Revision: 293864 $" __author__ = "Sebastien Binet <*****@*****.**>" __doc__ = "simple jobo to copy any file, leveraging the auto-config fwk" ## percolate through the auto-configuration ## input files configuration from AthenaCommon.AthenaCommonFlags import jobproperties as jp acf = jp.AthenaCommonFlags assert len(acf.FilesInput()) != 0, \ "this jobo fragment needs the autoconfig-fwk." \ "FilesInput needs to be filled" import AthenaPython.ConfigLib as apcl cfg = apcl.copy_file(src=acf.FilesInput(), dst="copy_file.pool") if cfg.is_rdo() or cfg.is_esd() or cfg.is_aod(): # main jobos include('RecExCond/RecExCommon_flags.py') include('RecExCommon/RecExCommon_topOptions.py')
doReadBS = True from AthenaCommon.AthenaCommonFlags import athenaCommonFlags if not doReadBS: athenaCommonFlags.FilesInput = ["root://eosatlas//eos/atlas/atlascerngroupdisk/perf-idtracking/InDetRecExample/data10_cos.00151040.physics_IDCosmic.recon.ESD.f220/data10_cos.00151040.physics_IDCosmic.recon.ESD.f220._lb0002._0001.1"] if doReadBS: # Since BS doesn't yet support xrootd need to set import os os.environ['STAGE_HOST']="castoratlast3" os.environ['STAGE_SVCCLASS']="atlascerngroupdisk" athenaCommonFlags.FilesInput = ["root://eosatlas//eos/atlas/atlascerngroupdisk/proj-sit/tct/rec_input/tracking/data10_cos.00151040.physics_IDCosmic.merge.RAW._lb0002._0001.1"] import AthenaPython.ConfigLib as apcl cfg = apcl.AutoCfg(name = 'InDetRecExampleAutoConfig', input_files=athenaCommonFlags.FilesInput()) cfg.configure_job() if doReadBS: from AthenaCommon.GlobalFlags import globalflags if len(globalflags.ConditionsTag())!=0: from IOVDbSvc.CondDB import conddb conddb.setGlobalTag(globalflags.ConditionsTag()) # request TrackingGeo tag AtlasLayerMat_v18_ATLAS-GEO-16 # but there are only AtlasLayerMat_v16_ATLAS-GEO-16 # or AtlasLayerMat_v18_ATLAS-R1-2010-01 # @TODO switch to more recent data file ? conddb.addOverride('/GLOBAL/TrackingGeo/LayerMaterialV2','AtlasLayerMat_v19s0_ATLAS-R1-2010-01') #conddb.addOverride('/GLOBAL/TrackingGeo/LayerMaterialV2','AtlasLayerMat_v16_ATLAS-GEO-16') import MagFieldServices.SetupField
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags #athenaCommonFlags.FilesInput = [ '/tmp/nbarlow/ESD.092064._000001.pool.root.1'] athenaCommonFlags.FilesInput = [ # '/home/nbarlow/AOD/mc09_7TeV.109279.J3_pythia_jetjet_1muon.recon.AOD.e534_s765_s767_r1302_tid137138_00/AOD.137138._000290.pool.root.1' "/home/nbarlow/ESD/group.perf-idtracking.mc11_valid.114006.Pythia_RPV_vtx2_LSP500_filtDL.e825_s1310_s1300_d578.pu0.17p0p2p10.cutLevel4.v1.110919115344_EXT1/group.perf-idtracking.33771_004507.EXT1._00017.ESD.root" # '/home/nbarlow/ESD/mc10_7TeV.114006.Pythia_RPV_vtx2_LSP500_filtDL.recon.ESD.e574_s933_s946_r1801_tid209795_00/ESD.209795._000001.pool.root.1' # '/home/nbarlow/AOD/data10_7TeV.00161379.physics_MinBias.merge.AOD.r1647_p306_p307_tid187847_00/AOD.187847._000001.pool.root.1' ] #athenaCommonFlags.FilesInput = [ '/tmp/nbarlow/myESD_MuonswBeam_156xy.pool.root'] #athenaCommonFlags.FilesInput = ['/tmp/nbarlow/data10_7TeV.00152166.physics_MinBias.recon.ESD.r1297_tid135296_00/ESD.135296._000480.pool.root.1'] import AthenaPython.ConfigLib as apcl cfg = apcl.AutoCfg(name='RPVDispVrtAutoConfig', input_files=athenaCommonFlags.FilesInput()) cfg.configure_job() from RecExConfig.RecFlags import rec import AthenaCommon.SystemOfUnits as Units from AthenaCommon.GlobalFlags import globalflags include("RecExCommon/RecExCommon_topOptions.py") ## Top Sequence from AthenaCommon.AlgSequence import AlgSequence topSequence = AlgSequence() #### optional pre-filtering before running the vertexing etc. #include("RPVDispVrt/RPVFilter_jobOptions.py")
# --- redo primary vertexing (will be set to true later automatically if you redid the tracking and want to redo the TrackParticle creation) reDoPrimaryVertexing = True # --- redo particle creation (recommended after revertexing on ESD, otherwise trackparticles are inconsistent) reDoParticleCreation = True # --- redo conversion finding reDoConversions = False # --- redo V0 finding reDoV0Finder = False #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: from AthenaCommon.AthenaCommonFlags import athenaCommonFlags from AthenaCommon.GlobalFlags import globalflags import AthenaPython.ConfigLib as apcl if globalflags.InputFormat() == 'bytestream': cfg = apcl.AutoCfg(name='MyAutoConfig', input_files=athenaCommonFlags.BSRDOInput()) cfg.configure_job() else: cfg = apcl.AutoCfg(name='MyAutoConfig', input_files=athenaCommonFlags.FilesInput()) cfg.configure_job() #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: from InDetRecExample.InDetJobProperties import InDetFlags InDetFlags.doTruth = (globalflags.DataSource == 'geant4' and globalflags.InputFormat == "pool") InDetFlags.preProcessing = redoPatternRecoAndTracking InDetFlags.doPRDFormation = False # For SCT_Clusters if globalflags.InputFormat() == 'bytestream':
## @file: AthenaPython/read_file.py ## @purpose: simple jobo to read any file, leveraging the auto-config fwk ## @date November 2009 ## @author Sebastien Binet <*****@*****.**> __version__ = "$Revision: 279865 $" __author__ = "Sebastien Binet <*****@*****.**>" __doc__ = "simple jobo to read any file, leveraging the auto-config fwk" ## percolate through the auto-configuration ## input files configuration from AthenaCommon.AthenaCommonFlags import jobproperties as jp acf = jp.AthenaCommonFlags assert len(acf.FilesInput()) != 0, \ "this jobo fragment needs the autoconfig-fwk." \ "FilesInput needs to be filled" import AthenaPython.ConfigLib as apcl cfg = apcl.AutoCfg(name='read-file', input_files=acf.FilesInput()) cfg.configure_job() if not cfg.is_evgen(): # main jobos include('RecExCond/RecExCommon_flags.py') include('RecExCommon/RecExCommon_topOptions.py')
## @author Sebastien Binet <*****@*****.**> __version__ = "$Revision: 293864 $" __author__ = "Sebastien Binet <*****@*****.**>" __doc__ = "simple jobo to copy any file, leveraging the auto-config fwk" ## percolate through the auto-configuration ## input files configuration from AthenaCommon.AthenaCommonFlags import jobproperties as jp acf = jp.AthenaCommonFlags _input_files = globals()['FNAME'] if isinstance(_input_files, basestring): _input_files = [_input_files] acf.FilesInput = _input_files del _input_files # events to process acf.EvtMax = EvtMax = theApp.EvtMax = globals().get('EVTMAX', -1) import AthenaPython.ConfigLib as apcl cfg = apcl.AutoCfg(name='copy-file', input_files=acf.FilesInput(), output_file=globals().get('OFNAME', 'copy_file.pool')) cfg.configure_job() if cfg.is_rdo() or cfg.is_esd() or cfg.is_aod(): # main jobos include('RecExCond/RecExCommon_flags.py') include('RecExCommon/RecExCommon_topOptions.py')
nThreads = jp.ConcurrencyFlags.NumThreads() # for some reason, the synchronization fails if we run in ST... if (nThreads < 1): msg.fatal('numThreads must be >0. Did you set the --threads=N option?') sys.exit(AthenaCommon.ExitCodes.CONFIGURATION_ERROR) from AthenaCommon.AthenaCommonFlags import athenaCommonFlags athenaCommonFlags.FilesInput = [ "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/esd/100evts10lumiblocks.ESD.root" ] import AthenaPoolCnvSvc.ReadAthenaPool # build GeoModel import AthenaPython.ConfigLib as apcl cfg = apcl.AutoCfg(name='MaterialMapValidation', input_files=athenaCommonFlags.FilesInput()) cfg.configure_job() from AthenaCommon.GlobalFlags import globalflags if len(globalflags.ConditionsTag()) != 0: from IOVDbSvc.CondDB import conddb conddb.setGlobalTag(globalflags.ConditionsTag()) from AtlasGeoModel.InDetGMJobProperties import InDetGeometryFlags InDetGeometryFlags.useDynamicAlignFolders = True # Just the pixel and SCT DetFlags.ID_setOn() DetFlags.Calo_setOn()
## @file: AthenaPython/copy_file.py ## @purpose: simple jobo to copy any file, leveraging the auto-config fwk ## @date January 2010 ## @author Sebastien Binet <*****@*****.**> __version__ = "$Revision: 293864 $" __author__ = "Sebastien Binet <*****@*****.**>" __doc__ = "simple jobo to copy any file, leveraging the auto-config fwk" ## percolate through the auto-configuration ## input files configuration from AthenaCommon.AthenaCommonFlags import jobproperties as jp acf = jp.AthenaCommonFlags assert len(acf.FilesInput()) != 0, \ "this jobo fragment needs the autoconfig-fwk." \ "FilesInput needs to be filled" import AthenaPython.ConfigLib as apcl cfg = apcl.copy_file(src=acf.FilesInput(), dst="copy_file.pool") if cfg.is_rdo() or cfg.is_esd() or cfg.is_aod(): # main jobos include ('RecExCond/RecExCommon_flags.py') include ('RecExCommon/RecExCommon_topOptions.py')
nThreads = jp.ConcurrencyFlags.NumThreads() # for some reason, the synchronization fails if we run in ST... if (nThreads < 1): msg.fatal('numThreads must be >0. Did you set the --threads=N option?') sys.exit(AthenaCommon.ExitCodes.CONFIGURATION_ERROR) from AthenaCommon.AthenaCommonFlags import athenaCommonFlags athenaCommonFlags.FilesInput = [ "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/esd/100evts10lumiblocks.ESD.root" ] import AthenaPoolCnvSvc.ReadAthenaPool # build GeoModel import AthenaPython.ConfigLib as apcl cfg = apcl.AutoCfg(name='TrackingGeometryTest', input_files=athenaCommonFlags.FilesInput()) cfg.configure_job() from AthenaCommon.GlobalFlags import globalflags if len(globalflags.ConditionsTag()) != 0: from IOVDbSvc.CondDB import conddb conddb.setGlobalTag(globalflags.ConditionsTag()) from AtlasGeoModel.InDetGMJobProperties import InDetGeometryFlags InDetGeometryFlags.useDynamicAlignFolders = True # Just the pixel and SCT DetFlags.ID_setOn() DetFlags.Calo_setOn()