Go to the documentation of this file.
51 pCollection(posCollection),
52 nCollection(negCollection),
73 vector<Particle*> pList;
74 vector<Particle*> nList;
80 int nPos = pList.size();
81 int nNeg = nList.size();
89 for (iPos = 0; iPos < nPos; ++iPos) {
96 for (iNeg = 0; iNeg < nNeg; ++iNeg) {
99 if (fabs(
nt->dz() -
pt->dz()) > 1.0)
105 const float tx =
px + nx;
106 const float ty =
py + ny;
107 const float tz = pz + nz;
108 const float te = pe + ne;
109 const float m2 = (te * te) - ((tx * tx) + (ty * ty) + (tz * tz));
117 double mass = rc->composite().mass();
128 for (iPos = 0; iPos < nPos; ++iPos)
130 for (iNeg = 0; iNeg < nNeg; ++iNeg)
158 vector<Particle*>&
list) {
162 for (
i = 0;
i <
n; ++
i) {
164 int q =
cand.charge();
const reco::Track * track
double getMassMax() const
const reco::Candidate * cand
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
void addParticle(const BPHRecoBuilder::BPHGenericCollection *collection, int charge, std::vector< Particle * > &list)
static const reco::Track * getTrack(const reco::Candidate &rc, const char *modeList="cfhbpmnigset", char *modeFlag=nullptr)
const BPHRecoBuilder::BPHGenericCollection * pCollection
BPHDecayToChargedXXbarBuilder(const edm::EventSetup &es, const std::string &dPosName, const std::string &dNegName, double daugMass, double daugSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
const edm::EventSetup * evSetup
std::vector< BPHPlusMinusConstCandPtr > build()
build Phi candidates
~BPHDecayToChargedXXbarBuilder() override
const BPHRecoBuilder::BPHGenericCollection * nCollection
void setPtMin(double pt)
set cuts
std::vector< BPHPlusMinusConstCandPtr > recList
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*", "!HLTx*" if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL. It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of "!*" before the partial wildcard feature was incorporated). Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
bool accept(const BPHDecayVertex &cand) const override
select vertex
math::XYZTLorentzVector LorentzVector
Lorentz vector.
static type create(Args &&... args)
double getMassMin() const
get current cuts
void setEtaMax(double eta)