43 vector<BPHRecoConstCandPtr>
cList;
44 fill<BPHRecoCandidate>(
cList, builder,
mass, msig);
60 const vector<string>& nDaug =
daugNames();
62 int nd = nDaug.size();
63 for (
id = 0;
id < nd; ++
id) {
64 const string&
n = nDaug[
id];
70 int nc =
nComp.size();
71 for (ic = 0; ic < nc; ++ic) {
72 const string&
n =
nComp[ic];
virtual const reco::Candidate * originalReco(const reco::Candidate *daug) const
get the original particle from the clone
std::vector< BPHRecoConstCandPtr > cList
const BPHEventSetupWrapper * getEventSetup() const
retrieve EventSetup
virtual BPHRecoCandidate * clone(int level=-1) const
BPHGenericPtr< const BPHRecoCandidate >::type BPHRecoConstCandPtr
bool getIndependentFit(const std::string &name, double &mass, double &sigma) const
retrieve independent fit flag
void setIndependentFit(const std::string &name, bool flag=true, double mass=-1.0, double sigma=-1.0)
set a decaying daughter as an unique particle fitted independently
const std::string & getTrackSearchList(const reco::Candidate *cand) const
retrieve track search list
virtual const reco::Candidate * getDaug(const std::string &name) const
void fill(BPHRecoCandidate *ptr, int level) const override
virtual void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0)
BPHRecoCandidate(const BPHEventSetupWrapper *es, int daugNum=2, int compNum=2)
virtual const std::vector< std::string > & compNames() const
virtual BPHRecoConstCandPtr getComp(const std::string &name) const
virtual const std::vector< std::string > & daugNames() const
double constrMass() const
retrieve the constraint
void setConstraint(double mass, double sigma)
apply a mass constraint
double getMassSigma(const reco::Candidate *cand) const
retrieve particle mass sigma
virtual ParticleMass mass() const
static std::vector< BPHRecoConstCandPtr > build(const BPHRecoBuilder &builder, const BuilderParameters &par)
std::vector< std::string > nComp
double constrSigma() const