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
virtual double mass() const =0
mass
double getMassMin() const
get current cuts
const BPHRecoBuilder::BPHGenericCollection * p2Collection
void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) override
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
const BPHRecoBuilder::BPHGenericCollection * p1Collection
std::vector< BPHPlusMinusConstCandPtr > cList
static type create(Args &&... args)
~BPHDecayToV0DiffMassBuilder() override
double getMassMax() const
virtual ParticleMass mass() const
double getProbMin() const
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