ATLAS Offline Software
Loading...
Searching...
No Matches
HiggsPhysContent.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3
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
13def 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_Stage1_3_Category_pTjet25",
34 "HTXS_Stage1_3_Category_pTjet30",
35 "HTXS_Stage1_3_FineIndex_pTjet30",
36 "HTXS_Stage1_3_FineIndex_pTjet25",
37 "HTXS_Stage1_3_Fine_Category_pTjet25",
38 "HTXS_Stage1_3_Fine_Category_pTjet30",
39 "HTXS_Stage1_3_Fine_FineIndex_pTjet30",
40 "HTXS_Stage1_3_Fine_FineIndex_pTjet25",
41 "HTXS_Njets_pTjet25",
42 "HTXS_Njets_pTjet30",
43 "HTXS_isZ2vvDecay",
44 "HTXS_Higgs_pt",
45 "HTXS_Stage0_DecayCategory",
46 "HTXS_Decay_m12",
47 "HTXS_Decay_m34",
48 "HTXS_Decay_phi",
49 "HTXS_Decay_phi1",
50 "HTXS_Decay_costhstr",
51 "HTXS_Decay_costh1",
52 "HTXS_Decay_costh2",
53 "HTXS_Decay_HZZ4l_cutflow_passed",
54 "HTXS_Decay_m14",
55 "HTXS_Decay_m23",
56 "HTXS_Decay_m13",
57 "HTXS_Decay_m24"]
58 for p4_var in ["HTXS_Higgs", "HTXS_V", "HTXS_V_jets25", "HTXS_V_jets30", "HTXS_Higgs_decay", "HTXS_V_decay" ]:
59 htxs_vars += [p4_var+"_eta", p4_var+"_phi", p4_var+"_pt",p4_var+"_m"]
60 slimmingHelper.ExtraVariables += ["EventInfo." + ".".join(htxs_vars)]
61 slimmingHelper.AppendToDictionary.update({
62 'FourLeptonVertices':'xAOD::VertexContainer','FourLeptonVerticesAux':'xAOD::VertexAuxContainer'
63 })
64 slimmingHelper.ExtraVariables += ["FourLeptonVertices.trackParticleLinks.x.y.z.chiSquared.numberDoF.vertexType"]
65
66
67
setupHiggsSlimmingVariables(ConfigFlags, slimmingHelper)