Skip to content
Snippets Groups Projects
Commit c9bb39cd authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch '22-montool' into 'master'

Remove old code for checking for truncated HLT result from the IHLTMonTool

See merge request !30003
parents 69b4c11b 7aa5a4b7
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!30003Remove old code for checking for truncated HLT result from the IHLTMonTool
......@@ -85,6 +85,7 @@ class IHLTMonTool : public ManagedMonitorToolBase {
bool m_cafonly;
bool m_ignoreTruncationCheck;
bool m_ignoringTruncationCheck; // actual flag to be used as we must not change job options
ServiceHandle<StoreGateSvc> m_storeGate;
ServiceHandle<StoreGateSvc> m_inputMetaStore;
......
......@@ -34,7 +34,9 @@
using namespace std;
IHLTMonTool::IHLTMonTool(const std::string & type, const std::string & myname, const IInterface* parent)
: ManagedMonitorToolBase(type, myname, parent), m_log(0), m_cafonly(0),
: ManagedMonitorToolBase(type, myname, parent),
m_log(0), m_cafonly(0),
m_ignoringTruncationCheck(true),
m_storeGate("StoreGateSvc",myname),
m_inputMetaStore("StoreGateSvc/InputMetaDataStore",myname),
m_configsvc("TrigConf::TrigConfigSvc/TrigConfigSvc",myname), //pickup previously configured configSvc from svcMgr (same as TDT)
......@@ -66,6 +68,19 @@ StatusCode IHLTMonTool::initialize() {
// After retrieve enable Expert methods
getTDT()->ExperimentalAndExpertMethods()->enable();
/// only allow setting of truncation check if this is the legacy monitoring
if ( getTDT()->getNavigationFormat() == "TriggerElement") {
m_ignoringTruncationCheck = m_ignoreTruncationCheck;
}
else {
/// disable the truncation check unless this is the legacy monitoring
if ( !m_ignoreTruncationCheck ) {
ATH_MSG_WARNING("Can only check HLT result truncation in legacy monitoring - disabling truncation check");
}
m_ignoringTruncationCheck = true;
}
ATH_CHECK( m_storeGate.retrieve() );
ATH_CHECK( m_inputMetaStore.retrieve() );
......@@ -660,15 +675,17 @@ StatusCode IHLTMonTool::fillHistograms() {
try {
ATH_MSG_DEBUG("Running fill() for " << name());
// Do not require check on truncated HLTResult
if(m_ignoreTruncationCheck)
// Require non-truncated HLTResult - only set for legacy monitoring
if(m_ignoringTruncationCheck) {
sc=fill();
}
else {
// Require non-truncated HLTResult
if(getTDT()->ExperimentalAndExpertMethods()->isHLTTruncated())
ATH_MSG_WARNING("HLTResult truncated, skip HLT T0 monitoring for this event");
else
sc= fill();
if(getTDT()->ExperimentalAndExpertMethods()->isHLTTruncated()) {
ATH_MSG_WARNING("HLTResult truncated, skip HLT T0 monitoring for this event");
}
else {
sc= fill();
}
}
if (sc.isFailure()) {
......@@ -684,6 +701,7 @@ StatusCode IHLTMonTool::fillHistograms() {
return sc;
}
StatusCode IHLTMonTool::procHistograms() {
StatusCode sc = StatusCode::SUCCESS;
try {
......
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