Пример #1
0
  
  # set the path variables consistently
from InDetSLHC_Example.SLHC_Setup import SLHC_Setup
SLHC_Setup = SLHC_Setup()

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

from TrkDetDescrTools.TrkDetDescrToolsConf import Trk__MaterialMapper
TheMaterialMapper = Trk__MaterialMapper(name='MaterialMapper')
TheMaterialMapper.OutputLevel = INFO
ToolSvc += TheMaterialMapper


# set up the Geometry Builder test
from TrkDetDescrAlgs.TrkDetDescrAlgsConf import Trk__MaterialMapping
MaterialMapping = Trk__MaterialMapping(name ='MaterialMapping')
MaterialMapping.TrackingGeometrySvc      = TrackingGeometrySvc
MaterialMapping.MaterialMapper           = TheMaterialMapper
#MaterialMapping.MaterialInspector        = TheLayerMaterialInspector
MaterialMapping.MaximumMappingEvents     = 50000
MaterialMapping.OutputLevel              = INFO

############ Configure the output #####################################

if doWriteToCool:
  MaterialStoreGateKey  = TrkDetFlags.MaterialStoreGateKey.get_Value()
  MaterialTag           = TrkDetFlags.MaterialTagBase.get_Value()+'_v'+str(TrkDetFlags.MaterialVersion.get_Value())+'_'+DetVerName

# assign the material
#MaterialMapping.OuputLayerMaterialSetName = MaterialStoreGateKey
MaterialMapping.OutputLayerMaterialSetName = TrkDetFlags.MaterialStoreGateKey.get_Value()
Пример #2
0
# FullCompoundLayerMaterialAnalyser.LayerMaterialName         = FullCompoundLayerMaterialCreator.LayerMaterialName
# FullCompoundLayerMaterialAnalyser.ValidationTreeDescription = 'Output of the FullCompoundLayerMaterialAnalyser'
# FullCompoundLayerMaterialAnalyser.ValidationTreeFolder      = '/val/FullCompoundLayerMaterialAnalyser'
# ToolSvc += FullCompoundLayerMaterialAnalyser

# create the lists of MaterialCreators & Analysers
LayerMaterialCreators = [
    BinnedLayerMaterialCreator
]  #, CompressedLayerMaterialCreator, CompoundLayerMaterialCreator, FullCompoundLayerMaterialCreator ]
LayerMaterialAnalysers = [
    BinnedLayerMaterialAnalyser
]  #, CompressedLayerMaterialAnalyser, CompoundLayerMaterialAnalyser, FullCompoundLayerMaterialAnalyser ]

# set up the Material Mapping
from TrkDetDescrAlgs.TrkDetDescrAlgsConf import Trk__MaterialMapping
MaterialMapping = Trk__MaterialMapping(name='MaterialMapping')
MaterialMapping.TrackingGeometrySvc = AtlasTrackingGeometrySvc
MaterialMapping.MappingVolumeName = 'InDet::Containers::InnerDetector'
#MaterialMapping.MappingVolumeName            = 'InDet::BeamPipe'
MaterialMapping.MaterialMapper = MaterialMapper
MaterialMapping.EtaCutOff = 6.
MaterialMapping.OutputLevel = DEBUG
MaterialMapping.LayerMaterialRecordAnalyser = LayerMaterialRecordAnalyser
MaterialMapping.LayerMaterialCreators = LayerMaterialCreators
MaterialMapping.LayerMaterialAnalysers = LayerMaterialAnalysers
# screen output level [ Default : 0 |  0, 1, 2 )
MaterialMapping.MaterialScreenOutputLevel = 0
topSequence += MaterialMapping

#################################################################
theApp.Dlls += ['RootHistCnv']