37 {
41 return StatusCode::FAILURE;
42 }
43
44
46 SG::WriteDecorHandle<xAOD::EventInfo, int> decorationHadTopPt_High(
m_HadTopPt_HighKey, ctx);
47
49
50 if (filterCode_High == 0 ){
51 decorationHadTopPt_High(*eventInfo) = 0;
52 decorationttbarSysPt_High(*eventInfo) = 0;
53 }
54 else if ( filterCode_High == 1){
55 decorationttbarSysPt_High(*eventInfo) = 1;
56 decorationHadTopPt_High(*eventInfo) = 0;
57 }
58 else if ( filterCode_High == 2){
59 decorationttbarSysPt_High(*eventInfo) = 0;
60 decorationHadTopPt_High(*eventInfo) = 1;
61
62 }
63 else if ( filterCode_High == 3){
64 decorationttbarSysPt_High(*eventInfo) = 1;
65 decorationHadTopPt_High(*eventInfo) = 1;
66 }
67
68
69
70 SG::WriteDecorHandle<xAOD::EventInfo, int> decorationttbarSysPt_Low(
m_ttbarSysPt_LowKey, ctx);
71 SG::WriteDecorHandle<xAOD::EventInfo, int> decorationHadTopPt_Low(
m_HadTopPt_LowKey, ctx);
72
74
75 if (filterCode_Low == 0 ){
76 decorationHadTopPt_Low(*eventInfo) = 0;
77 decorationttbarSysPt_Low(*eventInfo) = 0;
78 }
79 else if ( filterCode_Low == 1){
80 decorationttbarSysPt_Low(*eventInfo) = 1;
81 decorationHadTopPt_Low(*eventInfo) = 0;
82 }
83 else if ( filterCode_Low == 2){
84 decorationttbarSysPt_Low(*eventInfo) = 0;
85 decorationHadTopPt_Low(*eventInfo) = 1;
86
87 }
88 else if ( filterCode_Low == 3){
89 decorationttbarSysPt_Low(*eventInfo) = 1;
90 decorationHadTopPt_Low(*eventInfo) = 1;
91 }
92
93
94
95
96
97
98 return StatusCode::SUCCESS;
99
100 }
SG::WriteDecorHandleKey< xAOD::EventInfo > m_HadTopPt_LowKey
ToolHandle< DerivationFramework::BoostedHadTopAndTopPairFilterTool > m_filterTool_High
SG::WriteDecorHandleKey< xAOD::EventInfo > m_ttbarSysPt_HighKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_ttbarSysPt_LowKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoName
ToolHandle< DerivationFramework::BoostedHadTopAndTopPairFilterTool > m_filterTool_Low
SG::WriteDecorHandleKey< xAOD::EventInfo > m_HadTopPt_HighKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?