ATLAS Offline Software
Loading...
Searching...
No Matches
PileupUncertaintyComponent.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETUNCERTAINTIES_PILEUPUNCERTAINTYCOMPONENT_H
6#define JETUNCERTAINTIES_PILEUPUNCERTAINTYCOMPONENT_H
7
9
10namespace jet
11{
12
14{
15 public:
16 // Constructor/destructor
18 const float refNPV,
19 const float refMu
20 );
22 const UncertaintyHistogram* refNPV,
23 const UncertaintyHistogram* refMu
24 );
26 const UncertaintyHistogram* refNPV,
27 const float refMu
28 );
30 const float refNPV,
31 const UncertaintyHistogram* refMu
32 );
34 virtual PileupUncertaintyComponent* clone() const;
36 virtual StatusCode initialize(TFile* histFile);
37
38 // Extra information retrieval methods
40 virtual float getNPVRef() const { return m_refNPV; }
41 virtual float getMuRef() const { return m_refMu; }
42
43 protected:
44
45 // Uncertainty/validity retrieval helper methods
46 virtual bool getValidityImpl(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const;
47 virtual double getUncertaintyImpl(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const;
48
49 private:
50 // Default constructor is forbidden
51 PileupUncertaintyComponent(const std::string& name = "");
52
54
55 // Additional private members
57 const float m_refNPV;
58 const float m_refMu;
61 const bool m_absEta;
62 const TString m_secondUncName;
63
67
68 // Helper indices/methods
69 double getPileupWeight(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo, const PileupRefType refType) const;
70};
71
72} // end jet namespace
73
74#endif
virtual double getUncertaintyImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
PileupUncertaintyComponent(const ComponentHelper &component, const float refNPV, const float refMu)
const UncertaintyHistogram * m_refNPVHist
const UncertaintyHistogram * m_refMuHist
double getPileupWeight(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const PileupRefType refType) const
virtual PileupComp::TypeEnum getPileupType() const
virtual bool getValidityImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
virtual PileupUncertaintyComponent * clone() const
UncertaintyComponent(const ComponentHelper &component, const size_t numHist=1)
Jet_v1 Jet
Definition of the current "jet version".
EventInfo_v1 EventInfo
Definition of the latest event info version.
void initialize()