@@ -170,7 +170,7 @@ DisplacedVertexProducer::DisplacedVertexProducer(const edm::ParameterSet& iConfi
170170 trackGTTToken_(consumes<std::vector<TTTrack<Ref_Phase2TrackerDigi_>>>(
171171 iConfig.getParameter<edm::InputTag>(" l1TracksGTTInputTag" ))),
172172 outputVertexCollectionName_(iConfig.getParameter<std::string>(" l1TrackVertexCollectionName" )),
173- model_(iConfig.getParameter<std::string >(" model" )),
173+ model_(iConfig.getParameter<edm::FileInPath >(" model" )),
174174 runEmulation_(iConfig.getParameter<bool >(" runEmulation" )),
175175 cutSet_(iConfig.getParameter<edm::ParameterSet>(" cutSet" )),
176176 chi2rzMax_(cutSet_.getParameter<double >(" chi2rzMax" )),
@@ -341,7 +341,8 @@ void DisplacedVertexProducer::produce(edm::StreamID, edm::Event& iEvent, const e
341341 vertex.R_T ,
342342 vertex.cos_T ,
343343 vertex.delta_z * 0.125 };
344- conifer::BDT<ap_fixed<13 , 8 , AP_RND_CONV, AP_SAT>, ap_fixed<13 , 8 , AP_RND_CONV, AP_SAT>> bdt (this ->model_ );
344+ conifer::BDT<ap_fixed<13 , 8 , AP_RND_CONV, AP_SAT>, ap_fixed<13 , 8 , AP_RND_CONV, AP_SAT>> bdt (
345+ this ->model_ .fullPath ());
345346 std::vector<ap_fixed<13 , 8 , AP_RND_CONV, AP_SAT>> output = bdt.decision_function (Transformed_features);
346347 outputVertex.setScore (output.at (0 ).to_float ());
347348 } else {
@@ -365,7 +366,7 @@ void DisplacedVertexProducer::produce(edm::StreamID, edm::Event& iEvent, const e
365366 vertex.R_T ,
366367 vertex.cos_T ,
367368 float (vertex.delta_z * 0.125 )};
368- conifer::BDT<float , float > bdt (this ->model_ );
369+ conifer::BDT<float , float > bdt (this ->model_ . fullPath () );
369370 std::vector<float > output = bdt.decision_function (Transformed_features);
370371 outputVertex.setScore (output.at (0 ));
371372 }
0 commit comments