ATLAS Offline Software
Loading...
Searching...
No Matches
DummyAlgorithm.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
9
11#include <dqm_core/AlgorithmManager.h>
12#include <dqm_core/Result.h>
13#include <TObject.h>
14#include <ers/ers.h>
15
16namespace {
17 dqm_algorithms::DummyAlgorithm Dummy( "Dummy_Algorithm" );
18}
19
21 : m_name( name )
22{
23 dqm_core::AlgorithmManager::instance().registerAlgorithm( name, this );
24}
25
31
32dqm_core::Result*
34 const std::string& name,
35 const TObject& /*object*/,
36 const dqm_core::AlgorithmConfig& /*config*/ )
37{
38 ERS_DEBUG(1, "DummyAlgorithm: returning Undefined for " << name
39 << " (channel intentionally disabled in detector)");
40 return new dqm_core::Result( dqm_core::Result::Undefined );
41}
42
43void
45{
46 out << "Dummy_Algorithm: Always returns Result::Undefined.\n"
47 << "Use for histograms whose detector channel is intentionally\n"
48 << "disabled (e.g. switched-off sTGC Qi/Li layers in Pad/Strip/Wire).\n"
49 << "No parameters or thresholds required.\n" << std::endl;
50}
Declares dqm_algorithms::DummyAlgorithm.
dqm_core::Result * execute(const std::string &, const TObject &, const dqm_core::AlgorithmConfig &)
void printDescription(std::ostream &out)
DummyAlgorithm(const std::string &name)