21 ATH_MSG_ERROR(
"NSubjettinessTool needs to have its input jet container name configured!");
22 return StatusCode::FAILURE;
28 for(
unsigned int i=0; i<5; i++)
30 "FoxWolfram" + std::to_string(i));
41 return StatusCode::SUCCESS;
48 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_FoxWolfram;
50 wdhs_FoxWolfram.emplace_back(key);
57 fastjet::PseudoJet
jet;
60 std::map<std::string, double> res_t, res_fox, res_s;
62 res_t[
"ThrustMin"] = -999;
63 res_t[
"ThrustMaj"] = -999;
64 res_fox[
"FoxWolfram0"] = -999;
65 res_fox[
"FoxWolfram1"] = -999;
66 res_fox[
"FoxWolfram2"] = -999;
67 res_fox[
"FoxWolfram3"] = -999;
68 res_fox[
"FoxWolfram4"] = -999;
69 res_s[
"Sphericity"] = -999;
70 res_s[
"Aplanarity"] = -999;
76 res_t = t.result(
jet);
81 wdh_ThrustMin(*injet) = res_t[
"ThrustMin"];
82 wdh_ThrustMaj(*injet) = res_t[
"ThrustMaj"];
84 for(
unsigned int i=0; i<5; i++)
85 wdhs_FoxWolfram[i](*injet) = res_fox[
"FoxWolfram"+std::to_string(i)];
87 wdh_Sphericity(*injet) = res_s[
"Sphericity"];
88 wdh_Aplanarity(*injet) = res_s[
"Aplanarity"];
91 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual std::map< std::string, double > result(const fastjet::PseudoJet &jet) const
virtual std::map< std::string, double > result(const fastjet::PseudoJet &jet) const
Handle class for adding a decoration to an object.
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".