"CreateECalBarrelCells", geometryTool=barrelGeometry, doCellCalibration=False, # already calibrated addCellNoise=True, filterCellNoise=False, noiseTool=noiseBarrel, hits=ecalBarrelCellsName, cells=ecalBarrelCellsName + "Noise", OutputLevel=DEBUG) noiseHcal = NoiseCaloCellsFlatTool("HCalNoise", cellNoise=0.009) barrelHcalGeometry = LayerPhiEtaCaloTool("HcalBarrelGeo", readoutName=hcalBarrelReadoutName, activeVolumeName="layerVolume", activeFieldName="layer", fieldNames=["system"], fieldValues=[8], activeVolumesNumber=10) createHcalBarrelCells = CreateCaloCells( "CreateHCalBarrelCells", geometryTool=barrelHcalGeometry, doCellCalibration=False, # already calibrated addCellNoise=True, filterCellNoise=False, noiseTool=noiseHcal, hits=hcalBarrelCellsName, cells=hcalBarrelCellsName + "Noise", OutputLevel=DEBUG) # add noise, create all existing cells in detector
# geometry tool from Configurables import TubeLayerPhiEtaCaloTool, LayerPhiEtaCaloTool, NestedVolumesCaloTool ecalBarrelGeometry = TubeLayerPhiEtaCaloTool("EcalBarrelGeo", readoutName = ecalBarrelReadoutNamePhiEta, activeVolumeName = "LAr_sensitive", activeFieldName = "layer", fieldNames = ["system"], fieldValues = [5], activeVolumesNumber = 8) # Geometry for layer-eta-phi segmentation hcalBarrelGeometry = LayerPhiEtaCaloTool("hcalBarrelGeometry", readoutName = "BarHCal_Readout_phieta", activeVolumeName = "layerVolume", activeFieldName = "layer", fieldNames = ["system"], fieldValues = [8], activeVolumesNumber = 10, activeVolumesEta = [1.2524, 1.2234, 1.1956, 1.15609, 1.1189, 1.08397, 1.0509, 0.9999, 0.9534, 0.91072] ) # No segmentation, geometry with nested volumes hcalgeo = NestedVolumesCaloTool("hcalgeo", activeVolumeName = hcalVolumeName, activeFieldName = hcalIdentifierName, readoutName = "HCalBarrelReadout", fieldNames = hcalFieldNames, fieldValues = hcalFieldValues) from Configurables import CreateEmptyCaloCellsCollection createemptycells = CreateEmptyCaloCellsCollection("CreateEmptyCaloCells")