59 desc.addUntracked<
bool>(
"verbose",
false);
61 desc.addUntracked<
bool>(
"debug",
false);
63 desc.add<
double>(
"dcaCut", 0.5);
65 desc.add<
double>(
"primaryVertexCut", 1.8);
68 desc.add<
double>(
"dcaPInnerHitCut", 1000.0);
78 pset.add<
double>(
"nChi2_max", 5.);
79 pset.add<
double>(
"pt_min", 0.2);
83 pset.add<
double>(
"pt_min_prim", 0.8);
84 pset.add<
double>(
"dxy", 0.2);
85 pset.add<
double>(
"qoverpError_max", 1.0e+7);
89 descriptions.
add(
"particleFlowDisplacedVertexCandidate",
desc);
116 double primaryVertexCut = iConfig.
getParameter<
double>(
"primaryVertexCut");
119 double dcaPInnerHitCut = iConfig.
getParameter<
double>(
"dcaPInnerHitCut");
124 produces<reco::PFDisplacedVertexCandidateCollection>();
134 LogDebug(
"PFDisplacedVertexCandidateProducer")
135 <<
"START event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run() << endl;
159 LogInfo(
"PFDisplacedVertexCandidateProducer") <<
str.str() << endl;
162 std::unique_ptr<reco::PFDisplacedVertexCandidateCollection> pOutputDisplacedVertexCandidateCollection(
167 LogDebug(
"PFDisplacedVertexCandidateProducer")
168 <<
"STOP event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run() << endl;
void setInput(const edm::Handle< reco::TrackCollection > &trackh, const MagneticField *magField)
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::EDGetTokenT< reco::TrackCollection > inputTagTracks_
Reco Tracks used to spot the nuclear interactions.
void setPrimaryVertex(edm::Handle< reco::VertexCollection > mainVertexHandle, edm::Handle< reco::BeamSpot > beamSpotHandle)
PFDisplacedVertexCandidateFinder pfDisplacedVertexCandidateFinder_
Displaced Vertex Candidates finder.
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::BeamSpot > inputTagBeamSpot_
void setDebug(bool debug)
sets debug printout flag
void setParameters(double dcaCut, double primaryVertexCut, double dcaPInnerHitCut, const edm::ParameterSet &ps_trk)
---—— Set different algo parameters —— ///
edm::EDGetTokenT< reco::VertexCollection > inputTagMainVertex_
Input tag for main vertex to cut of dxy of secondary tracks.
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
Log< level::Info, false > LogInfo
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
PFDisplacedVertexCandidateProducer(const edm::ParameterSet &)
Producer for DisplacedVertices.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void findDisplacedVertexCandidates()
-----— Main function which find vertices -----— ///
std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > transferVertexCandidates()
~PFDisplacedVertexCandidateProducer() override