@@ -54,7 +54,14 @@ enum class InputFeaturesEMCConversion : uint8_t {
5454 totE,
5555 e2 ,
5656 e1 ,
57- deltaPhi
57+ deltaPhi,
58+ harmonicEt,
59+ m021,
60+ m022,
61+ time1,
62+ time2,
63+ ncell1,
64+ ncell2
5865};
5966
6067template <typename TypeOutputScore = float >
@@ -65,9 +72,9 @@ class EmMlResponseEMCConversion : public MlResponse<TypeOutputScore>
6572 virtual ~EmMlResponseEMCConversion () = default ;
6673
6774 template <o2::analysis::em::IsEmcConversionCandidate TCandidate>
68- std::vector< float > getInputFeatures (TCandidate const & candidate)
75+ void getInputFeatures (TCandidate const & candidate, std::vector< float >& inputFeatures )
6976 {
70- std::vector< float > inputFeatures;
77+ inputFeatures. clear () ;
7178 for (const auto & idx : MlResponse<TypeOutputScore>::mCachedIndices ) {
7279 switch (idx) {
7380 CHECK_AND_FILL_VEC_EMC_CONV (minv)
@@ -79,9 +86,15 @@ class EmMlResponseEMCConversion : public MlResponse<TypeOutputScore>
7986 CHECK_AND_FILL_VEC_EMC_CONV (e2 )
8087 CHECK_AND_FILL_VEC_EMC_CONV (e1 )
8188 CHECK_AND_FILL_VEC_EMC_CONV (deltaPhi)
89+ CHECK_AND_FILL_VEC_EMC_CONV (harmonicEt)
90+ CHECK_AND_FILL_VEC_EMC_CONV (m021)
91+ CHECK_AND_FILL_VEC_EMC_CONV (m022)
92+ CHECK_AND_FILL_VEC_EMC_CONV (time1)
93+ CHECK_AND_FILL_VEC_EMC_CONV (time2)
94+ CHECK_AND_FILL_VEC_EMC_CONV (ncell1)
95+ CHECK_AND_FILL_VEC_EMC_CONV (ncell2)
8296 }
8397 }
84- return inputFeatures;
8598 }
8699
87100 protected:
@@ -90,7 +103,10 @@ class EmMlResponseEMCConversion : public MlResponse<TypeOutputScore>
90103 MlResponse<TypeOutputScore>::mAvailableInputFeatures = {
91104 FILL_MAP_EMC_CONV (minv), FILL_MAP_EMC_CONV (deltaEta), FILL_MAP_EMC_CONV (deltaR),
92105 FILL_MAP_EMC_CONV (phiv), FILL_MAP_EMC_CONV (rConv), FILL_MAP_EMC_CONV (totE),
93- FILL_MAP_EMC_CONV (e2 ), FILL_MAP_EMC_CONV (e1 ), FILL_MAP_EMC_CONV (deltaPhi)};
106+ FILL_MAP_EMC_CONV (e2 ), FILL_MAP_EMC_CONV (e1 ), FILL_MAP_EMC_CONV (deltaPhi),
107+ FILL_MAP_EMC_CONV (harmonicEt), FILL_MAP_EMC_CONV (m021), FILL_MAP_EMC_CONV (m022),
108+ FILL_MAP_EMC_CONV (time1), FILL_MAP_EMC_CONV (time2), FILL_MAP_EMC_CONV (ncell1),
109+ FILL_MAP_EMC_CONV (ncell2)};
94110 }
95111};
96112
0 commit comments