readoutName=hcalBarrelReadoutName,
    OutputLevel=INFO)
HCalExtBcells = CellPositionsHCalBarrelNoSegTool(
    "CellPositionsHCalExtBarrel",
    readoutName=hcalExtBarrelReadoutName,
    OutputLevel=INFO)
HECcells = CellPositionsCaloDiscsTool("CellPositionsHEC",
                                      readoutName=hcalEndcapReadoutName,
                                      OutputLevel=INFO)
HCalFwdcells = CellPositionsCaloDiscsTool("CellPositionsHCalFwd",
                                          readoutName=hcalFwdReadoutName,
                                          OutputLevel=INFO)

#Create topo clusters
from Configurables import CreateEmptyCaloCellsCollection
createemptycells = CreateEmptyCaloCellsCollection("CreateEmptyCaloCells")
createemptycells.cells.Path = "emptyCaloCells"

from Configurables import CaloTopoClusterInputTool, CaloTopoCluster, TopoCaloNeighbours, TopoCaloNoisyCells
createTopoInput = CaloTopoClusterInputTool(
    "CreateTopoInput",
    ecalBarrelReadoutName=ecalBarrelReadoutName,
    ecalEndcapReadoutName="",
    ecalFwdReadoutName="",
    hcalBarrelReadoutName=hcalBarrelReadoutName,
    hcalExtBarrelReadoutName="",
    hcalEndcapReadoutName="",
    hcalFwdReadoutName="",
    OutputLevel=DEBUG)
createTopoInput.ecalBarrelCells.Path = "ECalBarrelCells"
createTopoInput.ecalEndcapCells.Path = "emptyCaloCells"
Example #2
0
                                  )

from Configurables import CreateCaloCells
createcells = CreateCaloCells("CreateCaloCells",
                              geometryTool = ecalgeo,
                              doCellCalibration = True,
                              calibTool = calibcells,
                              addCellNoise = True, filterCellNoise = False,
                              noiseTool = noise,
                              OutputLevel=DEBUG,
                              )
createcells.hits.Path="mergedECalHits"
createcells.cells.Path="ecalBarrelCells"

from Configurables import CreateEmptyCaloCellsCollection
createemptycells = CreateEmptyCaloCellsCollection("CreateEmptyCaloCells")
createemptycells.cells.Path = "emptyCaloCells"

#Create calo clusters
from Configurables import CreateCaloClustersSlidingWindow, CaloTowerTool
from GaudiKernel.PhysicalConstants import pi
towers = CaloTowerTool("towers",
                               deltaEtaTower = 0.01, deltaPhiTower = 2*pi/629.,
                               ecalBarrelReadoutName = ecalReadoutName,
                               ecalEndcapReadoutName = "",
                               ecalFwdReadoutName = "",
                               hcalBarrelReadoutName = "",
                               hcalExtBarrelReadoutName = "",
                               hcalEndcapReadoutName = "",
                               hcalFwdReadoutName = "",
                               )
                                activeFieldName = hcalIdentifierName,
                                readoutName = hcalBarrelReadoutName,
                                fieldNames = hcalFieldNames,
                                fieldValues = hcalFieldValues,
                                OutputLevel = INFO)

createHcalBarrelCells =CreateCaloCells("CreateHCalBarrelCells", geometryTool = hcalgeo,
                                       doCellCalibration = False, addCellNoise = True,
                                       filterCellNoise = False, noiseTool = noiseHcal,
                                       OutputLevel = INFO) 
createHcalBarrelCells.hits.Path ="HCalBarrelCells" 
createHcalBarrelCells.cells.Path ="HCalBarrelCellsNoise"

#Create topo clusters
from Configurables import CreateEmptyCaloCellsCollection 
createemptycells = CreateEmptyCaloCellsCollection("CreateEmptyCaloCells") 
createemptycells.cells.Path = "emptyCaloCells"

from Configurables import CaloTopoClusterInputTool,CaloTopoCluster, TopoCaloNeighbours,TopoCaloNoisyCells 
createTopoInput =CaloTopoClusterInputTool("CreateTopoInput",
                                          ecalBarrelReadoutName = ecalBarrelReadoutName,
                                          ecalEndcapReadoutName = "",
                                          ecalFwdReadoutName = "",
                                          hcalBarrelReadoutName = hcalBarrelReadoutName,
                                          hcalExtBarrelReadoutName = "",
                                          hcalEndcapReadoutName = "",
                                          hcalFwdReadoutName = "",
                                          OutputLevel = DEBUG) 
createTopoInput.ecalBarrelCells.Path ="ECalBarrelCellsNoise" 
createTopoInput.ecalEndcapCells.Path ="emptyCaloCells" 
createTopoInput.ecalFwdCells.Path ="emptyCaloCells"