CMS 3D CMS Logo

List of all members | Static Public Member Functions
BPHDaughters Class Reference

Static Public Member Functions

static vector< const reco::Candidate * > get (const pat::CompositeCandidate &cand, float massMin, float massMax)
 

Detailed Description

Definition at line 120 of file BPHHistoSpecificDecay.cc.

Member Function Documentation

◆ get()

static vector<const reco::Candidate*> BPHDaughters::get ( const pat::CompositeCandidate cand,
float  massMin,
float  massMax 
)
inlinestatic

Definition at line 122 of file BPHHistoSpecificDecay.cc.

References mps_fire::i, EgHLTOffHistBins_cfi::mass, reco::Candidate::mass(), vertexSelectForHeavyFlavorDQM_cfi::massMax, vertexSelectForHeavyFlavorDQM_cfi::massMin, create_idmaps::n, and findQualityFiles::v.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), BPHHistoSpecificDecay::analyze(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

122  {
123  int i;
124  int n = cand.numberOfDaughters();
125  vector<const reco::Candidate*> v;
126  v.reserve(n);
127  for (i = 0; i < n; ++i) {
128  const reco::Candidate* dptr = cand.daughter(i);
129  float mass = dptr->mass();
130  if ((mass > massMin) && (mass < massMax))
131  v.push_back(dptr);
132  }
133  return v;
134  }
virtual double mass() const =0
mass