Exemplo n.º 1
0
# - General Pool converters
include("AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py")
# - Pool input (Change this to use a different file)
svcMgr.EventSelector.InputCollections = ["Tile_MyOutputFile-Dig.root"]

#--- GeoModel stuff -------------------------------------------
from AthenaCommon.GlobalFlags import globalflags
globalflags.DataSource.set_Value_and_Lock('geant4')
globalflags.DetGeo.set_Value_and_Lock('ctbh8')

from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
if TileBarrelOnly:
    GeoModelSvc.TileVersionOverride = "TileTB-3B-00"
else:
    GeoModelSvc.TileVersionOverride = "TileTB-2B2EB-00"

#--- Tile Conditions ------------------------------------------
include("TileConditions/TileTBConditions_jobOptions.py")

# Create various ntuples with hits or rawChannels amplitudes
# inside CBNTAA or in standalone ntuples
# CBNTAA is switched off by default
# Hit energy is the energy which comes from Geant4 without sampling correction
# and RawChannel amplitude is normally in pCb
# check carefully which pCb/GeV factor is applied in digitization (1.05 or 1.0)

if not 'doCBNT' in dir():
    doCBNT = False
Exemplo n.º 2
0
#--- AthenaCommon flags ---------------------------------------
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
#athenaCommonFlags.PoolEvgenInput=['rfio:/castor/cern.ch/atlas/project/dc2/.../dc2.002930.mu_pt30_eta320.evgen805._0001.pool.root']
#athenaCommonFlags.PoolHitsOutput='atlas_MyOutputFile.pool.root'
athenaCommonFlags.PoolHitsOutput.set_Off()
athenaCommonFlags.EvtMax = 1000

#--- Simulation flags -----------------------------------------
from G4AtlasApps.SimFlags import SimFlags
# Look into SimFlags.SimLayout for other possible values
SimFlags.SimLayout = 'ATLAS-CSC-02-00-00'  # specific value
#SimFlags.SimLayout.set_On()             # uses the default value

from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
GeoModelSvc.TileVersionOverride = 'TileCal-CSC-03'
#log.info( "GeoModelSvc.TileVersionOverride = %s" % (GeoModelSvc.TileVersionOverride) )

#  sets the EtaPhi, VertexSpread and VertexRange checks on
SimFlags.EventFilter.set_On()
#  sets LArParametrization
#SimFlags.LArParameterization=2
#  No magnetic field
SimFlags.MagneticField.set_Off()

# - uses single particle generator
SimFlags.KinematicsMode = 'SingleParticle'
SimFlags.ParticlePDG = '999'
#   set energy constant to 10 GeV
#SimFlags.Energy=100
Exemplo n.º 3
0
    ServiceMgr += GeoModelSvc
    theApp.CreateSvc += ["GeoModelSvc"]

    #load all identifiers
    #include( "TileIdCnv/TileIdCnv_jobOptions.py" )
    #include( "CaloIdCnv/CaloIdCnv_joboptions.py" )

    from TileGeoModel.TileGeoModelConf import TileDetectorTool
    GeoModelSvc.DetectorTools += [TileDetectorTool()]

    from AthenaCommon.GlobalFlags import jobproperties
    detDescrVersion = jobproperties.Global.DetDescrVersion()

    # Setup geometry version
    GeoModelSvc.AtlasVersion = detDescrVersion
    # for TileCal all versions are identical
    # so let's load just the DC3 default
    GeoModelSvc.TileVersionOverride = "TileCal-DC3-00"

    if (detDescrVersion.startswith("ctb") or detDescrVersion.startswith("CTB")
            or detDescrVersion.startswith("ATLAS-CTB")):
        GeoModelSvc.TileDetectorTool.TestBeam = TRUE
        GeoModelSvc.AtlasVersion = "ATLAS-CTB-00"
        GeoModelSvc.TileVersionOverride = "TileTB-3B3EB-00"

###############################################################
#
# End of job options file
#
###############################################################
Exemplo n.º 4
0
jobproperties.Global.DetDescrVersion = DetDescrVersion
logTileDig.info('DetDescrVersion = %s' %
                (jobproperties.Global.DetDescrVersion()))

from AtlasGeoModel import SetGeometryVersion

jobproperties.Global.DetGeo = DetGeo
from AtlasGeoModel import GeoModelInit
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc

GeoModelSvc = GeoModelSvc()
GeoModelSvc.IgnoreTagDifference = True
logTileDig.info('GeoModelSvc.AtlasVersion = %s' % (GeoModelSvc.AtlasVersion))
if 'TileVersionOverride' in dir():
    GeoModelSvc.TileVersionOverride = TileVersionOverride
    logTileDig.info('GeoModelSvc.TileVersionOverride = %s' %
                    (GeoModelSvc.TileVersionOverride))

#--------------------------------------------------------------
# Digitiziation and Pileup configuration
#--------------------------------------------------------------
from Digitization.DigitizationFlags import jobproperties
# jobproperties.Digitization.doInDetNoise=True
jobproperties.Digitization.doCaloNoise = doCaloNoise
# This tag must be specified for dowstream jobs
jobproperties.Digitization.IOVDbGlobalTag = ConddbTag
if not TileTB:
    jobproperties.Digitization.simRunNumber = RunNumber
    jobproperties.Digitization.dataRunNumber = RunNumber
# jobproperties.Digitization.doMuonNoise=True
Exemplo n.º 5
0
#from IOVDbSvc.CondDB import conddb
#conddb.setGlobalTag(ConddbTag);
#log.info( "ConddbTag = %s" % (ConddbTag) )

from AthenaCommon.GlobalFlags import jobproperties
jobproperties.Global.DetDescrVersion = DetDescrVersion
log.info("DetDescrVersion = %s" % (jobproperties.Global.DetDescrVersion()))
TileCablingType = 4

from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
# GeoModelSvc.IgnoreTagDifference = True
log.info("GeoModelSvc.AtlasVersion = %s" % (GeoModelSvc.AtlasVersion))
GeoModelSvc.TileVersionOverride = "TileCal-GEO-08"
log.info("GeoModelSvc.TileVersionOverride = %s" %
         (GeoModelSvc.TileVersionOverride))

GeoModelSvc.DetectorTools["TileDetectorTool"].GeometryConfig = "FULL"
GeoModelSvc.DetectorTools["TileDetectorTool"].OutputLevel = 1

#--------------------------------------------------------------
# Digitiziation and Pileup configuration
#--------------------------------------------------------------
from Digitization.DigitizationFlags import jobproperties
# jobproperties.Digitization.doInDetNoise=True
jobproperties.Digitization.doCaloNoise = True
# This tag must be specified for dowstream jobs
jobproperties.Digitization.IOVDbGlobalTag = ConddbTag
# jobproperties.Digitization.doMuonNoise=True