Beispiel #1
0
#if _checkattr( "randomSeed") :
print "MetaData: %s = %s" % ("randomSeed", str(runArgs.randomSeed))
 
    
    

# Output list of generator filters used
filterNames = [alg.getType() for alg in acas.iter_algseq(filtSeq)]
excludedNames = ['AthSequencer', 'PyAthena::Alg', 'TestHepMC']
filterNames = list(set(filterNames) - set(excludedNames))
print "MetaData: %s = %s" % ("genFilterNames", ", ".join(filterNames))


##==============================================================
## Dump evgenConfig so it can be recycled in post-run actions
##==============================================================

from PyJobTransformsCore.runargs import RunArguments
runPars = RunArguments()
runPars.minevents = evgenConfig.minevents
runPars.maxeventsstrategy = evgenConfig.maxeventsstrategy
with open("config.pickle", 'w') as f:
    import cPickle
    cPickle.dump(runPars, f)


##==============================================================
## Get ready to run...
##==============================================================
evgenLog.debug("****************** STARTING EVENT GENERATION *****************")
Beispiel #2
0
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags

# etse a handle on the ServiceManager which holds all the services
from AthenaCommon.AppMgr import (theApp, ServiceMgr as svcMgr,ToolSvc)

# Event selector
import AthenaPoolCnvSvc.ReadAthenaPool

# Particle Properties
from PartPropSvc.PartPropSvcConf import PartPropSvc

from AthenaServices.AthenaServicesConf import AthenaEventLoopMgr
AthenaEventLoopMgr.OutputLevel = WARNING

from PyJobTransformsCore.runargs import RunArguments
runArgs = RunArguments()
runArgs.inputESDFile = [
"rfio:/castor/cern.ch/grid/atlas/tzero/prod1/perm/data14_cos/physics_CosmicCalo/00247390/data14_cos.00247390.physics_CosmicCalo.recon.ESD.x289/data14_cos.00247390.physics_CosmicCalo.recon.ESD.x289._lb0084._SFO-ALL._0001.1"
]

athenaCommonFlags.FilesInput.set_Value_and_Lock( runArgs.inputESDFile )

athenaCommonFlags.EvtMax.set_Value_and_Lock(-1)

from RecExConfig.RecFlags import rec
rec.readRDO.set_Value_and_Lock(False)
rec.readTAG.set_Value_and_Lock(False)
rec.readESD.set_Value_and_Lock(True)
rec.readAOD.set_Value_and_Lock(False)
rec.doWriteESD.set_Value_and_Lock(False)
rec.doWriteAOD.set_Value_and_Lock(False)
Beispiel #3
0
# Run arguments file auto-generated on Wed Feb  5 13:26:15 2014 by:
# JobTransform: AODtoDPD
# Version: unknown

# Authors: David Cote <*****@*****.**>

#################################################################################
from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()


# Maximum number of events to process
runArgs.maxEvents = 100

# Input file that contains AODs
runArgs.inputAODFile = ['/tmp/arturos/mc12_8TeV.169051.PowhegPythia8_AU2CT10_ggH400NWA_ZZllqq.merge.AOD.e1642_s1581_s1586_r3658_r3549_tid01073450_00/AOD.01073450._000001.pool.root.1']

# Transfrom a string into generic multi-line python fragment where each line is an element in a list.
runArgs.preExec = ['from BTagging.BTaggingFlags import BTaggingFlags;BTaggingFlags.CalibrationTag="BTagCalibALL-07-02"']

# Output file that contains ntuples.
runArgs.outputNTUP_HSG2File = 'NTUP_HSG2_2.root'

# List of strings separated by commas
runArgs.autoConfiguration = ['everything']
DQMonFlags.doJetMon.set_Value_and_Lock(False)
DQMonFlags.doTauMon.set_Value_and_Lock(False)
DQMonFlags.doJetTagMon.set_Value_and_Lock(False)
DQMonFlags.doMuonCombinedMon.set_Value_and_Lock(False)

