Open artlbv opened 11 months ago
Reproduce by uncommenting this line:
The behavior seems consistent with expectations.
The CandViewMerger.cc
produces a merged collection of type reco::CandidateCollection
and not BXVector<l1t::EGamma>
. I didn't manage to instantiate a generic Merge<>
for BXVector
.
Possible solutions would be:
BXVector<l1t::EGamma>
FlatTable
merger. Maybe the second already exists somewhere in the CMSSW repo?
In the current way we use the
CandViewMerger
to merge the barrel and endcap EG collections: https://github.com/cms-l1-dpg/Phase2-L1Nano/blob/7728e4237b4983f95f351458247b9611cdacba66/python/l1Ph2Nano_cff.py#L211-L214This works with the
SimpleCandidateFlatTableProducer
but it fails when trying to access the HW values e.g.hwQual
.One can use the
SimpleTriggerL1EGFlatTableProducer
created for the BX Vector EG collection for Phase-1 to access thishwQual
for the individual barrel and endcap collections separately though.But when trying to use the
SimpleTriggerL1EGFlatTableProducer
on the Merged collection it fails:It seems that the merged collection does not preserve the
BXVector<l1t::EGamma>
type? Thus we have to figure out a way to properly merge these two EG collections and make a table from them.