49 expMass(expectedMass) {}
58 const std::vector<reco::VertexCompositeCandidate>* v0Collection,
66 expMass(expectedMass) {}
76 const std::vector<reco::VertexCompositePtrCandidate>* vpCollection,
84 expMass(expectedMass) {}
145 if ((m1 > mcut) && (m2 < mcut))
147 if ((m1 < mcut) && (m2 > mcut))
150 return (fabs(mv0 - cptrX->
mass()) < fabs(mv0 - cptrY->
mass()) ? candX : candY);
void buildFromBPHGenericCollection() override
build candidates and link to V0
BPHPlusMinusCandidatePtr buildCandidate(const reco::Candidate *c1, const reco::Candidate *c2, const void *v0, v0Type type) override
double getMassMax() const
void setTrk1PtMin(double pt)
set cuts
virtual double mass() const =0
mass
void setTrk1EtaMax(double eta)
virtual ParticleMass mass() const
const BPHRecoBuilder::BPHGenericCollection * p2Collection
void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) override
void setMassRange(double mMin, double mMax)
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
double getMassMin() const
get current cuts
const BPHRecoBuilder::BPHGenericCollection * p1Collection
std::vector< BPHPlusMinusConstCandPtr > cList
~BPHDecayToV0DiffMassBuilder() override
void setTrk2PtMin(double pt)
void setTrk2EtaMax(double eta)
static type create(Args &&...args)
double getProbMin() const
std::vector< BPHPlusMinusConstCandPtr > build()
build candidates
BPHDecayToV0DiffMassBuilder(const edm::EventSetup &es, const std::string &d1Name, double d1Mass, double d1Sigma, const std::string &d2Name, double d2Mass, double d2Sigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection, double expectedMass)
const edm::EventSetup * evSetup
void setProbMin(double p)