DQMonFlags.doMuonRawMon.set_Value_and_Lock(False)
DQMonFlags.doMuonSegmentMon.set_Value_and_Lock(False)
DQMonFlags.doMuonTrackMon.set_Value_and_Lock(False)
DQMonFlags.doMuonAlignMon.set_Value_and_Lock(False)
DQMonFlags.doMuonPhysicsMon.set_Value_and_Lock(False)

DQMonFlags.doMuonTrkPhysMon.set_Value_and_Lock(True)

from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

# Maximum number of events to process
runArgs.maxEvents = 500

# Input file that contains AOD's
runArgs.inputFile = [
    '/afs/cern.ch/work/d/dblackbu/temp/mc14_8TeV.108295.Herwigpp_UEEE3_CTEQ6L1_Zmumu.merge.AOD.e2726_s1933_s1911_r5591_r5625_tid01522870_00/AOD.01522870._001232.pool.root.1'
]
#runArgs.inputAODFile = ['/tmp/dblackbu/mc14_8TeV.147807.PowhegPythia8_AU2CT10_Zmumu.recon.AOD.e1852_s1896_s1912_r5280_tid01425010_00/AOD.01425010._023818.pool.root.1']

# Basic string
#runArgs.AMITag = 'f414'

# Basic string for data
runArgs.beamType = 'collisions'
Beispiel #5
0
if _checkattr("specialConfig"):
    printfunc("MetaData: %s = %s" %
              ("specialConfig", evgenConfig.specialConfig))
# TODO: Require that a contact / JO author is always set
if _checkattr("contact"):
    printfunc("MetaData: %s = %s" %
              ("contactPhysicist", ", ".join(evgenConfig.contact)))

# Output list of generator filters used
filterNames = [alg.getType() for alg in acas.iter_algseq(filtSeq)]
excludedNames = ['AthSequencer', 'PyAthena::Alg', 'TestHepMC']
filterNames = list(set(filterNames) - set(excludedNames))
printfunc("MetaData: %s = %s" % ("genFilterNames", ", ".join(filterNames)))

##==============================================================
## Dump evgenConfig so it can be recycled in post-run actions
##==============================================================

from PyJobTransformsCore.runargs import RunArguments
runPars = RunArguments()
runPars.nEventsPerJob = evgenConfig.nEventsPerJob
runPars.maxeventsstrategy = evgenConfig.maxeventsstrategy
with open("config.pickle", 'w') as f:
    import cPickle
    cPickle.dump(runPars, f)

##==============================================================
## Get ready to run...
##==============================================================
evgenLog.info("****************** STARTING EVENT GENERATION *****************")
Beispiel #6
0
os.system('hostname')
print ('CPU infos :')
os.system('cat /proc/cpuinfo')
print ('MEM infos :')
os.system('cat /proc/meminfo')

# Run arguments file auto-generated on Mon Mar 16 15:14:57 2009 by:
# JobTransform: RAWtoESD
# Version: RecJobTransforms-00-08-08

# Authors: David Cote <*****@*****.**>

#################################################################################

from PyJobTransformsCore.runargs import RunArguments
runArgs = RunArguments()

runArgs.maxEvents = 100

runArgs.conditionsTag = 'COMCOND-REPC-002-03'

# Input file that contains BSs
runArgs.inputBSFile = [
    "root://castoratlas//castor/cern.ch/grid/atlas/DAQ/2008/87851/physics_BPTX/daq.NoTag.0087851.physics.BPTX.LB0000.SFO-1._0001.data",
    "root://castoratlas//castor/cern.ch/grid/atlas/DAQ/2008/87851/physics_BPTX/daq.NoTag.0087851.physics.BPTX.LB0000.SFO-3._0001.data"
#    "root://castoratlas//castor/cern.ch/grid/atlas/DAQ/2008/87851/physics_BPTX/daq.NoTag.0087851.physics.BPTX.LB0000.SFO-2._0001.data",
    #    "root://castoratlas//castor/cern.ch/grid/atlas/DAQ/2008/87851/physics_BPTX/daq.NoTag.0087851.physics.BPTX.LB0000.SFO-4._0001.data",
#    "root://castoratlas//castor/cern.ch/grid/atlas/DAQ/2008/87851/physics_BPTX/daq.NoTag.0087851.physics.BPTX.LB0000.SFO-5._0001.data"
    ]

