import os,shutil,sys,glob

# Grab the run list
listOfRuns=[]
if len(sys.argv)>0:
    for a in sys.argv[1:]: 
        if not '.py' in a: listOfRuns+=sys.argv[1].split(',')
if len(listOfRuns)==0:
    print 'Usage: makeSLHAFilesForSM.py run1 run2 run3,run4,run5 run6...'
    sys.exit(0)
print 'Getting SLHA files for run(s)',listOfRuns

# Fake some things that we won't need later
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.randomSeed = 1234
from AthenaCommon import Logging
evgenLog = Logging.logging.getLogger('SLHAGetter')

# only really need this once
from AthenaCommon.Include import IncludeError, include
include.setShowIncludes(False)
include('/cvmfs/atlas.cern.ch/repo/sw/Generators/MC12JobOptions/latest/susycontrol/MadGraphControl_SimplifiedModelPreInclude.py')
include.block('MC12JobOptions/MadGraphControl_SimplifiedModelPreInclude.py')
include.block('MC12JobOptions/MadGraphControl_SimplifiedModelPostInclude.py')

for run in listOfRuns:
    loc_l = glob.glob('/cvmfs/atlas.cern.ch/repo/sw/Generators/MC12JobOptions/latest/share/DSID'+run[0:3]+'xxx/MC12.'+run+'.*')
    if 0==len(loc_l):
        print 'Run not found:',run,'in','/cvmfs/atlas.cern.ch/repo/sw/Generators/MC12JobOptions/latest/share/DSID'+run[0:3]+'xxx/MC12.'+run+'.*'
Пример #2
0
# Run arguments file auto-generated on Sun Oct  4 10:13:52 2020 by:
# JobTransform: generate
# Version: $Id: trfExe.py 814151 2018-05-15 16:57:00Z mavogel $
# Import runArgs class
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.trfSubstepName = 'generate' 

runArgs.randomSeed = 123456
runArgs.generatorJobNumber = 0
runArgs.printEvts = 5
runArgs.runNumber = 999999
runArgs.skipEvents = 0
runArgs.maxEvents = 10
runArgs.jobConfig = ['MC15.999999.MadGraphPythia8EvtGen_NNPDF23LO_DM.py']
runArgs.generatorRunMode = 'run'
runArgs.firstEvent = 1
runArgs.ecmEnergy = 13000.0

# Input data

# Output data
runArgs.outputEVNTFile = 'EVNT.pool.root'
runArgs.outputEVNTFileType = 'EVNT'

# Extra runargs

# Extra runtime runargs

# Literal runargs snippets
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

# Run arguments file auto-generated on Tue Mar 10 17:11:50 2015 by:
# JobTransform: ESDtoAOD
# Version: $Id: trfExe.py 636429 2014-12-17 09:48:38Z graemes $
# Import runArgs class
#inputfile = '/afs/cern.ch/user/b/btong/work/testdata/data12_8TeV.00204240.express_express.recon.ESD.r6461_tid04972921_00/ESD.04972921._2.pool.root'
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.trfSubstepName = 'ESDtoAOD'

