ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkHiggs
python
HiggsPhysContent.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
3
4
def
HiggsAugmentationAlgsCfg
(flags):
5
acc =
ComponentAccumulator
()
6
from
DerivationFrameworkHiggs.FourLeptonVertexing
import
FourLeptonVertexerCfg
7
acc.merge(
FourLeptonVertexerCfg
(flags))
8
if
flags.Input.isMC:
9
from
DerivationFrameworkHiggs.TruthCategoriesConfig
import
TruthCategoriesDecoratorCfg
10
acc.merge(
TruthCategoriesDecoratorCfg
(flags))
11
return
acc
12
13
def
setupHiggsSlimmingVariables
(ConfigFlags, slimmingHelper):
14
15
# extra variables needed for Higgs analyses
16
if
ConfigFlags.Input.isMC:
17
htxs_vars = [
18
"HTXS_prodMode"
,
19
"HTXS_errorCode"
,
20
"HTXS_Stage0_Category"
,
21
"HTXS_Stage1_Category_pTjet25"
,
22
"HTXS_Stage1_Category_pTjet30"
,
23
"HTXS_Stage1_FineIndex_pTjet30"
,
24
"HTXS_Stage1_FineIndex_pTjet25"
,
25
"HTXS_Stage1_2_Category_pTjet25"
,
26
"HTXS_Stage1_2_Category_pTjet30"
,
27
"HTXS_Stage1_2_FineIndex_pTjet30"
,
28
"HTXS_Stage1_2_FineIndex_pTjet25"
,
29
"HTXS_Stage1_2_Fine_Category_pTjet25"
,
30
"HTXS_Stage1_2_Fine_Category_pTjet30"
,
31
"HTXS_Stage1_2_Fine_FineIndex_pTjet30"
,
32
"HTXS_Stage1_2_Fine_FineIndex_pTjet25"
,
33
"HTXS_Njets_pTjet25"
,
34
"HTXS_Njets_pTjet30"
,
35
"HTXS_isZ2vvDecay"
,
"HTXS_Higgs_pt"
]
36
for
p4_var
in
[
"HTXS_Higgs"
,
"HTXS_V"
,
"HTXS_V_jets25"
,
"HTXS_V_jets30"
,
"HTXS_Higgs_decay"
,
"HTXS_V_decay"
]:
37
htxs_vars += [p4_var+
"_eta"
, p4_var+
"_phi"
, p4_var+
"_pt"
,p4_var+
"_m"
]
38
slimmingHelper.ExtraVariables += [
"EventInfo."
+
"."
.
join
(htxs_vars)]
39
slimmingHelper.AppendToDictionary.update({
40
'FourLeptonVertices'
:
'xAOD::VertexContainer'
,
'FourLeptonVerticesAux'
:
'xAOD::VertexAuxContainer'
41
})
42
slimmingHelper.ExtraVariables += [
"FourLeptonVertices.trackParticleLinks.x.y.z.chiSquared.numberDoF.vertexType"
]
43
44
45
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition:
JetAnalysisCommon.py:302
python.FourLeptonVertexing.FourLeptonVertexerCfg
def FourLeptonVertexerCfg(flags, name="FourLeptonVertexAlg", **kwargs)
Definition:
FourLeptonVertexing.py:9
python.TruthCategoriesConfig.TruthCategoriesDecoratorCfg
def TruthCategoriesDecoratorCfg(ConfigFlags, name="TruthCategoriesDecorator", **kwargs)
Definition:
TruthCategoriesConfig.py:5
python.HiggsPhysContent.HiggsAugmentationAlgsCfg
def HiggsAugmentationAlgsCfg(flags)
Definition:
HiggsPhysContent.py:4
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.HiggsPhysContent.setupHiggsSlimmingVariables
def setupHiggsSlimmingVariables(ConfigFlags, slimmingHelper)
Definition:
HiggsPhysContent.py:13
Generated on Sun Dec 22 2024 21:11:10 for ATLAS Offline Software by
1.8.18