# Configuration fragment for DPD.
Beispiel #7
0
os.system('hostname')
print ('CPU infos :')
os.system('cat /proc/cpuinfo')
print ('MEM infos :')
os.system('cat /proc/meminfo')

# Run arguments file auto-generated on Mon Mar 16 15:14:57 2009 by:
# JobTransform: RAWtoESD
# Version: RecJobTransforms-00-08-08

# Authors: David Cote <*****@*****.**>

#################################################################################

from PyJobTransformsCore.runargs import RunArguments
runArgs = RunArguments()

runArgs.maxEvents = 100

#runArgs.conditionsTag = 'COMCOND-REPC-002-03'
runArgs.conditionsTag = 'COMCOND-REPC-000-00'

# Input file that contains BSs
runArgs.inputBSFile = ["/afs/cern.ch/user/c/cote/gencomm/NightlyTestInput/data09_900GeV.00141749.physics_MinBias.merge.RAW._lb0092._0001.1_10evts._0001.data" ]

# Configuration fragment for DPD.
#runArgs.autoConfiguration = ['FieldAndGeo', 'BeamType', 'ConditionsTag']

# Basic string
#runArgs.trigStream = 'IDCosmic'
runArgs.trigStream = 'MinBias'
Beispiel #8
0
#Transform skeleton for vertex-based beamspot method

#define variables at the top
from AthenaCommon.Logging import logging
recoLog = logging.getLogger('beamspot Vertex determination')
recoLog.info(
    '****************** STARTING Beamspot Determination  MAKING *****************'
)

#For beamspot InDetExample
jobConfig = {}

if not 'runArgs' in dir():
    from PyJobTransformsCore.runargs import RunArguments
    runArgs = RunArguments()

from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
import AthenaPoolCnvSvc.ReadAthenaPool
print runArgs

if hasattr(runArgs, "InputDESDM_BEAMSPOTFile"):
    #athenaCommonFlags.PoolDPDInput.set_Value_and_Lock( runArgs.inputDPDFile )
    #ServiceMgr.EventSelector.InputCollections = runArgs.inputDPDFile
    athenaCommonFlags.FilesInput = runArgs.InputDESDM_BEAMSPOTFile  #  for filePeeking
    jobConfig['inputfiles'] = runArgs.InputDESDM_BEAMSPOTFile

if hasattr(runArgs, "beamspotFile"):
    jobConfig['histfile'] = runArgs.beamspotFile
else:
    jobConfig['histfile'] = "beamspot.root"
Beispiel #9
0
#################################################################################
# Run arguments file auto-generated on Thu Aug 20 12:41:38 2009 by:
# JobTransform: ESDtoAOD
# Version: RecJobTransforms-00-08-33
# Authors: David Cote <*****@*****.**>
#################################################################################

from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

runArgs.conditionsTag = 'COMCOND-ES1C-001-01'

#runArgs.beamType = 'cosmics'

runArgs.outputDQMonitorFile = 'MonitorESD.root'

#runArgs.trigStream = 'IDCosmic'

runArgs.maxEvents = -1

runArgs.inputESDFile = ['myESD.pool.root']

runArgs.preInclude = [
    'RecExCommon/RecoUsefulFlags.py',
    'RecExCommission/MinimalCommissioningSetup.py',
    'RecJobTransforms/UseOracle.py', 'RecJobTransforms/debugConfig.py'
]

runArgs.outputAODFile = 'myAOD.pool.root'
Beispiel #10
0
os.system('hostname')
print('CPU infos :')
os.system('cat /proc/cpuinfo')
print('MEM infos :')
os.system('cat /proc/meminfo')

# Run arguments file auto-generated on Mon Mar 16 15:14:57 2009 by:
# JobTransform: RAWtoESD
# Version: RecJobTransforms-00-08-08

# Authors: David Cote <*****@*****.**>

#################################################################################

