Skip to content
Snippets Groups Projects
Commit c8efae52 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TrigOnlineMonitor: cmake and package cleanup

Remove unused link dependencies, move headers to src directory and
delete obsolete plotting script.
parent dac03433
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: TrigOnlineMonitor
################################################################################
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( TrigOnlineMonitor )
# External dependencies:
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
find_package( tdaq-common )
find_package( Boost )
find_package( ROOT COMPONENTS Core Hist )
find_package( tdaq-common COMPONENTS eformat )
# Component(s) in the package:
atlas_add_component( TrigOnlineMonitor
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${TDAQ-COMMON_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ${TDAQ-COMMON_LIBRARIES} AthenaBaseComps ByteStreamData ByteStreamData_test GaudiKernel AthenaInterprocess AthenaKernel ByteStreamCnvSvcBaseLib EventInfo MagFieldInterfaces TrigConfL1Data TrigSteeringEvent TrigMonitorBaseLib TrigSteeringLib L1TopoConfig L1TopoRDO TrigT1Interfaces TrigT1Result TrigT1ResultByteStreamLib TrigConfData)
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${TDAQ-COMMON_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ${TDAQ-COMMON_LIBRARIES} AthenaBaseComps AthenaInterprocess AthenaKernel AthenaMonitoringKernelLib ByteStreamCnvSvcBaseLib ByteStreamData EventInfo GaudiKernel LumiBlockData MagFieldInterfaces StoreGateLib TrigConfData TrigConfHLTData TrigConfInterfaces TrigConfL1Data TrigSteeringEvent TrigT1Interfaces TrigT1Result )
# Install files from the package:
atlas_install_headers( TrigOnlineMonitor )
atlas_install_joboptions( share/*.py )
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
atlas_install_scripts( share/plotL1TopoROBMonHist.py )
#!/bin/env python
import sys
try:
rootFile=sys.argv[1]
except IndexError:
rootFile="expert-monitoring.root"
print "Reading from %s" % rootFile
import ROOT
ROOT.gROOT.SetBatch(True)
ROOT.gROOT.SetStyle("Plain")
ROOT.gStyle.SetOptStat(111111)
canv=ROOT.TCanvas("canv","canv", 800, 500)
pdfFile='L1TopoROBMonitorHist.pdf'
canv.Print(pdfFile+'[')
tfile = ROOT.TFile(rootFile)
tdir=tfile.GetDirectory('L1TopoROBMonitor')
keys=[key for key in tdir.GetListOfKeys()]
for k in keys:
hist=k.ReadObj()
canv.Clear()
canv.SetName(hist.GetName())
canv.SetTitle(hist.GetTitle())
if 'payload size' in canv.GetName():
canv.SetLogy(1)
else:
canv.SetLogy(0)
hist.Draw()
canv.Update()
canv.Print(pdfFile)
canv.Print(pdfFile+']')
......@@ -2,7 +2,7 @@
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "TrigOnlineMonitor/TrigMuCTPiROBMonitor.h"
#include "TrigMuCTPiROBMonitor.h"
#include "TrigT1Result/RoIBResult.h"
#include "TrigT1Result/MuCTPI_RDO.h"
#include "TrigT1Result/MuCTPI_MultiplicityWord_Decoder.h"
......
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
#include "TrigOpMonitor.h"
......@@ -20,8 +20,6 @@
#include <fstream>
#include <list>
#include <boost/algorithm/string.hpp>
// Helpers
namespace {
/// Sanitize COOL folder names
......
......@@ -2,7 +2,7 @@
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "TrigOnlineMonitor/TrigROBMonitor.h"
#include "TrigROBMonitor.h"
#include "GaudiKernel/ITHistSvc.h"
#include "AthenaKernel/Timeout.h"
#include "ByteStreamCnvSvcBase/IROBDataProviderSvc.h"
......
#include "TrigOnlineMonitor/TrigROBMonitor.h"
#include "TrigOnlineMonitor/TrigMuCTPiROBMonitor.h"
#include "src/TrigALFAROBMonitor.h"
#include "src/TrigL1TopoWriteValData.h"
#include "src/TrigOpMonitor.h"
#include "../TrigROBMonitor.h"
#include "../TrigMuCTPiROBMonitor.h"
#include "../TrigALFAROBMonitor.h"
#include "../TrigL1TopoWriteValData.h"
#include "../TrigOpMonitor.h"
DECLARE_COMPONENT( TrigROBMonitor )
DECLARE_COMPONENT( TrigMuCTPiROBMonitor )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment