34 : vertexCollToken_(consumes(iConfig.getParameter<
edm::
InputTag>(
"vertexCollection"))),
35 mantissaPrecision_(iConfig.getParameter<
int>(
"mantissaPrecision")) {
36 produces<Run3ScoutingVertexCollection>(
"primaryVtx");
42 auto outVertices = std::make_unique<Run3ScoutingVertexCollection>();
46 if (vertexCollHandle.isValid()) {
47 outVertices->reserve(vertexCollHandle->size());
48 for (
auto const&
vtx : *vertexCollHandle) {
49 outVertices->emplace_back(
72 ->setComment(
"InputTag of input collection of primary vertices");
73 desc.add<
int>(
"mantissaPrecision", 10)->setComment(
"default float16, change to 23 for float32");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void produce(edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &setup) const final
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
int const mantissaPrecision_
static float reduceMantissaToNbitsRounding(const float &f)
edm::EDGetTokenT< reco::VertexCollection > const vertexCollToken_
HLTScoutingPrimaryVertexProducer(const edm::ParameterSet &)