ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetUncertainties
JetUncertainties
UncertaintySet.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JETUNCERTAINTIES_UNCERTAINTYSET_H
6
#define JETUNCERTAINTIES_UNCERTAINTYSET_H
7
8
#include "
JetUncertainties/UncertaintyEnum.h
"
//CompScaleVar
9
#include "
xAODJet/Jet.h
"
//typedef
10
#include "
xAODEventInfo/EventInfo.h
"
//typedef
11
12
#include "
AsgMessaging/AsgMessaging.h
"
13
#include "
AsgTools/AsgToolMacros.h
"
//ASG_TOOL_CLASS0
14
15
#include <string>
16
#include <vector>
17
#include <utility>
18
class
StatusCode
;
19
20
namespace
CP
{
21
class
SystematicSet
;
22
}
23
24
25
namespace
jet
26
{
27
class
UncertaintyGroup
;
28
class
UncertaintySet
:
virtual
public
asg::AsgMessaging
29
{
30
ASG_TOOL_CLASS0
(
UncertaintySet
)
31
32
public
:
33
// Constructor/destructor/initialization
34
UncertaintySet
(
const
std::string& name =
""
);
35
virtual
~UncertaintySet
();
36
virtual
StatusCode
initialize
(
const
CP::SystematicSet
& systConfig,
const
std::vector<UncertaintyGroup*>& groups);
37
38
virtual
std::string
getName
()
const
;
39
40
// Uncertainty retrieval methods
41
// These only work when the user is asking for a single CompScaleVar (unknown is fine if there's only one type)
42
virtual
bool
getValidity
(
const
xAOD::Jet
&
jet
,
const
xAOD::EventInfo
& eInfo,
const
CompScaleVar::TypeEnum
scaleVar =
CompScaleVar::UNKNOWN
)
const
;
43
virtual
double
getUncertainty
(
const
xAOD::Jet
&
jet
,
const
xAOD::EventInfo
& eInfo,
const
CompScaleVar::TypeEnum
scaleVar =
CompScaleVar::UNKNOWN
)
const
;
44
virtual
bool
getValidUncertainty
(
double
& unc,
const
xAOD::Jet
&
jet
,
const
xAOD::EventInfo
& eInfo,
const
CompScaleVar::TypeEnum
scaleVar =
CompScaleVar::UNKNOWN
)
const
;
45
46
// More advanced retrieval methods for generic sets
47
virtual
std::vector<CompScaleVar::TypeEnum>
getScaleVars
()
const
;
48
virtual
std::vector< std::pair<CompScaleVar::TypeEnum,bool> >
getValiditySet
(
const
xAOD::Jet
&
jet
,
const
xAOD::EventInfo
& eInfo)
const
;
49
virtual
std::vector< std::pair<CompScaleVar::TypeEnum,double> >
getUncertaintySet
(
const
xAOD::Jet
&
jet
,
const
xAOD::EventInfo
& eInfo)
const
;
50
virtual
std::vector< std::pair<CompScaleVar::TypeEnum,bool> >
getValidUncertaintySet
(std::vector< std::pair<CompScaleVar::TypeEnum,double> >& unc,
const
xAOD::Jet
&
jet
,
const
xAOD::EventInfo
& eInfo)
const
;
51
52
// Specialty methods
53
JetTopology::TypeEnum
getTopology
(
const
CompScaleVar::TypeEnum
scaleVar =
CompScaleVar::UNKNOWN
)
const
;
54
55
private
:
56
// Private members
57
const
std::string
m_name
;
58
bool
m_isInit
;
59
std::vector<UncertaintyGroup*>
m_groups
;
60
std::vector<float>
m_shiftWeights
;
61
62
63
// Helper methods
64
CompScaleVar::TypeEnum
getSingleVar
()
const
;
65
66
};
67
68
}
// end jet namespace
69
70
#endif
AsgMessaging.h
AsgToolMacros.h
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition
AsgToolMacros.h:62
Jet.h
UncertaintyEnum.h
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition
AsgMessaging.h:40
jet::UncertaintyGroup
Definition
UncertaintyGroup.h:28
jet::UncertaintySet::getValiditySet
virtual std::vector< std::pair< CompScaleVar::TypeEnum, bool > > getValiditySet(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
Definition
UncertaintySet.cxx:211
jet::UncertaintySet::getValidUncertaintySet
virtual std::vector< std::pair< CompScaleVar::TypeEnum, bool > > getValidUncertaintySet(std::vector< std::pair< CompScaleVar::TypeEnum, double > > &unc, const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
Definition
UncertaintySet.cxx:249
jet::UncertaintySet::getUncertainty
virtual double getUncertainty(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const
Definition
UncertaintySet.cxx:126
jet::UncertaintySet::m_shiftWeights
std::vector< float > m_shiftWeights
Definition
UncertaintySet.h:60
jet::UncertaintySet::getValidity
virtual bool getValidity(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const
Definition
UncertaintySet.cxx:105
jet::UncertaintySet::m_name
const std::string m_name
Definition
UncertaintySet.h:57
jet::UncertaintySet::UncertaintySet
UncertaintySet(const std::string &name="")
Definition
UncertaintySet.cxx:23
jet::UncertaintySet::getTopology
JetTopology::TypeEnum getTopology(const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const
Definition
UncertaintySet.cxx:284
jet::UncertaintySet::getValidUncertainty
virtual bool getValidUncertainty(double &unc, const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const
Definition
UncertaintySet.cxx:155
jet::UncertaintySet::~UncertaintySet
virtual ~UncertaintySet()
jet::UncertaintySet::getName
virtual std::string getName() const
Definition
UncertaintySet.cxx:75
jet::UncertaintySet::getScaleVars
virtual std::vector< CompScaleVar::TypeEnum > getScaleVars() const
Definition
UncertaintySet.cxx:193
jet::UncertaintySet::getUncertaintySet
virtual std::vector< std::pair< CompScaleVar::TypeEnum, double > > getUncertaintySet(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
Definition
UncertaintySet.cxx:230
jet::UncertaintySet::getSingleVar
CompScaleVar::TypeEnum getSingleVar() const
Definition
UncertaintySet.cxx:86
jet::UncertaintySet::m_isInit
bool m_isInit
Definition
UncertaintySet.h:58
jet::UncertaintySet::m_groups
std::vector< UncertaintyGroup * > m_groups
Definition
UncertaintySet.h:59
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
jet::CompScaleVar::TypeEnum
TypeEnum
Definition
UncertaintyEnum.h:91
jet::CompScaleVar::UNKNOWN
@ UNKNOWN
Definition
UncertaintyEnum.h:93
jet::JetTopology::TypeEnum
TypeEnum
Definition
UncertaintyEnum.h:208
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
initialize
void initialize()
Definition
run_EoverP.cxx:894
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0