from PyJobTransformsCore.runargs import RunArguments
runArgs = RunArguments()

# Maximum number of events to process
runArgs.maxEvents = 150

runArgs.conditionsTag = 'COMCOND-REPC-002-03'

# Input file that contains BSs
runArgs.inputBSFile = [
    "root://castoratlas//castor/cern.ch/grid/atlas/DAQ/2008/91900/physics_IDCosmic/daq.ATLAS.0091900.physics.IDCosmic.LB0001.SFO-1._0002.data"
]

# Configuration fragment for DPD.
#runArgs.autoConfiguration = ['FieldAndGeo', 'BeamType', 'ConditionsTag']

# Basic string
Beispiel #11
0
        #thejob.FileStager.CpArguments   = stagetool.CpArguments
        thejob.FileStager.FirstFileAlreadyStaged = stagetool.StageFirstFile
        thejob.FileStager.StoreStatistics = False

    #################################################################################################
    # Pass collection names to EventSelector
    #################################################################################################

    ## set input collections
    ic = []
    if stagetool.DoStaging():
        ic = stagetool.GetStageCollections()
    else:
        ic = stagetool.GetSampleList()

    ## assume we're dealing with AODs, else ESDs
    poolESDInput = False
    if len(ic) > 0:
        if ic[0].find('ESD') > 0: poolESDInput = True

    # import run arguments
    if not 'runArgs' in dir():
        from PyJobTransformsCore.runargs import RunArguments
        runArgs = RunArguments()

    # Input file that contains ESD's
    if poolESDInput:
        runArgs.inputESDFile = ic
    else:
        runArgs.inputFile = ic
Beispiel #12
0
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

# Run arguments file auto-generated on Fri Mar 12 16:42:54 2010 by:
# JobTransform: ESDtoAOD
# Version: PATJobTransforms-00-01-99

# Authors: David Cote <*****@*****.**>

#################################################################################
from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

from AthenaMonitoring.DQMonFlags import DQMonFlags

DQMonFlags.doGlobalMon = False
DQMonFlags.doLVL1CaloMon = False
DQMonFlags.doCTPMon = False
DQMonFlags.doHLTMon = False
DQMonFlags.doPixelMon = False
DQMonFlags.doSCTMon = False
DQMonFlags.doTRTMon = False
DQMonFlags.doTRTElectronMon = False
DQMonFlags.doInDetGlobalMon = False
DQMonFlags.doInDetAlignMon = False
DQMonFlags.doInDetPerfMon = False
DQMonFlags.doLArMon = False
DQMonFlags.doCaloMon = False
DQMonFlags.doTileMon = False
DQMonFlags.doEgammaMon = False
DQMonFlags.doMissingEtMon = False
Beispiel #13
0
DQMonFlags.doJetMon.set_Value_and_Lock(False)
DQMonFlags.doTauMon.set_Value_and_Lock(False)
DQMonFlags.doJetTagMon.set_Value_and_Lock(False)
DQMonFlags.doMuonCombinedMon.set_Value_and_Lock(False)

DQMonFlags.doMuonRawMon.set_Value_and_Lock(False)
DQMonFlags.doMuonSegmentMon.set_Value_and_Lock(False)
DQMonFlags.doMuonTrackMon.set_Value_and_Lock(False)
DQMonFlags.doMuonAlignMon.set_Value_and_Lock(False)
DQMonFlags.doMuonPhysicsMon.set_Value_and_Lock(False)

DQMonFlags.doMuonTrkPhysMon.set_Value_and_Lock(True)

from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

# Maximum number of events to process
runArgs.maxEvents = 500

# Input file that contains AODs
runArgs.inputFile = ["/afs/cern.ch/work/r/rrosten/testxAOD/AOD.testxAOD.root"]

# Basic string
#runArgs.AMITag = 'f414'

# Basic string for data
runArgs.beamType = 'collisions'

# Output file that contains AOD's
# runArgs.outputAODFile = '/tmp/nectar/AOD.pool.root'
print('Hostname :')
os.system('hostname')
print('CPU infos :')
os.system('cat /proc/cpuinfo')
print('MEM infos :')
os.system('cat /proc/meminfo')