#runArgs.conditionsTag = 'COMCOND-BLKPA-RUN1-06' old tag
runArgs.preExec = [
    'rec.doTrigger.set_Value_and_Lock(True);\
rec.doJetMissingETTag.set_Value_and_Lock(False);\
from CaloRec.CaloCellFlags import jobproperties;\
jobproperties.CaloCellFlags.doLArHVCorr=False;\
jobproperties.CaloCellFlags.doPileupOffsetBCIDCorr.set_Value_and_Lock(False);\
from InDetRecExample.InDetJobProperties import InDetFlags;\
InDetFlags.doInnerDetectorCommissioning.set_Value_and_Lock(True);\
InDetFlags.useBroadClusterErrors.set_Value_and_Lock(False);\
DQMonFlags.doStreamAwareMon=False;\
DQMonFlags.enableLumiAccess.set_Value_and_Lock(True);\
from JetRec.JetRecFlags import jetFlags;\
jetFlags.useTracks=False;\
from MuonDQAMonFlags.MuonDQAProperFlags import MuonDQADetFlags;\
MuonDQADetFlags.doMDTTGCL1Mon.set_Value_and_Lock(False);\
MuonDQADetFlags.doTGCL1Mon.set_Value_and_Lock(False);\
MuonDQADetFlags.doTGCMon.set_Value_and_Lock(False);\
DQMonFlags.doMuonRawMon=False;\
DQMonFlags.doLVL1CaloMon=False;\
# Run arguments file auto-generated on Sun May  3 23:18:31 2015 by:
# JobTransform: EVNTtoDAOD
# Version: $Id: trfExe.py 643045 2015-01-30 13:43:56Z graemes $
# Import runArgs class
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.trfSubstepName = 'EVNTtoDAOD' 

runArgs.reductionConf = ['TRUTH1']

# Explicitly added to process all events in this step
runArgs.maxEvents = -1

# Input data
runArgs.inputEVNTFile = ['mc15_13TeV.361054.Sherpa_CT10_SinglePhotonPt1000_2000_CVetoBVeto.evgen.EVNT.e3587_tid04954625_00/EVNT.04954625._000522.pool.root.1']
runArgs.inputEVNTFileType = 'EVNT'
runArgs.inputEVNTFileNentries = 200L

# Output data
runArgs.outputDAOD_TRUTH1File = 'DAOD_TRUTH1.test.pool.root'
runArgs.outputDAOD_TRUTH1FileType = 'aod'

# Extra runargs

# Extra runtime runargs

# Literal runargs snippets
Пример #5
0
# JobTransform: RAWtoESD

from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.trfSubstepName = 'RAWtoESD'

runArgs.postcommand = ['include("TriggerRelease/dbmod_BFieldAutoConfig.py")']
runArgs.writeBS = False
runArgs.beamType = 'collisions'
#runArgs.AMITag = 'r10188'
runArgs.runNumber = 341615
runArgs.autoConfiguration = ['everything']
runArgs.skipEvents = 6
runArgs.maxEvents = 2
runArgs.conditionsTag = 'CONDBR2-BLKPA-2017-12'
runArgs.geometryVersion = 'ATLAS-R2-2016-01-00-01'
runArgs.postExec = [
    'topSequence.FTK_RDO_ReaderAlgo.GetTracks=False;topSequence.FTK_RDO_ReaderAlgo.GetOfflineVertex_Offline=False;topSequence.FTK_RDO_ReaderAlgo.GetRefitTracks=False;topSequence.FTK_RDO_ReaderAlgo.GetTrackParticles=False;topSequence.FTK_RDO_ReaderAlgo.GetRefitTrackParticles=False;topSequence.FTK_RDO_ReaderAlgo.GetVertex=False;topSequence.FTK_RDO_ReaderAlgo.GetRefitVertex=False;from TrigFTK_RawDataAlgs.TrigFTK_RawDataAlgsConf import FTK_RDO_MonitorAlgo;FTK_RDO_Monitor = FTK_RDO_MonitorAlgo( "FTK_RDO_MonitorAlgo");FTK_RDO_Monitor.RDO_CollectionName="FTK_RDO_Tracks";FTK_RDO_Monitor.offlineTracksName="Tracks";FTK_RDO_Monitor.FTK_DataProvider=theFTK_DataProviderSvc;alg+= FTK_RDO_Monitor;topSequence.FTK_RDO_MonitorAlgo.GetHashFromTrack=False;topSequence.FTK_RDO_MonitorAlgo.GetHashFromConstants=True;topSequence.FTK_RDO_MonitorAlgo.Nlayers=8;topSequence.FTK_RDO_MonitorAlgo.PatternsVersion=\"DataAlignment_xm05_ym05_Reb64_v2\";topSequence.FTK_RDO_MonitorAlgo.TowerID=40;topSequence.FTK_RDO_MonitorAlgo.OutputLevel=VERBOSE'
]  # set TowerID here

#FTK_RDO_Monitor.mineta=-0.1;FTK_RDO_Monitor.maxeta=1.6;FTK_RDO_Monitor.minphi=2.3;FTK_RDO_Monitor.maxphi=2.9;

runArgs.preExec = [
    'rec.doWriteAOD=False;rec.doWriteESD=False;rec.doTrigger=False;rec.doFTK=True;rec.doCalo=False;rec.doInDet=True;rec.doMuon=False;rec.doJetMissingETTag=False;rec.doEgamma=False;rec.doMuonCombined=False;rec.doTau=False;from TrigFTKByteStream.TrigFTKByteStreamConf import FTK__TrigFTKByteStreamTool as TrigFTKByteStreamTool;ftkbstool=TrigFTKByteStreamTool("FTK::TrigFTKByteStreamTool");ftkbstool.FTKAuxDataFormat=True;ToolSvc+=ftkbstool'
]

# Input data
runArgs.inputBSFile = [
    'data17_5TeV.00341184.physics_Main.merge.DRAW_ZMUMU.f903_m1831._0001.1'
]
runArgs.inputBSFileType = 'BS'
Пример #6
0
# Run arguments file auto-generated on Thu Aug 29 16:37:53 2019 by:
# JobTransform: HITtoRDO
# Version: $Id: trfExe.py 792052 2017-01-13 13:36:51Z mavogel $
# Import runArgs class
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.trfSubstepName = 'HITtoRDO'

runArgs.conditionsTag = 'OFLCOND-MC16-SDR-20'
runArgs.preExec = [
    'from AthenaCommon.DetFlags import DetFlags;DetFlags.ID_setOff();DetFlags.Calo_setOff();DetFlags.Muon_setOn();DetFlags.MDT_setOff();DetFlags.CSC_setOff();DetFlags.TGC_setOff();DetFlags.RPC_setOn();DetFlags.digitize.MDT_setOff();DetFlags.digitize.TGC_setOff();DetFlags.digitize.RPC_setOn();DetFlags.digitize.CSC_setOff();DetFlags.Truth_setOn()'
]
runArgs.postInclude = ['NtupleFragmentTestCabOnly.py']
runArgs.maxEvents = -1
runArgs.digiSeedOffset2 = 5678
runArgs.DataRunNumber = 284500
runArgs.digiSeedOffset1 = 1234
runArgs.geometryVersion = 'ATLAS-R2-2016-01-00-01_VALIDATION'

# Input data
runArgs.inputHITSFile = ['OUT.HITS.pool.root']
runArgs.inputHITSFileType = 'HITS'
runArgs.inputHITSFileNentries = 1000L
runArgs.HITSFileIO = 'input'

# Output data
runArgs.outputRDOFile = 'OUT.RDO.pool.root'
runArgs.outputRDOFileType = 'RDO'

# Extra runargs
Пример #7
0
import os, shutil, sys, glob

# Grab the run list
listOfRuns = []
if len(sys.argv) > 0:
    for a in sys.argv[1:]:
        if not '.py' in a: listOfRuns += sys.argv[1].split(',')
if len(listOfRuns) == 0:
    print 'Usage: makeSLHAFilesForSM.py run1 run2 run3,run4,run5 run6...'
    sys.exit(0)
print 'Getting SLHA files for run(s)', listOfRuns

# Fake some things that we won't need later
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.randomSeed = 1234
from AthenaCommon import Logging
evgenLog = Logging.logging.getLogger('SLHAGetter')

# only really need this once
from AthenaCommon.Include import IncludeError, include
include.setShowIncludes(False)
include(
    '/cvmfs/atlas.cern.ch/repo/sw/Generators/MC12JobOptions/latest/susycontrol/MadGraphControl_SimplifiedModelPreInclude.py'
)
include.block('MC12JobOptions/MadGraphControl_SimplifiedModelPreInclude.py')
include.block('MC12JobOptions/MadGraphControl_SimplifiedModelPostInclude.py')

for run in listOfRuns:
    loc_l = glob.glob(
Пример #8
0
# Run arguments file auto-generated on Thu Aug 29 16:30:14 2019 by:
# JobTransform: EVNTtoHITS
# Version: $Id: trfExe.py 792052 2017-01-13 13:36:51Z mavogel $
# Import runArgs class
from PyJobTransforms.trfJobOptions import RunArguments
runArgs = RunArguments()
runArgs.trfSubstepName = 'EVNTtoHITS'

runArgs.conditionsTag = 'OFLCOND-MC16-SDR-20'
runArgs.physicsList = 'FTFP_BERT_ATL_VALIDATION'
runArgs.truthStrategy = 'MC15aPlus'
runArgs.randomSeed = 1234
runArgs.simulator = 'FullG4'
runArgs.preInclude = [
    'preInclude.GeantinoGenerator.py',
    'SimulationJobOptions/preInclude.BeamPipeKill.py'
]
runArgs.postInclude = ['postInclude.MuonGeomodel.py']
runArgs.preExec = [
    'simFlags.SimBarcodeOffset.set_Value_and_Lock(200000)',
    'simFlags.TRTRangeCut=30.0;simFlags.TightMuonStepping=True'
]
runArgs.maxEvents = 1000
runArgs.geometryVersion = 'ATLAS-R2-2016-01-00-01_VALIDATION'
runArgs.postExec = [
    'from EvgenProdTools.EvgenProdToolsConf import SimTimeEstimate; topSeq+=SimTimeEstimate("SimTimeEstimate")'
]
runArgs.DataRunNumber = 284500

# Input data