ATLAS Offline Software
Functions
InDetPerfPlot_FakeRate.cxx File Reference
#include "InDetPerfPlot_FakeRate.h"
#include "xAODTruth/TruthParticle.h"
#include "xAODTruth/TruthVertex.h"
#include "InDetPhysValMonitoringUtilities.h"
#include <cmath>
#include <regex>
Include dependency graph for InDetPerfPlot_FakeRate.cxx:

Go to the source code of this file.

Functions

void unlinked_ylabel (TEfficiency *teff)
 

Detailed Description

Author
Gabrel Facini Gabri.nosp@m.el.F.nosp@m.acini.nosp@m.@cer.nosp@m.n.ch Wed Oct 29 09:58:58 CET 2014

a lot of this is copied from EfficiencyPlots in the TrkValHistUtils which is dumb the point is that many instances of this will be created so more control of the names is needed. I don't have permission for that package and time is short...as usual

Definition in file InDetPerfPlot_FakeRate.cxx.

Function Documentation

◆ unlinked_ylabel()

void unlinked_ylabel ( TEfficiency *  teff)

Definition at line 27 of file InDetPerfPlot_FakeRate.cxx.

28 {
29  if (teff) {
30  std::string title = std::regex_replace(teff->GetTitle(), std::regex("linked"), "unlinked");
31  std::string xlabel = teff->GetTotalHistogram()->GetXaxis()->GetTitle();
32  std::string ylabel = std::regex_replace(teff->GetTotalHistogram()->GetYaxis()->GetTitle(), std::regex("linked"), "unlinked");
33  std::string s = title + ";" + xlabel + ";" + ylabel;
34  teff->SetTitle(s.c_str());
35  }
36 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
covarianceTool.title
title
Definition: covarianceTool.py:542