Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
eb44e598
Commit
eb44e598
authored
8 years ago
by
Edward Moyse
Browse files
Options
Downloads
Patches
Plain Diff
Add new file for MT
Former-commit-id:
1d5e0dd7
parent
b00f69a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRec_myTopOptions_MT.py
+128
-0
128 additions, 0 deletions
...struction/MuonRecExample/share/MuonRec_myTopOptions_MT.py
with
128 additions
and
0 deletions
MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRec_myTopOptions_MT.py
0 → 100644
+
128
−
0
View file @
eb44e598
from
MuonRecExample.MuonRecFlags
import
muonRecFlags
from
RecExConfig.RecFlags
import
rec
from
RecExConfig.RecAlgsFlags
import
recAlgs
from
AthenaCommon.AthenaCommonFlags
import
athenaCommonFlags
## flag to set number of events to be processed
EvtMax
=
-
1
## flag for running in mig5
doMig5
=
False
# in Standalone mode, don't allow any configuration errors
athenaCommonFlags
.
AllowIgnoreConfigError
=
False
# configure flags so that only Muon Standalone reco is run
import
MuonRecExample.MuonRecStandaloneOnlySetup
#import MuonCombinedRecExample.MuonCombinedRecOnlySetup
from
MuonCombinedRecExample.MuonCombinedRecFlags
import
muonCombinedRecFlags
from
MuonRecExample
import
MuonRecUtils
from
MuonRecExample.MuonRecUtils
import
assertCastorStager
,
hasJobPropertyBeenSet
#--------------------------------------------------------------------------------
# Input
#--------------------------------------------------------------------------------
athenaCommonFlags
.
FilesInput
=
[
"
/afs/cern.ch/atlas/project/rig/referencefiles/RTTinputFiles/MC15_13TeV/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r6699_10evt.pool.root
"
]
if
not
hasJobPropertyBeenSet
(
athenaCommonFlags
.
FilesInput
):
athenaCommonFlags
.
FilesInput
=
MuonRecUtils
.
FileList
.
readDirectory
(
"
root://castoratlas//castor/cern.ch/atlas/atlascerngroupdisk/det-muon/ReferenceDatasets/Digitization/Zmumu_15616/
"
)
# assertCastorStager("castoratlast3","atlascerngroupdisk")
# athenaCommonFlags.FilesInput = MuonRecUtils.FileList.readDirectory("rfio:/castor/cern.ch/atlas/atlascerngroupdisk/det-muon/ReferenceDatasets/Digitization/Zmumu_15616/")
#--------------------------------------------------------------------------------
# Output
#--------------------------------------------------------------------------------
#rec.doPerfMon = True
#rec.doDetailedAuditor = True
rec
.
doWriteESD
=
True
muonRecFlags
.
doCalibNtuple
=
False
# write calibration ntuple?
#muonRecFlags.calibNtupleSegments = False # write segments to ntuple?
#muonRecFlags.calibNtupleTracks = False # write tracks to ntuple?
#muonRecFlags.calibNtupleTrigger = False # write trigger info to ntuple?
###
#rec.doNameAuditor = True
#muonRecFlags.doVP1 = True # Decide whether to run Virtual Point1 graphical event display
rec
.
doTruth
=
True
#rec.doTrigger = True
# Read geometry alignment corrections from DB
#muonRecFlags.useAlignmentCorrections = True
rec
.
doTrigger
=
False
#recFlags.doTruth.set_Value_and_Lock(False)
muonRecFlags
.
doStandalone
.
set_Value_and_Lock
(
True
)
# Read geometry alignment corrections from DB
#muonRecFlags.useAlignmentCorrections = True
muonRecFlags
.
doTrackPerformance
=
True
muonRecFlags
.
TrackPerfSummaryLevel
=
2
muonRecFlags
.
TrackPerfDebugLevel
=
5
muonRecFlags
.
doCSCs
=
True
muonRecFlags
.
doNSWNewThirdChain
=
False
# flags to tweak standalone muon reconstruction
if
doMig5
:
muonStandaloneFlags
.
doSegmentsOnly
=
False
muonStandaloneFlags
.
patternsOnly
=
False
muonStandaloneFlags
.
createTrackParticles
=
False
#muonStandaloneFlags.printSummary = True
muonCombinedRecFlags
.
doTrackPerformance
=
True
muonCombinedRecFlags
.
doMuGirl
=
True
muonCombinedRecFlags
.
printSummary
=
True
##### no more flags after this line #####
try
:
include
(
"
MuonRecExample/MuonRec_topOptions.py
"
)
from
AthenaCommon.AppMgr
import
ServiceMgr
as
svcMgr
from
GaudiHive.GaudiHiveConf
import
ForwardSchedulerSvc
svcMgr
+=
ForwardSchedulerSvc
()
svcMgr
.
ForwardSchedulerSvc
.
CheckDependencies
=
True
from
SGComps.SGCompsConf
import
SGInputLoader
topSequence
+=
SGInputLoader
(
OutputLevel
=
INFO
,
ShowEventDump
=
False
)
topSequence
.
SGInputLoader
.
Load
=
[
(
'
MdtCsmContainer
'
,
'
MDTCSM
'
),
(
'
RpcPadContainer
'
,
'
RPCPAD
'
),
(
'
TgcRdoContainer
'
,
'
TGCRDO
'
),
(
'
CscRawDataContainer
'
,
'
CSCRDO
'
)]
###### put any user finetuning after this line #####
#from MuonTestEDM.MuonTestEDMConf import MuonTestEDM
#MyEDMTester = MuonTestEDM(DoDumpPRDs=True, DoDumpTracks=False, DoDumpRDOs=True, DoDumpSegments=False)
#topSequence += MyEDMTester
#if not 'DumpFileName' in dir():
# DumpFileName="ReadBS"
#MyEDMTester.RdoDumpFileName = DumpFileName+".rdo.log"
#MyEDMTester.PrdDumpFileName = DumpFileName+".prd.log"
#MyEDMTester.TrackDumpFileName = DumpFileName+".track.log"
#MyEDMTester.TrackParticleDumpFileName = DumpFileName+".trackParticle.log"
#MyEDMTester.SegmentDumpFileName= DumpFileName+".segment.log"
#MyEDMTester.SummaryDumpFileName= DumpFileName+".summary.log"
###### put any user finetuning before this line #####
##### DO NOT ADD ANYTHING AFTER THIS LINE #####
except
:
# print the stacktrace (saving could fail, and would then obscure the real problem)
import
traceback
print
traceback
.
format_exc
().
rstrip
()
# always write config so far for debugging
from
AthenaCommon.ConfigurationShelve
import
saveToAscii
saveToAscii
(
"
config.txt
"
)
# add DetFlags
from
MuonRecExample.MuonRecUtils
import
dumpDetFlags
dumpDetFlags
(
"
config.txt
"
)
# but still exit with error
import
sys
sys
.
exit
(
10
)
else
:
# and write config to include user changes after topOptions
from
AthenaCommon.ConfigurationShelve
import
saveToAscii
saveToAscii
(
"
config.txt
"
)
# add DetFlags
from
MuonRecExample.MuonRecUtils
import
dumpDetFlags
dumpDetFlags
(
"
config.txt
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment