Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tadej Novak
athena
Commits
6992a398
Verified
Commit
6992a398
authored
Nov 25, 2021
by
Tadej Novak
Browse files
Disable systematics for b-tagging information
parent
f4aa8fbd
Pipeline
#3282919
passed with stage
in 0 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
PhysicsAnalysis/Algorithms/FTagAnalysisAlgorithms/FTagAnalysisAlgorithms/BTaggingInformationDecoratorAlg.h
View file @
6992a398
...
...
@@ -57,15 +57,21 @@ namespace CP
private:
OutOfValidityHelper
m_outOfValidity
{
this
};
/// \brief the decoration for
writing the
weight
/// \brief the decoration for
the b-tagging
weight
private:
SysWriteDecorHandle
<
float
>
m_taggerWeightDecoration
{
this
,
"taggerWeightDecoration"
,
""
,
"the decoration for the tagger weight"
};
std
::
string
m_taggerWeightDecoration
{};
/// \brief the decorat
ion
for
writing the quantiles
/// \brief the decorat
or
for
\ref m_taggerWeightDecoration
private:
SysWriteDecorHandle
<
int
>
m_quantileDecoration
{
this
,
"quantileDecoration"
,
""
,
"the decoration for the continuous WP quantile"
};
std
::
unique_ptr
<
const
SG
::
AuxElement
::
Decorator
<
float
>
>
m_taggerWeightDecorator
{};
/// \brief the decoration for the b-tagging quantiles
private:
std
::
string
m_quantileDecoration
{};
/// \brief the decorator for \ref m_quantileDecoration
private:
std
::
unique_ptr
<
const
SG
::
AuxElement
::
Decorator
<
int
>
>
m_quantileDecorator
{};
};
}
...
...
PhysicsAnalysis/Algorithms/FTagAnalysisAlgorithms/Root/BTaggingInformationDecoratorAlg.cxx
View file @
6992a398
...
...
@@ -25,6 +25,8 @@ namespace CP
,
m_selectionTool
(
""
,
this
)
{
declareProperty
(
"selectionTool"
,
m_selectionTool
,
"the b-tagging selection tool"
);
declareProperty
(
"taggerWeightDecoration"
,
m_taggerWeightDecoration
,
"the decoration for the tagger weight"
);
declareProperty
(
"quantileDecoration"
,
m_quantileDecoration
,
"the decoration for the continuous WP quantile"
);
}
...
...
@@ -38,10 +40,17 @@ namespace CP
return
StatusCode
::
FAILURE
;
}
if
(
!
m_taggerWeightDecoration
.
empty
())
{
m_taggerWeightDecorator
=
std
::
make_unique
<
SG
::
AuxElement
::
Decorator
<
float
>
>
(
m_taggerWeightDecoration
);
}
if
(
!
m_quantileDecoration
.
empty
())
{
m_quantileDecorator
=
std
::
make_unique
<
SG
::
AuxElement
::
Decorator
<
int
>
>
(
m_quantileDecoration
);
}
ANA_CHECK
(
m_selectionTool
.
retrieve
());
ANA_CHECK
(
m_jetHandle
.
initialize
(
m_systematicsList
));
ANA_CHECK
(
m_taggerWeightDecoration
.
initialize
(
m_systematicsList
,
m_jetHandle
,
SG
::
AllowEmpty
));
ANA_CHECK
(
m_quantileDecoration
.
initialize
(
m_systematicsList
,
m_jetHandle
,
SG
::
AllowEmpty
));
ANA_CHECK
(
m_systematicsList
.
initialize
());
ANA_CHECK
(
m_preselection
.
initialize
());
ANA_CHECK
(
m_outOfValidity
.
initialize
());
...
...
@@ -62,27 +71,27 @@ namespace CP
{
if
(
m_preselection
.
getBool
(
*
jet
))
{
if
(
m_taggerWeightDecorat
ion
)
if
(
m_taggerWeightDecorat
or
!=
nullptr
)
{
double
weight
{
-
1.
};
ANA_CHECK_CORRECTION
(
m_outOfValidity
,
*
jet
,
m_selectionTool
->
getTaggerWeight
(
*
jet
,
weight
));
m_taggerWeightDecorat
ion
.
set
(
*
jet
,
weight
,
sys
)
;
(
*
m_taggerWeightDecorat
or
)
(
*
jet
)
=
weight
;
}
if
(
m_quantileDecorat
ion
)
if
(
m_quantileDecorat
or
!=
nullptr
)
{
const
int
quantile
=
m_selectionTool
->
getQuantile
(
*
jet
);
m_quantileDecorat
ion
.
set
(
*
jet
,
quantile
,
sys
)
;
(
*
m_quantileDecorat
or
)
(
*
jet
)
=
quantile
;
}
}
else
{
if
(
m_taggerWeightDecorat
ion
)
if
(
m_taggerWeightDecorat
or
!=
nullptr
)
{
m_taggerWeightDecorat
ion
.
set
(
*
jet
,
-
100.
,
sys
)
;
(
*
m_taggerWeightDecorat
or
)
(
*
jet
)
=
-
100.
;
}
if
(
m_quantileDecorat
ion
)
if
(
m_quantileDecorat
or
!=
nullptr
)
{
m_quantileDecorat
ion
.
set
(
*
jet
,
-
1
,
sys
)
;
(
*
m_quantileDecorat
or
)(
*
jet
)
=
-
1
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment