Skip to content
Snippets Groups Projects
Commit d71cfad2 authored by Baptiste Ravina's avatar Baptiste Ravina Committed by Frank Winklmeier
Browse files

CPAlgorithm: add IOStatsAlg from TopCPToolkit

CPAlgorithm: add IOStatsAlg from TopCPToolkit
parent 2e3ed36d
No related branches found
No related tags found
28 merge requests!78241Draft: FPGATrackSim: GenScan code refactor,!78236Draft: Switching Streams https://its.cern.ch/jira/browse/ATR-27417,!78056AFP monitoring: new synchronization and cleaning,!78041AFP monitoring: new synchronization and cleaning,!77990Updating TRT chip masks for L1TRT trigger simulation - ATR-28372,!77733Draft: add new HLT NN JVT, augmented with additional tracking information,!77731Draft: Updates to ZDC reconstruction,!77728Draft: updates to ZDC reconstruction,!77522Draft: sTGC Pad Trigger Emulator,!76725ZdcNtuple: Fix cppcheck warning.,!76611L1CaloFEXByteStream: Fix out-of-bounds array accesses.,!76475Punchthrough AF3 implementation in FastG4,!76474Punchthrough AF3 implementation in FastG4,!75729New implementation of ZDC nonlinear FADC correction.,!75703Draft: Update to HI han config for HLT jets,!75184Draft: Update file heavyions_run.config,!74430Draft: Fixing upper bound for Delayed Jet Triggers,!73963Changing the path of the histograms to "Expert" area,!73875updating ID ART reference plots,!73874AtlasCLHEP_RandomGenerators: Fix cppcheck warnings.,!73449Add muon detectors to DarkJetPEBTLA partial event building,!73343Draft: [TrigEgamma] Add photon ringer chains on bootstrap mechanism,!72336Fixed TRT calibration crash,!72176Draft: Improving L1TopoOnline chain that now gets no-empty plots. Activating it by default,!72012Draft: Separate JiveXMLConfig.py into Config files,!71876Fix MET trigger name in MissingETMonitoring,!71820Draft: Adding new TLA End-Of-Fill (EOF) chains and removing obsolete DIPZ chains,!71768CPAlgorithm: add IOStatsAlg from TopCPToolkit
Showing
with 86 additions and 11 deletions
......@@ -62,17 +62,17 @@ TauJets:
tauID: 'Tight'
triggerChainsPerYear:
'2015':
- 'HLT_tau25_medium1_tracktwo'
- 'HLT_tau35_medium1_tracktwo'
'2016':
- 'HLT_tau25_medium1_tracktwo'
- 'HLT_tau35_medium1_tracktwo'
'2017':
- 'HLT_tau25_medium1_tracktwo'
- 'HLT_tau35_medium1_tracktwo'
'2018':
- 'HLT_tau25_medium1_tracktwoEF_OR_mediumRNN_tracktwoMVA'
- 'HLT_tau35_medium1_tracktwoEF_OR_mediumRNN_tracktwoMVA'
- 'HLT_tau25_medium1_tracktwo'
- 'HLT_tau35_medium1_tracktwo'
'2016':
- 'HLT_tau25_medium1_tracktwo'
- 'HLT_tau35_medium1_tracktwo'
'2017':
- 'HLT_tau25_medium1_tracktwo'
- 'HLT_tau35_medium1_tracktwo'
'2018':
- 'HLT_tau25_medium1_tracktwoEF_OR_mediumRNN_tracktwoMVA'
- 'HLT_tau35_medium1_tracktwoEF_OR_mediumRNN_tracktwoMVA'
PtEtaSelection: {}
GeneratorLevelAnalysis: {}
......
......@@ -340,4 +340,8 @@ class ConfigFactory():
self.addAlgConfigBlock(algName="Output", alg=OutputAnalysisConfig,
defaults={'configName': 'Output'})
# IOStats printouts
from AsgAnalysisAlgorithms.AsgAnalysisConfig import IOStatsBlock
self.addAlgConfigBlock(algName="IOStats", alg=IOStatsBlock)
return
......@@ -41,5 +41,6 @@
#include <AsgAnalysisAlgorithms/SystObjectUnioniserAlg.h>
#include <AsgAnalysisAlgorithms/TreeFillerAlg.h>
#include <AsgAnalysisAlgorithms/TreeMakerAlg.h>
#include <AsgAnalysisAlgorithms/IOStatsAlg.h>
#endif
/*
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/// @author Zhengcheng Tao
#ifndef ASG_IOSTATSALG_H
#define ASG_IOSTATSALG_H
#include <AnaAlgorithm/AnaAlgorithm.h>
#include <AsgTools/PropertyWrapper.h>
namespace CP {
class IOStatsAlg final : public EL::AnaAlgorithm {
public:
using EL::AnaAlgorithm::AnaAlgorithm;
// finalize function: run once at the end of a job after event loop
virtual StatusCode finalize() override;
private:
Gaudi::Property<std::string> m_printOption {this, "printOption", "Summary", "option to pass the standard ROOT printing function. Can be 'Summary', 'ByEntries' or 'ByBytes'."};
};
} // namespace
#endif
......@@ -34,5 +34,6 @@
<class name="CP::SystObjectUnioniserAlg" />
<class name="CP::TreeFillerAlg" />
<class name="CP::TreeMakerAlg" />
<class name="CP::IOStatsAlg" />
</lcgdict>
/*
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/// @author Zhengcheng Tao
#include <AsgAnalysisAlgorithms/IOStatsAlg.h>
#include "xAODCore/tools/IOStats.h"
#include "xAODCore/tools/ReadStats.h"
namespace CP {
StatusCode IOStatsAlg::finalize() {
xAOD::IOStats::instance().merged().Print(m_printOption.value().c_str());
return StatusCode::SUCCESS;
}
} // namespace
......@@ -82,6 +82,19 @@ class CommonServicesConfig (ConfigBlock) :
sysDumper.histogramName = self.systematicsHistogram
class IOStatsBlock(ConfigBlock):
"""Print what branches are used in analysis"""
def __init__(self):
super(IOStatsBlock, self).__init__()
self.addOption("printOption", "Summary", type=str,
info='option to pass the standard ROOT printing function. Can be "Summary", "ByEntries" or "ByBytes".')
def makeAlgs(self, config):
alg = config.createAlgorithm('CP::IOStatsAlg', 'IOStatsAlg')
alg.printOption = self.printOption
class PileupReweightingBlock (ConfigBlock):
"""the ConfigBlock for pileup reweighting"""
......
......@@ -37,6 +37,7 @@
#include <AsgAnalysisAlgorithms/TreeMakerAlg.h>
#include "AsgAnalysisAlgorithms/SystObjectLinkerAlg.h"
#include "AsgAnalysisAlgorithms/SystObjectUnioniserAlg.h"
#include "AsgAnalysisAlgorithms/IOStatsAlg.h"
DECLARE_COMPONENT (CP::AsgFlagSelectionTool)
DECLARE_COMPONENT (CP::AsgMaskSelectionTool)
......@@ -69,6 +70,7 @@ DECLARE_COMPONENT (CP::PMGTruthWeightAlg)
DECLARE_COMPONENT (CP::SysListDumperAlg)
DECLARE_COMPONENT (CP::TreeFillerAlg)
DECLARE_COMPONENT (CP::TreeMakerAlg)
DECLARE_COMPONENT (CP::IOStatsAlg)
DECLARE_COMPONENT (CP::SystObjectLinkerAlg)
// Concrete classes of SystObjectUnioniserAlg
DECLARE_COMPONENT (CP::SystJetUnioniserAlg)
......
......@@ -38,6 +38,7 @@
#include <AsgAnalysisAlgorithms/SystObjectLinkerAlg.h>
#include <AsgAnalysisAlgorithms/TreeFillerAlg.h>
#include <AsgAnalysisAlgorithms/TreeMakerAlg.h>
#include <AsgAnalysisAlgorithms/IOStatsAlg.h>
#include <EgammaAnalysisAlgorithms/EgammaCalibrationAndSmearingAlg.h>
#include <EgammaAnalysisAlgorithms/EgammaIsGoodOQSelectionTool.h>
#include <EgammaAnalysisAlgorithms/EgammaIsolationCorrectionAlg.h>
......@@ -151,6 +152,7 @@ namespace CP
ANA_CHECK (asg::registerAlgorithmFactory<CP::TrigEventSelectionAlg>("CP::TrigEventSelectionAlg"));
ANA_CHECK (asg::registerAlgorithmFactory<CP::TrigGlobalEfficiencyAlg>("CP::TrigGlobalEfficiencyAlg"));
ANA_CHECK (asg::registerAlgorithmFactory<CP::VertexSelectionAlg>("CP::VertexSelectionAlg"));
ANA_CHECK (asg::registerAlgorithmFactory<CP::IOStatsAlg>("CP::IOStatsAlg"));
ANA_CHECK (asg::registerToolFactory<AsgDeadHVCellRemovalTool> ("AsgDeadHVCellRemovalTool"));
ANA_CHECK (asg::registerToolFactory<BTaggingSelectionTool> ("BTaggingSelectionTool"));
......
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