Exemplo n.º 1
0
# I6 = 0/1 zerofy or not the t rotation
GeneralControlAlines = 111111

# Set output level threshold
#(0=NIL 1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
MessageSvc.OutputLevel = INFO
MessageSvc.defaultLimit = 99999999
MessageSvc.Format = "% F%50W%S%7W%R%T %0W%M"
#MessageSvc.Format = "% F%30W%S%7W%R%T %0W%M"
#MessageSvc.useColors = True

#***************************************************** HERE override MuonSpectrometer tag
from AtlasGeoModel import SetGeometryVersion
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.07.00"

print GeoModelSvc

#***************************************************** HERE define alignment data from cond. tags
if useAlign:
    from IOVDbSvc.CondDB import conddb
    conddb.dbname = "COMP200"
    conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/MDT/BARREL',
                                '/MUONALIGN/MDT/BARREL')
    conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/MDT/ENDCAP/SIDEA',
                                '/MUONALIGN/MDT/ENDCAP/SIDEA')
    conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/MDT/ENDCAP/SIDEC',
                                '/MUONALIGN/MDT/ENDCAP/SIDEC')
    conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/TGC/SIDEA',
                                '/MUONALIGN/TGC/SIDEA')
Exemplo n.º 2
0
    DetFlags.Calo_setOn()
    DetFlags.Muon_setOn()
    DetFlags.Truth_setOn()
    from TrkDetDescrSvc.TrkDetDescrJobProperties import TrkDetFlags
    TrkDetFlags.SLHC_Geometry = True
    TrkDetFlags.MagneticFieldCallbackEnforced = False
    TrkDetFlags.TRT_BuildStrawLayers = False
    TrkDetFlags.MaterialSource = 'None'

if vp1Muon and vp1MuonLayout != "":
    print(
        "*** DumpGeo NOTE *** You specified custom vp1MuonLayout, using %s as muon geometry"
        % vp1MuonLayout)
    from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
    GeoModelSvc = GeoModelSvc()
    GeoModelSvc.MuonVersionOverride = vp1MuonLayout

# --- GeoModel
from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit

from AthenaCommon.AppMgr import ServiceMgr as svcMgr

if vp1GeoModelStats:
    print "printing GeoModel stats to file (Svc.StatisticsToFile=TRUE)..."
    svcMgr.GeoModelSvc.StatisticsToFile = True

if vp1Cavern:
    print "vp1.py - Initializing the visualization of the Cavern Infrastructure..."
    from CavernInfraGeoModel.CavernInfraGeoModelConf import CavernInfraDetectorTool
    svcMgr.GeoModelSvc.DetectorTools += [CavernInfraDetectorTool()]
Exemplo n.º 3
0
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration

from AtlasGeoModel import GeoModelInit

from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool
GeoModelSvc.DetectorTools += [ MuonDetectorTool(HasSTgc=False, HasMM=False) ]
GeoModelSvc.SupportedGeometry=21
GeoModelSvc.AtlasVersion='ATLAS-R2-2016-01-00-01'
try:
    if database_layout: GeoModelSvc.MuonVersionOverride=database_layout
except NameError:
    pass
theApp.CreateSvc += ["GeoModelSvc"]
ServiceMgr += GeoModelSvc
Exemplo n.º 4
0
muonRecFlags.doCSCs = False

# Switch on the alignment corrections
muonRecFlags.useAlignmentCorrections = True
muonRecFlags.doCalib = False

recFlags.doTruth = False

#rec.doCBNT = True
recFlags.doESD.set_Value_and_Lock(False)
recFlags.doWriteESD.set_Value_and_Lock(False)
recFlags.Commissioning = True

from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.03.02.Initial.Light.BML.S13.Patch"

# the following two lines are needed to remove annoying file ESD.pool.root
include("RecExCommission/RecExCommissionFlags_jobOptions.py")
ATLASCosmicFlags.doFilteredESD = False

recFlags.lock_JobProperties()
muonRecFlags.lock_JobProperties()

# The main jobOption file
include("RecExCommission/RecExCommission.py")
include("RecExCommon/RecExCommon_topOptions.py")

# Tune RPC clusterization

CfgMgr.RpcClusterBuilderPRD.ClusterTimeSpread = 10000
print "in NtupleFragment"

from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
#GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.08.01"
GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.08.01-BIS78v2"

from AthenaCommon.AlgSequence import AlgSequence

from AthenaCommon import CfgGetter
from AthenaCommon.CfgGetter import getPublicTool, getPrivateTool, getService, getAlgorithm
RPC_DigitizationTool = getPublicTool("RpcDigitizationTool")
#RPC_DigitizationTool.OutputLevel = DEBUG
RPC_DigitizationTool.Force_BOG_BOF_DoubletR2_OFF = False
RPC_DigitizationTool.ValidationSetup = 1
RPC_DigitizationTool.turnON_efficiency = False  # gaps and panels always efficient
RPC_DigitizationTool.Efficiency_fromCOOL = False  # irrelevant since the above
RPC_DigitizationTool.turnON_clustersize = True  # defauls CS
RPC_DigitizationTool.ClusterSize_fromCOOL = False  # irrelevant since the above
RPC_DigitizationTool.KillDeadStrips = False
RPC_DigitizationTool.IgnoreRunDependentConfig = True

from AthenaCommon.AppMgr import ServiceMgr
import MuonRPC_Cabling.MuonRPC_CablingConfig

#######################
#  CHOICE OF CABLING  #
#######################
## CABLING FROM FILES
#ServiceMgr.MuonRPC_CablingSvc.RPCMapfromCool=False
#ServiceMgr.MuonRPC_CablingSvc.ConfFileName="LVL1confAtlasRUN2_ver104.data" # default is "ConfFileName.txt"