CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
BPHOniaToMuMuBuilder Class Reference

#include <BPHOniaToMuMuBuilder.h>

Inheritance diagram for BPHOniaToMuMuBuilder:
BPHDecayGenericBuilderBase BPHDecayGenericBuilder< BPHPlusMinusCandidate > BPHDecayGenericBuilderBase

Classes

struct  OniaParameters
 

Public Types

enum  oniaType {
  NRes, Phi, Psi1, Psi2,
  Ups, Ups1, Ups2, Ups3
}
 
- Public Types inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
typedef BPHPlusMinusCandidate ::const_pointer prod_ptr
 

Public Member Functions

 BPHOniaToMuMuBuilder (const BPHEventSetupWrapper &es, const BPHRecoBuilder::BPHGenericCollection *muPosCollection, const BPHRecoBuilder::BPHGenericCollection *muNegCollection)
 
 BPHOniaToMuMuBuilder (const BPHOniaToMuMuBuilder &x)=delete
 
void fillRecList () override
 build resonance candidates More...
 
double getConstrMass (oniaType type) const
 
double getConstrSigma (oniaType type) const
 
double getEtaMax (oniaType type) const
 
std::vector< BPHPlusMinusConstCandPtrgetList (oniaType type, BPHRecoSelect *dSel=nullptr, BPHMomentumSelect *mSel=nullptr, BPHVertexSelect *vSel=nullptr, BPHFitSelect *kSel=nullptr)
 
double getMassMax (oniaType type) const
 
double getMassMin (oniaType type) const
 
BPHPlusMinusConstCandPtr getOriginalCandidate (const BPHRecoCandidate &cand)
 
double getProbMin (oniaType type) const
 
double getPtMin (oniaType type) const
 get current cuts More...
 
BPHOniaToMuMuBuilderoperator= (const BPHOniaToMuMuBuilder &x)=delete
 
void setConstr (oniaType type, double mass, double sigma)
 
void setEtaMax (oniaType type, double eta)
 
void setMassMax (oniaType type, double m)
 
void setMassMin (oniaType type, double m)
 
void setProbMin (oniaType type, double p)
 
void setPtMin (oniaType type, double pt)
 set cuts More...
 
 ~BPHOniaToMuMuBuilder () override
 
- Public Member Functions inherited from BPHDecayGenericBuilderBase
 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
 
