30 std::string title = std::regex_replace(teff->GetTitle(), std::regex(
"linked"), replacement);
31 std::string xlabel = teff->GetTotalHistogram()->GetXaxis()->GetTitle();
32 std::string ylabel = std::regex_replace(teff->GetTotalHistogram()->GetYaxis()->GetTitle(), std::regex(
"linked"), replacement);
33 std::string s = title +
";" + xlabel +
";" + ylabel;
34 teff->SetTitle(s.c_str());
42 std::string nameOverride =
"_total";
77 double eta = track.eta();
78 double pt = track.pt() / Gaudi::Units::GeV;
79 double phi = track.phi();
80 double d0 = track.d0();
81 double z0 = track.z0();
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
void unlinked_ylabel(TEfficiency *teff, const std::string &replacement)
TEfficiency * m_fakerate_vs_pt
InDetPerfPlot_FakeRate(InDetPlotBase *pParent, const std::string &dirName, FakeRateCategory fakeRateCategory=FakeRateCategory::Linked)
TEfficiency * m_fakerate_vs_d0
TEfficiency * m_fakerate_vs_mu
TEfficiency * m_fakerate_vs_lowpt
TEfficiency * m_fakerate_vs_eta
void fill(const xAOD::TrackParticle &track, const bool isFake, float weight, float mu)
TEfficiency * m_fakerate_vs_phi
FakeRateCategory m_fakeRateCategory
TEfficiency * m_fakerate_vs_z0
static void fillHisto(TProfile *pTprofile, const float bin, const float weight, const float weight2=1.0)
void book(Htype *&pHisto, const std::string &histoIdentifier, const std::string &nameOverride="", const std::string &folder="default")
Helper method to book histograms using an identifier string.
InDetPlotBase(InDetPlotBase *pParent, const std::string &dirName)
Constructor taking parent node and directory name for plots.
Class to retrieve associated truth from a track, implementing a cached response.
TrackParticle_v1 TrackParticle
Reference the current persistent version: