Skip to content
Snippets Groups Projects

pseudomerge of TrigHLTMonitoring packages from rel 21 to master, ATR-18999

19 files
+ 486
1127
Compare changes
  • Side-by-side
  • Inline
Files
19
////
//// GUI for TriggerHLTMonitoring MenuAwareMonitoring
//// built by Xanthe Hoad (xhoad@cern.ch)
////
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
// GUI for TriggerHLTMonitoring MenuAwareMonitoring
// Author: Xanthe Hoad (xanthe.hoad@cern.ch)
// See https://twiki.cern.ch/twiki/bin/view/Atlas/MaDQM for more information
import java.awt.*;
import java.awt.event.*;
@@ -92,10 +95,10 @@ public class TrigMaMGUI extends JFrame {
JScrollPane scrollPane = new JScrollPane(linkComment);
scrollPane.setPreferredSize(new Dimension(200, 30));
SMK_MCK_link_subpanel_1.add(scrollPane);
JButton SMK_MCK_link_button = new JButton("Make SMK-MCK link");
JPanel SMK_MCK_link_subpanel_2 = new JPanel(new FlowLayout(FlowLayout.CENTER,1,1));
SMK_MCK_link_panel.add(SMK_MCK_link_subpanel_2);
JButton SMK_MCK_link_button = new JButton("Make SMK-MCK link");
SMK_MCK_link_subpanel_2.add(SMK_MCK_link_button);
final JCheckBox force_link_checkbox = new JCheckBox("Force link upload (only tick if you are certain you want to do this)");
SMK_MCK_link_subpanel_2.add(force_link_checkbox);
@@ -370,6 +373,11 @@ public class TrigMaMGUI extends JFrame {
JButton ViewSMCKbutton = new JButton("View SMCK");
View_keys_subpanel_2.add(ViewSMCKbutton);
JPanel View_keys_subpanel_3 = new JPanel(new FlowLayout(FlowLayout.CENTER,1,1));
View_keys_panel.add(View_keys_subpanel_3);
JButton ViewLinksButton = new JButton("View all SMK-MCK links");
View_keys_subpanel_3.add(ViewLinksButton);
ViewSMKbutton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Get the selected SMK info
@@ -396,6 +404,14 @@ public class TrigMaMGUI extends JFrame {
RunProcess(viewSMCKcommand);
}
});
ViewLinksButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Get the selected MCK info
String viewLinksCommand = "from TrigHLTMonitoring.MenuAwareMonitoringStandalone import MenuAwareMonitoringStandalone;ms = MenuAwareMonitoringStandalone('"+dbalias+"');ms.print_all_mck_to_smk_links();";
RunProcess(viewLinksCommand);
}
});
}
//Setting up the tabbed pane
Loading