Skip to content
Snippets Groups Projects
Commit 3b95f359 authored by Patrick Scholer's avatar Patrick Scholer Committed by John Derek Chapman
Browse files

Update of the job options for the NSWPRDValAlg

parent 5cee6522
15 merge requests!46457Draft: Adding the tools to run over data,!46454Draft: Adding the tools to be able to run over data,!44869Draft: Update to candidate store,!4217921.9-first_steps-InDetTrackingGeometryXML,!39162Draft: Insert BCM' support,!38765Bis78 cabling,!36893Fix size of RPC active region in BIS78 and strip material,!3645821.9: Improving material map description (ATLITKSW-127),!36293WIP pixel updates,!34993KF-input adding jXERHO to the AOD outputs,!34864LH rings in front ot HR rigs,!34763Fix L1_4jJ15.0ETA25 item definition (ATR-21261),!33996WIP: Correct MM zpositions,!3291021.3 salva s0,!31887Merge 21.3.19 into 21.9
#job options to activate the dump of the NSWPRDVal nTuple
#This file can be used with Digi_tf by specifying --postinclude MuonPRDTest/NSWPRDValAlg.digi.py
#It dumps Truth, MuEntry and Hits, Digits, SDOs and RDOs for MM and sTGC
#-----------------------------------------------------------------------------
# Algorithms
#-----------------------------------------------------------------------------
from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()
from MuonPRDTest.MuonPRDTestConf import *
job+=NSWPRDValAlg('NSWPRDValAlg', OutputLevel = WARNING)
NSWPRDValAlg.OutputLevel = INFO
NSWPRDValAlg.doTruth = True
NSWPRDValAlg.doMuEntry = True
NSWPRDValAlg.doMMHit = True
NSWPRDValAlg.doMMDigit = True
NSWPRDValAlg.doMMRDO = True
NSWPRDValAlg.doMMPRD = False
NSWPRDValAlg.doMMFastDigit = False
NSWPRDValAlg.doSTGCHit = True
NSWPRDValAlg.doSTGCDigit = True
NSWPRDValAlg.doSTGCRDO = True
NSWPRDValAlg.doSTGCPRD = False
NSWPRDValAlg.doSTGCFastDigit = False
#-----------------------------------------------------------------------------
# save ROOT histograms and Tuple
#-----------------------------------------------------------------------------
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [ "NSWPRDValAlg DATAFILE='NSWPRDValAlg.digi.ntuple.root' OPT='RECREATE'" ]
#job options to activate the dump of the NSWPRDVal nTuple
#This file can be used with Reco_tf by specifying --postinclude MuonPRDTest/NSWPRDValAlg.reco.py
#It dumps Truth, MuEntry and Hits, Digits, SDOs, RDOs and PRDs for MM and sTGC
#It should only be used with Reco since the alg crashes in the absence of PRDs
#-----------------------------------------------------------------------------
# Algorithms
#-----------------------------------------------------------------------------
from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()
from MuonPRDTest.MuonPRDTestConf import *
job+=NSWPRDValAlg('NSWPRDValAlg', OutputLevel = DEBUG)
NSWPRDValAlg.OutputLevel = INFO
NSWPRDValAlg.doTruth = True
NSWPRDValAlg.doMuEntry = True
NSWPRDValAlg.doMMHit = True
NSWPRDValAlg.doMMDigit = True
NSWPRDValAlg.doMMRDO = True
NSWPRDValAlg.doMMPRD = True
NSWPRDValAlg.doMMFastDigit = False
NSWPRDValAlg.doSTGCHit = True
NSWPRDValAlg.doSTGCDigit = True
NSWPRDValAlg.doSTGCRDO = True
NSWPRDValAlg.doSTGCPRD = True
NSWPRDValAlg.doSTGCFastDigit = False
#-----------------------------------------------------------------------------
# save ROOT histograms and Tuple
#-----------------------------------------------------------------------------
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [ "NSWPRDValAlg DATAFILE='NSWPRDValAlg.reco.ntuple.root' OPT='RECREATE'" ]
#-----------------------------------------------------------------------------
# Athena imports
#-----------------------------------------------------------------------------
from AthenaCommon.Constants import *
from AthenaCommon.AppMgr import theApp
from AthenaCommon.AppMgr import ServiceMgr
import AthenaPoolCnvSvc.ReadAthenaPool
from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()
#--------------------------------------------------------------
# Global flags. Like eg the DD version:
#--------------------------------------------------------------
from AthenaCommon.GlobalFlags import globalflags
globalflags.DetDescrVersion = 'ATLAS-GEO-20-00-01'
# USE same version as jobOptions.NSW_Sim.py
globalflags.ConditionsTag = 'OFLCOND-SDR-BS7T-05-14'
#--------------------------------------------------------------------
# DetFlags. Use to turn on/off individual subdetector or LVL1 trigger
#--------------------------------------------------------------------
from AthenaCommon.DetFlags import DetFlags
DetFlags.ID_setOff()
DetFlags.Calo_setOff()
DetFlags.Muon_setOn()
DetFlags.MDT_setOn()
DetFlags.CSC_setOn()
DetFlags.TGC_setOn()
DetFlags.RPC_setOn()
DetFlags.sTGC_setOn()
DetFlags.Micromegas_setOn()
DetFlags.digitize.MDT_setOn()
DetFlags.digitize.TGC_setOn()
DetFlags.digitize.RPC_setOn()
DetFlags.digitize.CSC_setOn()
DetFlags.digitize.Micromegas_setOff()
DetFlags.digitize.sTGC_setOff()
#DetFlags.Lucid_setOff()
DetFlags.Truth_setOn()
#DetFlags.LVL1_setOff()
include('MuonGeoModelTest/NSWGeoSetup.py')
#-----------------------------------------------------------------------------
# Message Service
#-----------------------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
ServiceMgr.MessageSvc.OutputLevel = INFO
ServiceMgr.MessageSvc.defaultLimit = 9999999
#-----------------------------------------------------------------------------
# Input Datasets
#-----------------------------------------------------------------------------
ServiceMgr.EventSelector.InputCollections = [
'atlasG4.hits.pool.root'
]
theApp.EvtMax = -1 # -1 means all events
#-----------------------------------------------------------------------------
# Algorithms
#-----------------------------------------------------------------------------
#if DetFlags.Micromegas_on() and DetFlags.digitize.Micromegas_on():
from MuonFastDigitization.MuonFastDigitizationConf import MM_FastDigitizer
job += MM_FastDigitizer("MM_FastDigitizer")
#if DetFlags.sTGC_on() and DetFlags.digitize.sTGC_on():
from MuonFastDigitization.MuonFastDigitizationConf import sTgcFastDigitizer
job += sTgcFastDigitizer("sTgcFastDigitizer")
from MuonPRDTest.MuonPRDTestConf import *
job += NSWPRDValAlg('NSWPRDValAlg', OutputLevel = WARNING)
NSWPRDValAlg.OutputLevel = DEBUG
NSWPRDValAlg.doTruth = True
NSWPRDValAlg.doMMDigit = False
#NSWPRDValAlg.doMM = False
#-----------------------------------------------------------------------------
# save ROOT histograms and Tuple
#-----------------------------------------------------------------------------
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [ "NSWPRDValAlg DATAFILE='NSWPRDValAlg_allDet.root' OPT='RECREATE'" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment