Exemple #1
0
L1CaloFolderList = []
L1CaloFolderList += ["/TRIGGER/L1Calo/Configuration/PprChanDefaults"]
L1CaloFolderList += ["/TRIGGER/L1Calo/Calibration/PprChanCalib"]
L1CaloFolderList += ["/TRIGGER/L1Calo/Calibration/PpmDeadChannels"]
for l1calofolder in L1CaloFolderList:
    if not conddb.folderRequested(l1calofolder):
        conddb.addFolder("", L1CaloDbConnection + l1calofolder + L1CaloDbTag)
svcMgr.IOVDbSvc.overrideTags += [
    "<prefix>/CALO/Identifier/CaloTTOnOffIdMapAtlas</prefix> <tag>CALOIdentifierCaloTTOnOffIdMapAtlas-0002</tag>"
]

# set up tools
from TrigT1CaloCondSvc.TrigT1CaloCondSvcConf import L1CaloCondSvc
ServiceMgr += L1CaloCondSvc()
from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1TriggerTowerTool
ToolSvc += LVL1__L1TriggerTowerTool()
from TrigT1CaloCalibTools.TrigT1CaloCalibToolsConf import L1CaloLArTowerEnergy
ToolSvc += L1CaloLArTowerEnergy()

# configure actual ramp maker algorithm
from TrigT1CaloCalibUtils.TrigT1CaloCalibUtilsConf import L1CaloRampMaker
topSequence += L1CaloRampMaker()
topSequence.L1CaloRampMaker.L1TriggerTowerTool = LVL1__L1TriggerTowerTool()
topSequence.L1CaloRampMaker.DoTile = doTile
topSequence.L1CaloRampMaker.DoLAr = doLAr

# configure writing of pool files
from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
outputConditionsAlg = OutputConditionsAlg("outputConditionsAlg",
                                          "L1CaloRampData.pool.root")
outputConditionsAlg.ObjectList = ["L1CaloRampDataContainer"]
Exemple #2
0
            PathInRootFile = "L1Calo/PPM",
            ErrorPathInRootFile = "L1Calo/PPM/Errors",
            #OutputLevel = DEBUG
            )
        #ToolSvc += L1PPrMonTool
        L1CaloMan2.AthenaMonTools += [ L1PPrMonTool ]

        if isData:
                
            from TrigT1CaloMonitoring.TrigT1CaloMonitoringConf import PPMSimBSMon
            PPMSimBSMonTool = PPMSimBSMon("PPMSimBSMonTool")
            #ToolSvc += PPMSimBSMonTool
            L1CaloMan3.AthenaMonTools += [ PPMSimBSMonTool ]
            #ToolSvc.PPMSimBSMonTool.OutputLevel = DEBUG
            from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1TriggerTowerTool
            L1TriggerTowerTool = LVL1__L1TriggerTowerTool("L1TriggerTowerTool")
            ToolSvc += L1TriggerTowerTool
            #ToolSvc.L1TriggerTowerTool.OutputLevel = DEBUG
            
            #--------------------------------- PPM Spare Channels----------------------------
            from TrigT1CaloMonitoring.TrigT1CaloMonitoringConf import PPrSpareMon
            L1PPrSpareMonTool = PPrSpareMon(
                name = "L1PPrSpareMonTool",
                BS_TriggerTowerContainer = "TriggerTowersSpare",
                ADCHitMap_Thresh = 40,
                PathInRootFile = "L1Calo/PPM/SpareChannels",
                ErrorPathInRootFile = "L1Calo/PPM/SpareChannels/Errors",
                #OutputLevel = DEBUG
                )
            #ToolSvc += L1PPrSpareMonTool
            L1CaloMan4.AthenaMonTools += [ L1PPrSpareMonTool ]
Exemple #3
0
triggerTowerMaker = TriggerTowerMaker_TTL1('TriggerTowerMaker')
job += [triggerTowerMaker]

job += LVL1__CPMTowerMaker('CPMTowerMaker')
job += LVL1__JetElementMaker('JetElementMaker')
job += LVL1__EmTauTrigger('EmTauTrigger')
job += LVL1__JetTrigger('JetTrigger')
job += LVL1__EnergyTrigger('EnergyTrigger')
job += LVL1__ROD('ROD')
job += LVL1__CPCMMMaker('CPCMMMaker')
job += LVL1__JEPCMMMaker('JEPCMMMaker')

from AthenaCommon.AppMgr import ToolSvc
from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1TriggerTowerTool

ToolSvc += LVL1__L1TriggerTowerTool('L1TriggerTowerTool')
ToolSvc.L1TriggerTowerTool.BaselineCorrection = False

# Dynamic Pedestal Correction
job.TriggerTowerMaker.BaselineCorrection = False
if job.TriggerTowerMaker.BaselineCorrection:
    ToolSvc.L1TriggerTowerTool.BaselineCorrection = True

    # obtain dynamic pedestals either from ROOT-File (only <mu>=60) or from Text-File
    useRootFile = True
    if useRootFile:
        if not hasattr(ToolSvc, 'L1DynamicPedestalProviderRoot'):
            from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1DynamicPedestalProviderRoot
            pedestalProvider = LVL1__L1DynamicPedestalProviderRoot(
                'L1DynamicPedestalProviderRoot',
                FirRefFile='l1calofir-mu60.root')
Exemple #4
0
from TrigT1CaloCalibUtils.TrigT1CaloCalibUtilsConf import L1CaloHVDummyContainers
theL1CaloHVDummyContainers = L1CaloHVDummyContainers("L1CaloHVDummyContainers")
topSequence += theL1CaloHVDummyContainers

# setup l1calo database
include('TrigT1CaloCalibConditions/L1CaloCalibConditions_jobOptions.py')
svcMgr.IOVDbSvc.overrideTags += [
    "<prefix>/CALO/Identifier/CaloTTOnOffIdMapAtlas</prefix> <tag>CALOIdentifierCaloTTOnOffIdMapAtlas-0002</tag>"
]
svcMgr.IOVDbSvc.overrideTags += [
    "<prefix>/LAR/Identifier/LArTTCellMapAtlas</prefix> <tag>LARIdentifierLArTTCellMapAtlas-HadFcalFix2</tag>"
]

# set up tools
from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1TriggerTowerTool
ToolSvc += LVL1__L1TriggerTowerTool("L1TriggerTowerTool")
from TrigT1CaloCalibTools.TrigT1CaloCalibToolsConf import LVL1__L1CaloLArTowerEnergy
ToolSvc += LVL1__L1CaloLArTowerEnergy("L1CaloLArTowerEnergy")
from TrigT1CaloCalibTools.TrigT1CaloCalibToolsConf import LVL1__L1CaloCells2TriggerTowers
ToolSvc += LVL1__L1CaloCells2TriggerTowers("L1CaloCells2TriggerTowers")
from TrigT1CaloCalibTools.TrigT1CaloCalibToolsConf import LVL1__L1CaloOfflineTriggerTowerTools
ToolSvc += LVL1__L1CaloOfflineTriggerTowerTools(
    "L1CaloOfflineTriggerTowerTools")

# configure actual db maker algorithm
from TrigT1CaloCalibUtils.TrigT1CaloCalibUtilsConf import L1CaloHVCorrectionsForDB
topSequence += L1CaloHVCorrectionsForDB()
#from LArRecUtils.LArHVCorrToolDefault import LArHVCorrToolDefault
#theLArHVCorrTool = LArHVCorrToolDefault()
#ToolSvc += theLArHVCorrTool
topSequence.L1CaloHVCorrectionsForDB.LArHVCorrTool = theLArHVCorrTool