# Run arguments file auto-generated on Mon Mar 16 15:14:57 2009 by:
# JobTransform: RAWtoESD
# Version: RecJobTransforms-00-08-08

#################################################################################

from PyJobTransformsCore.runargs import RunArguments
runArgs = RunArguments()

# Maximum number of events to process
runArgs.maxEvents = 150

#runArgs.conditionsTag = 'COMCOND-REPC-002-03'
runArgs.conditionsTag = 'COMCOND-REPC-000-00'

# Input file that contains BSs
runArgs.inputBSFile = [
    "/afs/cern.ch/user/c/cote/gencomm/NightlyTestInput/data09_cos.00135664.physics_IDCosmic.daq.RAW._lb0000._SFO-2._0001.data"
]

# Basic string
runArgs.trigStream = 'IDCosmic'
from GaudiSvc.GaudiSvcConf import THistSvc
svcMgr += THistSvc()

rootFile = "Rivet.root"

if hasattr(runArgs, "outputYODAFile"):
    anaSeq.Rivet_i.HistoFile = runArgs.outputYODAFile
    rootFile = runArgs.outputYODAFile.replace(".yoda", ".root")

svcMgr.THistSvc.Output += ["Rivet DATAFILE='" + rootFile + "' OPT='RECREATE'"]

##==============================================================
## Show the algorithm sequences and algs now that config is complete
##==============================================================
acas.dumpMasterSequence()

##==============================================================
## Dump evgenConfig so it can be recycled in post-run actions
##==============================================================

from PyJobTransformsCore.runargs import RunArguments
runPars = RunArguments()
with open("config.pickle", 'w') as f:
    import cPickle
    cPickle.dump(runPars, f)

##==============================================================
## Get ready to run...
##==============================================================
evgenLog.debug("****************** STARTING Rivet *****************")
DQMonFlags.doTauMon.set_Value_and_Lock(False)
DQMonFlags.doJetTagMon.set_Value_and_Lock(False)
DQMonFlags.doMuonCombinedMon.set_Value_and_Lock(False)

DQMonFlags.doMuonRawMon.set_Value_and_Lock(False)
DQMonFlags.doMuonSegmentMon.set_Value_and_Lock(False)
DQMonFlags.doMuonTrackMon.set_Value_and_Lock(False)
DQMonFlags.doMuonAlignMon.set_Value_and_Lock(False)
DQMonFlags.doMuonPhysicsMon.set_Value_and_Lock(False)

DQMonFlags.doMuonTrkPhysMon.set_Value_and_Lock(True)


from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

# Maximum number of events to process
runArgs.maxEvents = 10
 
# Input file that contains ESD's
runArgs.inputESDFile = ['ESD.01297316._000042.pool.root.1'] 
 
  
# Basic string for data
runArgs.beamType = 'collisions'

# Output file that contains AOD's
# runArgs.outputAODFile = '/tmp/nectar/AOD.pool.root'

####runArgs.preInclude = ['RecExCommon/RecoUsefulFlags.py', 'RecExCommission/MinimalCommissioningSetup.py', 'RecJobTransforms/UseOracle.py', 'RecJobTransforms/debugConfig.py']
Beispiel #17
0
# Run arguments file auto-generated on Tue Jun 16 00:13:43 2009 by:
# JobTransform: RAWtoESD
# Version: RecJobTransforms-00-08-26

# Authors: David Cote <*****@*****.**>

#################################################################################
from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

# Input file that contains BSs
runArgs.inputBSFile = [
    '/afs/cern.ch/user/g/gencomm/w0/RTT_INPUT_DATA/CosmicATN/daq.ATLAS.0091900.physics.IDCosmic.LB0001.SFO-1._0001.10EVTS.data'
]

# Basic string
runArgs.trigStream = 'IDCosmic'

# List of strings separated by commas
runArgs.autoConfiguration = ['FieldAndGeo', 'BeamType', 'ConditionsTag']

# Maximum number of events to process
runArgs.maxEvents = 2

