ATLAS Offline Software
Loading...
Searching...
No Matches
PerJetFlavourUncertaintyComponent.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETUNCERTAINTIES_PERJETFLAVOURUNCERTAINTYCOMPONENT_H
6#define JETUNCERTAINTIES_PERJETFLAVOURUNCERTAINTYCOMPONENT_H
7
9//#include "TF1.h"
10class TF1;
11
12namespace jet
13{
14
16{
17 public:
18 // Constructor/destructor
23 virtual StatusCode initialize(TFile* histFile);
24
25 // Extra information retrieval methods
26 virtual std::vector<int> getRelevantLabels() const { return m_labels; }
27
28 protected:
29
30 // Uncertainty/validity retrieval helper methods
31 virtual bool getValidityImpl(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const;
32 virtual double getUncertaintyImpl(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const;
33
34 private:
35 // Default constructor is forbidden
36 PerJetFlavourUncertaintyComponent(const std::string& name = "");
37
38 // Additional private members
39 const bool m_absEta{};
40 const std::vector<int> m_labels;
43 const TString m_constrainZresponseFunc{};
44 const TF1* m_ZjetQuarkFrac{};
45
46 // Wrappers for special flavour histograms
47 double getFlavourResponseUncertainty(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const;
48 bool isSupportedLabel(const int label) const;
49 bool checkTruthLabel(const xAOD::Jet& jet) const;
50
51};
52
53} // end jet namespace
54
55
56#endif
57
virtual double getUncertaintyImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
virtual bool getValidityImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
PerJetFlavourUncertaintyComponent(const ComponentHelper &component)
virtual PerJetFlavourUncertaintyComponent * clone() const
double getFlavourResponseUncertainty(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
UncertaintyComponent(const ComponentHelper &component, const size_t numHist=1)
std::string label(const std::string &format, int i)
Definition label.h:19
Jet_v1 Jet
Definition of the current "jet version".
EventInfo_v1 EventInfo
Definition of the latest event info version.
void initialize()