27 template <
class H,
class T>
30 const std::vector<T>& vec,
36 static constexpr
char mvaName[] =
"mtdQualMVA";
56 btlMatchTimeChi2Token_(
59 etlMatchTimeChi2Token_(
65 produces<edm::ValueMap<float>>(
mvaName);
73 ->setComment(
"Input tracks collection for MTD extended tracks");
75 ->setComment(
"BTL Chi2 Matching value Map");
77 ->setComment(
"BTL Chi2 Matching value Map");
79 ->setComment(
"ETL Chi2 Matching value Map");
81 ->setComment(
"ETL Chi2 Matching value Map");
83 ->setComment(
"MTD TIme value Map");
85 ->setComment(
"MTD PathLength value Map");
87 ->setComment(
"Association between General and MTD Extended tracks");
90 ->setComment(
"Track MTD quality BDT weights");
91 descriptions.
add(
"mtdTrackQualityMVAProducer", desc);
94 template <
class H,
class T>
97 const std::vector<T>& vec,
99 auto out = std::make_unique<edm::ValueMap<T>>();
109 const auto&
tracks = *tracksH;
122 std::vector<float> mvaOutRaw;
125 for (
unsigned int itrack = 0; itrack <
tracks.size(); ++itrack) {
127 if (trackAssoc[trackref] == -1)
128 mvaOutRaw.push_back(-1.);
131 mvaOutRaw.push_back(
mva_(
132 trackref, mtdTrackref, btlMatchChi2, btlMatchTimeChi2, etlMatchChi2, etlMatchTimeChi2, mtdTime, pathLength));