|
| BPHDecayToChargedXXbarBuilder (const BPHEventSetupWrapper &es, const std::string &dPosName, const std::string &dNegName, double daugMass, double daugSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection) |
|
| BPHDecayToChargedXXbarBuilder (const BPHDecayToChargedXXbarBuilder &x)=delete |
|
double | getDzMax () const |
|
double | getEtaMax () const |
|
double | getPtMin () const |
| get current cuts More...
|
|
BPHDecayToChargedXXbarBuilder & | operator= (const BPHDecayToChargedXXbarBuilder &x)=delete |
|
void | setDzMax (double dz) |
|
void | setEtaMax (double eta) |
|
void | setPtMin (double pt) |
| set cuts More...
|
|
| ~BPHDecayToChargedXXbarBuilder () override=default |
|
| BPHDecayGenericBuilderBase () |
|
| BPHDecayGenericBuilderBase (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs=new BPHMassFitSelect(-2.0e+06, -1.0e+06)) |
|
| BPHDecayGenericBuilderBase (const BPHDecayGenericBuilderBase &x)=delete |
|
double | getMassFitMax () const |
|
double | getMassFitMin () const |
|
double | getMassMax () const |
|
double | getMassMin () const |
| get current cuts More...
|
|
double | getMinPDiff () |
|
double | getProbMin () const |
|
BPHDecayGenericBuilderBase & | operator= (const BPHDecayGenericBuilderBase &x)=delete |
|
void | setMassFitMax (double m) |
|
void | setMassFitMin (double m) |
|
void | setMassFitRange (double mMin, double mMax) |
|
void | setMassMax (double m) |
|
void | setMassMin (double m) |
| set cuts More...
|
|
void | setMassRange (double mMin, double mMax) |
|
void | setMinPDiff (double mpd) |
| track min p difference More...
|
|
void | setProbMin (double p) |
|
virtual | ~BPHDecayGenericBuilderBase () |
|
| BPHDecayGenericBuilder (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs) |
|
| BPHDecayGenericBuilder (const BPHDecayGenericBuilder &x)=delete |
|
virtual std::vector< prod_ptr > | build () |
| build candidates More...
|
|
BPHDecayGenericBuilder & | operator= (const BPHDecayGenericBuilder &x)=delete |
|
| ~BPHDecayGenericBuilder () override=default |
|
Description: Class to build a decay to an oppositely charged particle-antiparticle pair
- Author
- Paolo Ronchese INFN Padova
Definition at line 42 of file BPHDecayToChargedXXbarBuilder.h.
void BPHDecayToChargedXXbarBuilder::fillRecList |
( |
| ) |
|
|
overrideprotectedvirtual |
build candidates
Implements BPHDecayGenericBuilderBase.
Reimplemented in BPHDecayToV0SameMassBuilder.
Definition at line 82 of file BPHDecayToChargedXXbarBuilder.cc.
References BPHChi2Select::accept(), addParticle(), BPHDecayToChargedXXbarBuilder::Particle::cand, BPHDecayGenericBuilderBase::chi2Sel, BPHGenericPtr< T >::create(), dMass, dSigma, BPHDecayToChargedXXbarBuilder::Particle::en, BPHDecayGenericBuilderBase::evSetup, BPHDecayGenericBuilderBase::getMassMax(), BPHDecayGenericBuilderBase::getMassMin(), callgraph::m2, EgHLTOffHistBins_cfi::mass, vertexSelectForHeavyFlavorDQM_cfi::massMax, vertexSelectForHeavyFlavorDQM_cfi::massMin, nCollection, compareTotals::ne, nName, nt, pCollection, pName, DiDispStaMuonMonitor_cfi::pt, multPhiCorr_741_25nsDY_cfi::px, BPHDecayToChargedXXbarBuilder::Particle::px, multPhiCorr_741_25nsDY_cfi::py, BPHDecayToChargedXXbarBuilder::Particle::py, BPHDecayToChargedXXbarBuilder::Particle::pz, BPHDecayGenericBuilder< BPHPlusMinusCandidate >::recList, and BPHDecayToChargedXXbarBuilder::Particle::track.
Referenced by BPHDecayToV0SameMassBuilder::buildFromBPHGenericCollection().
85 vector<Particle*> pList;
86 vector<Particle*> nList;
92 int nPos = pList.size();
93 int nNeg = nList.size();
101 for (iPos = 0; iPos < nPos; ++iPos) {
108 for (iNeg = 0; iNeg < nNeg; ++iNeg) {
111 if (fabs(
nt->dz() -
pt->dz()) > 1.0)
117 const float tx =
px + nx;
118 const float ty =
py + ny;
119 const float tz = pz + nz;
120 const float te = pe +
ne;
121 const float m2 = (te * te) - ((tx * tx) + (ty * ty) + (tz * tz));
129 double mass = rc->composite().mass();
140 for (iPos = 0; iPos < nPos; ++iPos)
142 for (iNeg = 0; iNeg < nNeg; ++iNeg)
bool accept(const BPHDecayVertex &cand) const override
select vertex
const BPHEventSetupWrapper * evSetup
double getMassMin() const
get current cuts
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
const BPHRecoBuilder::BPHGenericCollection * pCollection
static type create(Args &&... args)
std::vector< prod_ptr > recList
void addParticle(const BPHRecoBuilder::BPHGenericCollection *collection, int charge, std::vector< Particle *> &list)
const BPHRecoBuilder::BPHGenericCollection * nCollection
double getMassMax() const