|
|
Go to the documentation of this file.
44 posCollection(muPosCollection),
45 negCollection(muNegCollection) {
60 map<oniaType, OniaParameters>::iterator iter =
oniaPar.begin();
61 map<oniaType, OniaParameters>::iterator iend =
oniaPar.end();
62 while (iter != iend) {
85 map<oniaType, OniaParameters>::iterator iter =
oniaPar.begin();
86 map<oniaType, OniaParameters>::iterator iend =
oniaPar.end();
87 while (iter != iend) {
89 ptSel.include(*par.
ptSel);
90 etaSel.include(*par.
etaSel);
113 vector<BPHPlusMinusConstCandPtr>& list =
oniaList[
type];
116 vector<BPHPlusMinusConstCandPtr> lsub;
118 for (
i = 0;
i <
n; ++
i) {
122 if ((dSel !=
nullptr) && (!dSel->
accept(*muPos)))
124 if ((dSel !=
nullptr) && (!dSel->
accept(*muNeg)))
126 if ((mSel !=
nullptr) && (!mSel->
accept(*ptr)))
128 if ((vSel !=
nullptr) && (!vSel->
accept(*ptr)))
130 if ((kSel !=
nullptr) && (!kSel->
accept(*ptr)))
132 lsub.push_back(list[
i]);
142 for (ic = 0; ic < nc; ++ic) {
235 map<oniaType, OniaParameters>::iterator iter =
oniaPar.begin();
236 map<oniaType, OniaParameters>::iterator iend =
oniaPar.end();
238 iter++->second.updated =
false;
266 vector<BPHPlusMinusConstCandPtr>& list =
oniaList[
type];
273 for (
i = 0;
i <
n; ++
i) {
static const double psi2MWidth
void setProbMin(double p)
set prob min
void setMassMax(double m)
void setEtaMax(double eta)
set eta max
virtual bool accept(const BPHKinematicFit &cand) const =0
accept function
void filter(const std::string &name, const BPHRecoSelect &sel) const
double getConstrMass(oniaType type) const
bool accept(const reco::Candidate &cand) const override
select muon
bool accept(const reco::Candidate &cand) const override
select muon
BPHOniaToMuMuBuilder(const edm::EventSetup &es, const BPHRecoBuilder::BPHGenericCollection *muPosCollection, const BPHRecoBuilder::BPHGenericCollection *muNegCollection)
void setParameters(oniaType type, double ptMin, double etaMax, double massMin, double massMax, double probMin, double mass, double sigma)
static const double jPsiMass
double getProbMin() const
get current prob min
double getPtMin() const
get current pt min
double getMassMin() const
get current mass cuts
static const double muonMSigma
void setPtMin(oniaType type, double pt)
set cuts
virtual bool accept(const BPHDecayMomentum &cand) const =0
accept function
double getConstrSigma(oniaType type) const
std::vector< BPHPlusMinusConstCandPtr > getList(oniaType type, BPHRecoSelect *dSel=nullptr, BPHMomentumSelect *mSel=nullptr, BPHVertexSelect *vSel=nullptr, BPHFitSelect *kSel=nullptr)
double getPtMin(oniaType type) const
get current cuts
virtual const reco::Candidate * getDaug(const std::string &name) const
static const double ups2Mass
void setMassMax(oniaType type, double m)
const edm::EventSetup * evSetup
static const double ups1MWidth
double getProbMin(oniaType type) const
void setMassMin(double m)
set mass cuts
double getMassMax(oniaType type) const
double getMassMin(oniaType type) const
double getEtaMax() const
get current eta max
std::map< oniaType, std::vector< BPHPlusMinusConstCandPtr > > oniaList
std::vector< BPHPlusMinusConstCandPtr > fullList
const BPHRecoBuilder::BPHGenericCollection * negCollection
void setMassMin(oniaType type, double m)
double getMassMax() const
void setConstr(oniaType type, double mass, double sigma)
static const double ups1Mass
void setProbMin(oniaType type, double p)
BPHGenericPtr< const BPHPlusMinusCandidate >::type BPHPlusMinusConstCandPtr
static const double phiMWidth
static const double phiMass
double getEtaMax(oniaType type) const
static std::vector< BPHPlusMinusConstCandPtr > build(const BPHRecoBuilder &builder, const std::string &nPos, const std::string &nNeg, double mass=-1, double msig=-1)
void setPtMin(double pt)
set pt min
static const double psi2Mass
virtual const reco::Candidate * originalReco(const reco::Candidate *daug) const
get the original particle from the clone
const BPHRecoBuilder::BPHGenericCollection * posCollection
std::vector< BPHPlusMinusConstCandPtr > build()
build resonance candidates
static const double muonMass
std::map< oniaType, OniaParameters > oniaPar
void setEtaMax(oniaType type, double eta)
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)
static const double ups2MWidth
bool accept(const BPHDecayMomentum &cand) const override
select particle
BPHMuonEtaSelect * etaSel
void extractList(oniaType type)
bool accept(const BPHDecayVertex &cand) const override
select vertex
virtual ~BPHOniaToMuMuBuilder()
BPHPlusMinusConstCandPtr getOriginalCandidate(const BPHRecoCandidate &cand)
static const double ups3MWidth
virtual bool accept(const BPHDecayVertex &cand) const =0
accept function
virtual bool accept(const reco::Candidate &cand) const =0
static const double ups3Mass
static const double jPsiMWidth