# List of strings separated by commas
runArgs.preInclude = ['RecExCommission/MinimalCommissioningSetup.py']

# List of strings separated by commas
runArgs.postInclude = [
    'RecJobTransforms/reducedRegionSelectorPostConfig.py',
#DetFlags.Muon_setOn()
#if alignmentJob=="L1_MSID":
#  DetFlags.ID_setOn()
#if alignmentJob!="L3CSC":
#  DetFlags.CSC_setOff()
#  muonRecFlags.doCSCs.set_Value_and_Lock(False)
#else:
#  DetFlags.CSC_setOn()
#  muonRecFlags.doCSCs.set_Value_and_Lock(True)

#print "!!!!!!!!!!!!!!!!!!!!!!! (check for ID on/off) DetFlags: "
#DetFlags.Print()

from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

runArgs.preExec = []

# Maximum number of events to process
runArgs.skipEvents = skipEvents
runArgs.maxEvents = maxEvents

# Input file that contains ESD's
if tag == "":
    runArgs.inputESDFile = inputFile

runArgs.outputLevel = DEBUG

# Output file that contains AOD's
# runArgs.outputAODFile = '/tmp/roberth/AOD.pool.root'
Beispiel #19
0
#initial setup parameters
from AthenaCommon.Logging import logging
recoLog = logging.getLogger('esd_to_beamspotDPD')
recoLog.info('****************** STARTING ESD->DPD MAKING *****************')

if not 'runArgs' in dir():
    from PyJobTransformsCore.runargs import RunArguments
    runArgs = RunArguments()
from RecExConfig.RecFlags import rec

#rec.AutoConfiguration = ['everything']
runArgs.autoConfiguration = ['everything']
rec.AutoConfiguration = runArgs.autoConfiguration
print rec.AutoConfiguration
print rec
#print CCC

from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
from AthenaCommon.GlobalFlags import globalflags
if hasattr(runArgs, "inputESDFile"):
    globalflags.InputFormat.set_Value_and_Lock('pool')
    rec.readESD.set_Value_and_Lock(True)
    rec.readRDO.set_Value_and_Lock(False)
    athenaCommonFlags.PoolESDInput.set_Value_and_Lock(runArgs.inputESDFile)
#else:
#    athenaCommonFlags.PoolESDInput=["/afs/cern.ch/user/j/jwalder/scratch0/data/firstData/data09_900GeV.00141749.express_express.merge.DESD_COLLCAND.f186_m305._lb0063-lb0082.1"]

if hasattr(runArgs, "outputDPDFile"):
    outputDPDname = runArgs.outputDPDFile
else:
    outputDPDname = "BeamspotDPD.pool.root"
Beispiel #20
0
DQMonFlags.doJetMon.set_Value_and_Lock(False)
DQMonFlags.doTauMon.set_Value_and_Lock(False)
DQMonFlags.doJetTagMon.set_Value_and_Lock(False)
DQMonFlags.doMuonCombinedMon.set_Value_and_Lock(False)

DQMonFlags.doMuonRawMon.set_Value_and_Lock(False)
DQMonFlags.doMuonSegmentMon.set_Value_and_Lock(False)
DQMonFlags.doMuonTrackMon.set_Value_and_Lock(False)
DQMonFlags.doMuonAlignMon.set_Value_and_Lock(False)
DQMonFlags.doMuonPhysicsMon.set_Value_and_Lock(False)

DQMonFlags.doMuonTrkPhysMon.set_Value_and_Lock(True)

from PyJobTransformsCore.runargs import RunArguments

runArgs = RunArguments()

# Maximum number of events to process
runArgs.maxEvents = 500

# Input file that contains ESD's
runArgs.inputESDFile = [
    '/mnt/data/nectar/NewMonitoringCode/2012Data/data12_8TeV.00201289.physics_Muons.recon.ESD.f436/data12_8TeV.00201289.physics_Muons.recon.ESD.f436._lb0445._SFO-5._0001.1'
]

# Basic string
#runArgs.AMITag = 'f414'

# Basic string for data
runArgs.beamType = 'collisions'