BPHDecayGenericBuilderBaseoperator= (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 ()
 
- Public Member Functions inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
 BPHDecayGenericBuilder (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs)
 
 BPHDecayGenericBuilder (const BPHDecayGenericBuilder &x)=delete
 
virtual std::vector< prod_ptrbuild ()
 build candidates More...
 
BPHDecayGenericBuilderoperator= (const BPHDecayGenericBuilder &x)=delete
 
 ~BPHDecayGenericBuilder () override=default
 

Private Member Functions

void extractList (oniaType type)
 
void setNotUpdated ()
 
void setParameters (oniaType type, double ptMin, double etaMax, double massMin, double massMax, double probMin, double mass, double sigma)
 

Private Attributes

std::string muNegName
 
std::string muPosName
 
const BPHRecoBuilder::BPHGenericCollectionnegCollection
 
std::map< oniaType, std::vector< BPHPlusMinusConstCandPtr > > oniaList
 
std::map< oniaType, OniaParametersoniaPar
 
const BPHRecoBuilder::BPHGenericCollectionposCollection
 

Additional Inherited Members

- Protected Member Functions inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
 BPHDecayGenericBuilder ()
 
- Protected Attributes inherited from BPHDecayGenericBuilderBase
BPHChi2Selectchi2Sel
 
const BPHEventSetupWrapperevSetup
 
BPHMassSelectmassSel
 
BPHMassFitSelectmFitSel
 
double minPDiff
 
bool outdated
 
- Protected Attributes inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
std::vector< prod_ptrrecList
 

Detailed Description

Description: Class to build Psi(1,2) and Upsilon(1,2,3) candidates

Author
Paolo Ronchese INFN Padova

Definition at line 45 of file BPHOniaToMuMuBuilder.h.

Member Enumeration Documentation

◆ oniaType

Constructor & Destructor Documentation

◆ BPHOniaToMuMuBuilder() [1/2]

BPHOniaToMuMuBuilder::BPHOniaToMuMuBuilder ( const BPHEventSetupWrapper es,
const BPHRecoBuilder::BPHGenericCollection muPosCollection,
const BPHRecoBuilder::BPHGenericCollection muNegCollection 
)

Constructor

Definition at line 38 of file BPHOniaToMuMuBuilder.cc.

References BPHParticleMasses::jPsiMass, BPHParticleMasses::jPsiMWidth, NRes, BPHDecayGenericBuilderBase::outdated, Phi, BPHParticleMasses::phiMass, BPHParticleMasses::phiMWidth, Psi1, Psi2, BPHParticleMasses::psi2Mass, BPHParticleMasses::psi2MWidth, setParameters(), Ups, Ups1, BPHParticleMasses::ups1Mass, BPHParticleMasses::ups1MWidth, Ups2, BPHParticleMasses::ups2Mass, BPHParticleMasses::ups2MWidth, Ups3, BPHParticleMasses::ups3Mass, and BPHParticleMasses::ups3MWidth.

42  muPosName("MuPos"),
43  muNegName("MuNeg"),
44  posCollection(muPosCollection),
45  negCollection(muNegCollection) {
46  setParameters(NRes, 2.0, 10.0, 0.01, 50.00, 2.0, -1.0, 0.0);
50  setParameters(Ups, 2.0, 10.0, 6.00, 12.00, 0.0, -1.0, 0.0);
54  outdated = true;
55 }
static const double ups2MWidth
const BPHRecoBuilder::BPHGenericCollection * posCollection
static const double ups3Mass
static const double ups2Mass
static const double jPsiMWidth
static const double jPsiMass
void setParameters(oniaType type, double ptMin, double etaMax, double massMin, double massMax, double probMin, double mass, double sigma)
static const double ups1MWidth
static const double phiMWidth
static const double phiMass
static const double psi2Mass
static const double ups1Mass
const BPHRecoBuilder::BPHGenericCollection * negCollection
static const double ups3MWidth
static const double psi2MWidth

◆ BPHOniaToMuMuBuilder() [2/2]

BPHOniaToMuMuBuilder::BPHOniaToMuMuBuilder ( const BPHOniaToMuMuBuilder x)
delete

◆ ~BPHOniaToMuMuBuilder()

BPHOniaToMuMuBuilder::~BPHOniaToMuMuBuilder ( )
override

Destructor

Definition at line 60 of file BPHOniaToMuMuBuilder.cc.

References BPHOniaToMuMuBuilder::OniaParameters::chi2Sel, BPHOniaToMuMuBuilder::OniaParameters::etaSel, BPHOniaToMuMuBuilder::OniaParameters::massSel, oniaPar, and BPHOniaToMuMuBuilder::OniaParameters::ptSel.

60  {
61  map<oniaType, OniaParameters>::iterator iter = oniaPar.begin();
62  map<oniaType, OniaParameters>::iterator iend = oniaPar.end();
63  while (iter != iend) {
64  OniaParameters& par = iter++->second;
65  delete par.ptSel;
66  delete par.etaSel;
67  delete par.massSel;
68  delete par.chi2Sel;
69  }
70 }
std::map< oniaType, OniaParameters > oniaPar

Member Function Documentation

◆ extractList()

void BPHOniaToMuMuBuilder::extractList ( oniaType  type)
private

Definition at line 284 of file BPHOniaToMuMuBuilder.cc.

References BPHMuonPtSelect::accept(), BPHMuonEtaSelect::accept(), BPHMassSelect::accept(), BPHChi2Select::accept(), BPHDecayGenericBuilder< BPHPlusMinusCandidate >::build(), BPHOniaToMuMuBuilder::OniaParameters::chi2Sel, BPHOniaToMuMuBuilder::OniaParameters::etaSel, BPHDecayGenericBuilderBase::evSetup, mps_fire::i, BPHOniaToMuMuBuilder::OniaParameters::mass, BPHOniaToMuMuBuilder::OniaParameters::massSel, BPHParticleMasses::muonMass, BPHParticleMasses::muonMSigma, dqmiodumpmetadata::n, np, oniaList, oniaPar, BPHOniaToMuMuBuilder::OniaParameters::outdated, BPHOniaToMuMuBuilder::OniaParameters::ptSel, BPHDecayGenericBuilder< BPHPlusMinusCandidate >::recList, and BPHOniaToMuMuBuilder::OniaParameters::sigma.

Referenced by getList().

284  {
285  build();
286  OniaParameters& par = oniaPar[type];
287  vector<BPHPlusMinusConstCandPtr>& list = oniaList[type];
288  if (!par.outdated)
289  return;
290  int i;
291  int n = recList.size();
292  list.clear();
293  list.reserve(n);
294  for (i = 0; i < n; ++i) {
296  const reco::Candidate* mcPos = ptr->getDaug("MuPos");
297  const reco::Candidate* mcNeg = ptr->getDaug("MuNeg");
298  const reco::Candidate* muPos = ptr->originalReco(mcPos);
299  const reco::Candidate* muNeg = ptr->originalReco(mcNeg);
300  if (!par.massSel->accept(*ptr))
301  continue;
302  if (!par.ptSel->accept(*muPos))
303  continue;
304  if (!par.etaSel->accept(*muPos))
305  continue;
306  if (!par.ptSel->accept(*muNeg))
307  continue;
308  if (!par.etaSel->accept(*muNeg))
309  continue;
310  if (!par.chi2Sel->accept(*ptr))
311  continue;
313  np->add("MuPos", muPos, ptr->getTrackSearchList(mcPos), BPHParticleMasses::muonMass, BPHParticleMasses::muonMSigma);
314  np->add("MuNeg", muNeg, ptr->getTrackSearchList(mcNeg), BPHParticleMasses::muonMass, BPHParticleMasses::muonMSigma);
315  if (par.mass > 0.0)
316  np->setConstraint(par.mass, par.sigma);
317  list.push_back(BPHPlusMinusConstCandPtr(np));
318  }
319  par.outdated = false;
320  return;
321 }
static const double muonMSigma
virtual std::vector< prod_ptr > build()
build candidates
const BPHEventSetupWrapper * evSetup
std::map< oniaType, std::vector< BPHPlusMinusConstCandPtr > > oniaList
BPHGenericPtr< const BPHPlusMinusCandidate >::type BPHPlusMinusConstCandPtr
int np
Definition: AMPTWrapper.h:43
static const double muonMass
std::map< oniaType, OniaParameters > oniaPar

◆ fillRecList()

void BPHOniaToMuMuBuilder::fillRecList ( )
overridevirtual

build resonance candidates

Operations

Implements BPHDecayGenericBuilderBase.

Definition at line 75 of file BPHOniaToMuMuBuilder.cc.

References accept(), BPHRecoBuilder::add(), BPHPlusMinusCandidate::build(), DummyCfis::c, BPHOniaToMuMuBuilder::OniaParameters::chi2Sel, MillePedeFileConverter_cfg::e, ALCARECOTkAlBeamHalo_cff::etaMax, BPHOniaToMuMuBuilder::OniaParameters::etaSel, BPHDecayGenericBuilderBase::evSetup, BPHRecoBuilder::filter(), BPHParticleEtaSelect::getEtaMax(), BPHParticlePtSelect::getPtMin(), BPHOniaToMuMuBuilder::OniaParameters::massSel, muNegName, BPHParticleMasses::muonMass, BPHParticleMasses::muonMSigma, muPosName, dqmiodumpmetadata::n, negCollection, NRes, oniaPar, BPHSelectOperation::or_mode, AlCaHLTBitMon_ParallelJobs::p, posCollection, ptMin, BPHOniaToMuMuBuilder::OniaParameters::ptSel, BPHDecayGenericBuilder< BPHPlusMinusCandidate >::recList, and alignCSCRings::s.

75  {
76  double ptMin = 9.99e+30;
77  double etaMax = -1.0;
80 
81  map<oniaType, OniaParameters>::iterator iter = oniaPar.begin();
82  map<oniaType, OniaParameters>::iterator iend = oniaPar.end();
83  while (iter != iend) {
84  OniaParameters& par = iter++->second;
85  double ptCur = par.ptSel->getPtMin();
86  double etaCur = par.etaSel->getEtaMax();
87  if (ptCur < ptMin)
88  ptMin = ptCur;
89  if (etaCur > etaMax)
90  etaMax = etaCur;
91  mSel.include(*par.massSel);
92  vSel.include(*par.chi2Sel);
93  }
94  BPHMuonPtSelect ptSel(ptMin);
95  BPHMuonEtaSelect etaSel(etaMax);
96 
97  BPHRecoBuilder bOnia(*evSetup);
100  bOnia.filter(muPosName, ptSel);
101  bOnia.filter(muNegName, ptSel);
102  bOnia.filter(muPosName, etaSel);
103  bOnia.filter(muNegName, etaSel);
104  bOnia.filter(mSel);
105  bOnia.filter(vSel);
106 
108 
109  decltype(recList) tmpList;
110  tmpList.reserve(recList.size());
111  for (auto& c : recList) {
112  auto p = c->originalReco(c->getDaug(muPosName));
113  auto n = c->originalReco(c->getDaug(muNegName));
114  bool accept = false;
115  for (auto& e : oniaPar) {
116  if (e.first == NRes)
117  continue;
118  auto& s = e.second;
119  if ((s.ptSel->accept(*p)) && (s.ptSel->accept(*n)) && (s.etaSel->accept(*p)) && (s.etaSel->accept(*n)) &&
120  (s.massSel->accept(*c)) && (s.chi2Sel->accept(*c))) {
121  accept = true;
122  break;
123  }
124  }
125  if (accept)
126  tmpList.push_back(c);
127  }
128  recList = tmpList;
129 
130  return;
131 }
const BPHRecoBuilder::BPHGenericCollection * posCollection
static const double muonMSigma
constexpr float ptMin
static std::vector< BPHPlusMinusConstCandPtr > build(const BPHRecoBuilder &builder, const BuilderParameters &par)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
const BPHEventSetupWrapper * evSetup
const BPHRecoBuilder::BPHGenericCollection * negCollection
static const double muonMass
std::map< oniaType, OniaParameters > oniaPar

◆ getConstrMass()

double BPHOniaToMuMuBuilder::getConstrMass ( oniaType  type) const

Definition at line 247 of file BPHOniaToMuMuBuilder.cc.

References BPHOniaToMuMuBuilder::OniaParameters::mass, and oniaPar.

Referenced by BPHWriteSpecificDecay::fill().

247  {
248  const OniaParameters& par = oniaPar.at(type);
249  return par.mass;
250 }
std::map< oniaType, OniaParameters > oniaPar

◆ getConstrSigma()

double BPHOniaToMuMuBuilder::getConstrSigma ( oniaType  type) const

Definition at line 252 of file BPHOniaToMuMuBuilder.cc.

References oniaPar, and BPHOniaToMuMuBuilder::OniaParameters::sigma.

Referenced by BPHWriteSpecificDecay::fill().

252  {
253  const OniaParameters& par = oniaPar.at(type);
254  return par.sigma;
255 }
std::map< oniaType, OniaParameters > oniaPar

◆ getEtaMax()

double BPHOniaToMuMuBuilder::getEtaMax ( oniaType  type) const

Definition at line 227 of file BPHOniaToMuMuBuilder.cc.

References BPHOniaToMuMuBuilder::OniaParameters::etaSel, BPHParticleEtaSelect::getEtaMax(), and oniaPar.

227  {
228  const OniaParameters& par = oniaPar.at(type);
229  return par.etaSel->getEtaMax();
230 }
std::map< oniaType, OniaParameters > oniaPar

◆ getList()

vector< BPHPlusMinusConstCandPtr > BPHOniaToMuMuBuilder::getList ( oniaType  type,
BPHRecoSelect dSel = nullptr,
BPHMomentumSelect mSel = nullptr,
BPHVertexSelect vSel = nullptr,
BPHFitSelect kSel = nullptr 
)

extract list of candidates of specific type candidates are rebuilt applying corresponding mass constraint

Definition at line 133 of file BPHOniaToMuMuBuilder.cc.

References BPHMomentumSelect::accept(), BPHVertexSelect::accept(), BPHFitSelect::accept(), BPHRecoSelect::accept(), extractList(), mps_fire::i, muNegName, muPosName, dqmiodumpmetadata::n, and oniaList.

Referenced by BPHWriteSpecificDecay::fill().

134  {
135  extractList(type);
136  vector<BPHPlusMinusConstCandPtr>& list = oniaList[type];
137  int i;
138  int n = list.size();
139  vector<BPHPlusMinusConstCandPtr> lsub;
140  lsub.reserve(n);
141  for (i = 0; i < n; ++i) {
142  BPHPlusMinusConstCandPtr ptr = list[i];
143  const reco::Candidate* muPos = ptr->originalReco(ptr->getDaug(muPosName));
144  const reco::Candidate* muNeg = ptr->originalReco(ptr->getDaug(muNegName));
145  if ((dSel != nullptr) && (!dSel->accept(*muPos)))
146  continue;
147  if ((dSel != nullptr) && (!dSel->accept(*muNeg)))
148  continue;
149  if ((mSel != nullptr) && (!mSel->accept(*ptr)))
150  continue;
151  if ((vSel != nullptr) && (!vSel->accept(*ptr)))
152  continue;
153  if ((kSel != nullptr) && (!kSel->accept(*ptr)))
154  continue;
155  lsub.push_back(list[i]);
156  }
157  return lsub;
158 }
virtual bool accept(const BPHKinematicFit &cand) const =0
accept function
virtual bool accept(const BPHDecayMomentum &cand) const =0
accept function
std::map< oniaType, std::vector< BPHPlusMinusConstCandPtr > > oniaList
BPHGenericPtr< const BPHPlusMinusCandidate >::type BPHPlusMinusConstCandPtr
void extractList(oniaType type)
virtual bool accept(const BPHDecayVertex &cand) const =0
accept function
virtual bool accept(const reco::Candidate &cand) const =0

◆ getMassMax()

double BPHOniaToMuMuBuilder::getMassMax ( oniaType  type) const

Definition at line 237 of file BPHOniaToMuMuBuilder.cc.

References BPHMassCuts::getMassMax(), BPHOniaToMuMuBuilder::OniaParameters::massSel, and oniaPar.

237  {
238  const OniaParameters& par = oniaPar.at(type);
239  return par.massSel->getMassMax();
240 }
std::map< oniaType, OniaParameters > oniaPar

◆ getMassMin()

double BPHOniaToMuMuBuilder::getMassMin ( oniaType  type) const

Definition at line 232 of file BPHOniaToMuMuBuilder.cc.

References BPHMassCuts::getMassMin(), BPHOniaToMuMuBuilder::OniaParameters::massSel, and oniaPar.

232  {
233  const OniaParameters& par = oniaPar.at(type);
234  return par.massSel->getMassMin();
235 }
std::map< oniaType, OniaParameters > oniaPar

◆ getOriginalCandidate()

BPHPlusMinusConstCandPtr BPHOniaToMuMuBuilder::getOriginalCandidate ( const BPHRecoCandidate cand)

retrieve original candidate from a copy with the same daughters obtained through "getList"

Definition at line 160 of file BPHOniaToMuMuBuilder.cc.

References BPHDecayMomentum::getDaug(), muNegName, muPosName, BPHDecayMomentum::originalReco(), and BPHDecayGenericBuilder< BPHPlusMinusCandidate >::recList.

160  {
161  const reco::Candidate* mp = cand.originalReco(cand.getDaug(muPosName));
162  const reco::Candidate* mn = cand.originalReco(cand.getDaug(muNegName));
163  int nc = recList.size();
164  int ic;
165  for (ic = 0; ic < nc; ++ic) {
167  const BPHPlusMinusCandidate* pmc = pmp.get();
168  if (pmc->originalReco(pmc->getDaug(muPosName)) != mp)
169  continue;
170  if (pmc->originalReco(pmc->getDaug(muNegName)) != mn)
171  continue;
172  return pmp;
173  }
174  return BPHPlusMinusConstCandPtr(nullptr);
175 }
virtual const reco::Candidate * originalReco(const reco::Candidate *daug) const
get the original particle from the clone
virtual const reco::Candidate * getDaug(const std::string &name) const
BPHGenericPtr< const BPHPlusMinusCandidate >::type BPHPlusMinusConstCandPtr

◆ getProbMin()

double BPHOniaToMuMuBuilder::getProbMin ( oniaType  type) const

Definition at line 242 of file BPHOniaToMuMuBuilder.cc.

References BPHOniaToMuMuBuilder::OniaParameters::chi2Sel, BPHChi2Select::getProbMin(), and oniaPar.

242  {
243  const OniaParameters& par = oniaPar.at(type);
244  return par.chi2Sel->getProbMin();
245 }
std::map< oniaType, OniaParameters > oniaPar

◆ getPtMin()

double BPHOniaToMuMuBuilder::getPtMin ( oniaType  type) const

get current cuts

Definition at line 222 of file BPHOniaToMuMuBuilder.cc.

References BPHParticlePtSelect::getPtMin(), oniaPar, and BPHOniaToMuMuBuilder::OniaParameters::ptSel.

222  {
223  const OniaParameters& par = oniaPar.at(type);
224  return par.ptSel->getPtMin();
225 }
std::map< oniaType, OniaParameters > oniaPar

◆ operator=()

BPHOniaToMuMuBuilder& BPHOniaToMuMuBuilder::operator= ( const BPHOniaToMuMuBuilder x)
delete

◆ setConstr()

void BPHOniaToMuMuBuilder::setConstr ( oniaType  type,
double  mass,
double  sigma 
)

Definition at line 213 of file BPHOniaToMuMuBuilder.cc.

References EgHLTOffHistBins_cfi::mass, BPHOniaToMuMuBuilder::OniaParameters::mass, oniaPar, setNotUpdated(), and BPHOniaToMuMuBuilder::OniaParameters::sigma.

Referenced by BPHWriteSpecificDecay::fill().

213  {
214  setNotUpdated();
215  OniaParameters& par = oniaPar[type];
216  par.mass = mass;
217  par.sigma = sigma;
218  return;
219 }
std::map< oniaType, OniaParameters > oniaPar

◆ setEtaMax()

void BPHOniaToMuMuBuilder::setEtaMax ( oniaType  type,
double  eta 
)

Definition at line 185 of file BPHOniaToMuMuBuilder.cc.

References PVValHelper::eta, BPHOniaToMuMuBuilder::OniaParameters::etaSel, oniaPar, BPHParticleEtaSelect::setEtaMax(), and setNotUpdated().

Referenced by BPHWriteSpecificDecay::fill().

185  {
186  setNotUpdated();
187  OniaParameters& par = oniaPar[type];
188  par.etaSel->setEtaMax(eta);
189  return;
190 }
std::map< oniaType, OniaParameters > oniaPar

◆ setMassMax()

void BPHOniaToMuMuBuilder::setMassMax ( oniaType  type,
double  m 
)

◆ setMassMin()

void BPHOniaToMuMuBuilder::setMassMin ( oniaType  type,
double  m 
)

◆ setNotUpdated()

void BPHOniaToMuMuBuilder::setNotUpdated ( )
private

Definition at line 257 of file BPHOniaToMuMuBuilder.cc.

References oniaPar.

Referenced by setConstr(), setEtaMax(), setMassMax(), setMassMin(), setProbMin(), and setPtMin().

257  {
258  map<oniaType, OniaParameters>::iterator iter = oniaPar.begin();
259  map<oniaType, OniaParameters>::iterator iend = oniaPar.end();
260  while (iter != iend)
261  iter++->second.outdated = true;
262  return;
263 }
std::map< oniaType, OniaParameters > oniaPar

◆ setParameters()

void BPHOniaToMuMuBuilder::setParameters ( oniaType  type,
double  ptMin,
double  etaMax,
double  massMin,
double  massMax,
double  probMin,
double  mass,
double  sigma 
)
private

Definition at line 265 of file BPHOniaToMuMuBuilder.cc.

References BPHOniaToMuMuBuilder::OniaParameters::chi2Sel, ALCARECOTkAlBeamHalo_cff::etaMax, BPHOniaToMuMuBuilder::OniaParameters::etaSel, EgHLTOffHistBins_cfi::mass, BPHOniaToMuMuBuilder::OniaParameters::mass, vertexSelectForHeavyFlavorDQM_cfi::massMax, vertexSelectForHeavyFlavorDQM_cfi::massMin, BPHOniaToMuMuBuilder::OniaParameters::massSel, oniaPar, BPHOniaToMuMuBuilder::OniaParameters::outdated, vertexSelectForHeavyFlavorDQM_cfi::probMin, ptMin, BPHOniaToMuMuBuilder::OniaParameters::ptSel, and BPHOniaToMuMuBuilder::OniaParameters::sigma.

Referenced by BPHOniaToMuMuBuilder().

272  {
273  OniaParameters& par = oniaPar[type];
274  par.ptSel = new BPHMuonPtSelect(ptMin);
275  par.etaSel = new BPHMuonEtaSelect(etaMax);
276  par.massSel = new BPHMassSelect(massMin, massMax);
277  par.chi2Sel = new BPHChi2Select(probMin);
278  par.mass = mass;
279  par.sigma = sigma;
280  par.outdated = true;
281  return;
282 }
constexpr float ptMin
std::map< oniaType, OniaParameters > oniaPar

◆ setProbMin()

void BPHOniaToMuMuBuilder::setProbMin ( oniaType  type,
double  p 
)

Definition at line 206 of file BPHOniaToMuMuBuilder.cc.

References BPHOniaToMuMuBuilder::OniaParameters::chi2Sel, oniaPar, AlCaHLTBitMon_ParallelJobs::p, setNotUpdated(), and BPHChi2Select::setProbMin().

Referenced by BPHWriteSpecificDecay::fill().

206  {
207  setNotUpdated();
208  OniaParameters& par = oniaPar[type];
209  par.chi2Sel->setProbMin(p);
210  return;
211 }
std::map< oniaType, OniaParameters > oniaPar

◆ setPtMin()

void BPHOniaToMuMuBuilder::setPtMin ( oniaType  type,
double  pt 
)

set cuts

Definition at line 178 of file BPHOniaToMuMuBuilder.cc.

References oniaPar, DiDispStaMuonMonitor_cfi::pt, BPHOniaToMuMuBuilder::OniaParameters::ptSel, setNotUpdated(), and BPHParticlePtSelect::setPtMin().

Referenced by BPHWriteSpecificDecay::fill().

178  {
179  setNotUpdated();
180  OniaParameters& par = oniaPar[type];
181  par.ptSel->setPtMin(pt);
182  return;
183 }
std::map< oniaType, OniaParameters > oniaPar

Member Data Documentation

◆ muNegName

std::string BPHOniaToMuMuBuilder::muNegName
private

Definition at line 100 of file BPHOniaToMuMuBuilder.h.

Referenced by fillRecList(), getList(), and getOriginalCandidate().

◆ muPosName

std::string BPHOniaToMuMuBuilder::muPosName
private

Definition at line 99 of file BPHOniaToMuMuBuilder.h.

Referenced by fillRecList(), getList(), and getOriginalCandidate().

◆ negCollection

const BPHRecoBuilder::BPHGenericCollection* BPHOniaToMuMuBuilder::negCollection
private

Definition at line 103 of file BPHOniaToMuMuBuilder.h.

Referenced by fillRecList().

◆ oniaList

std::map<oniaType, std::vector<BPHPlusMinusConstCandPtr> > BPHOniaToMuMuBuilder::oniaList
private

Definition at line 116 of file BPHOniaToMuMuBuilder.h.

Referenced by extractList(), and getList().

◆ oniaPar

std::map<oniaType, OniaParameters> BPHOniaToMuMuBuilder::oniaPar
private

◆ posCollection

const BPHRecoBuilder::BPHGenericCollection* BPHOniaToMuMuBuilder::posCollection
private

Definition at line 102 of file BPHOniaToMuMuBuilder.h.

Referenced by fillRecList().