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 61 of file BPHHistoSpecificDecay.cc.

Member Function Documentation

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

Definition at line 63 of file BPHHistoSpecificDecay.cc.

References reco::Candidate::daughter(), mps_fire::i, EgHLTOffHistBins_cfi::mass, reco::Candidate::mass(), ZMuMuCategoriesSequences_cff::massMax, dqmiodumpmetadata::n, and findQualityFiles::v.

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

63  {
64  int i;
65  int n = cand.numberOfDaughters();
66  vector<const reco::Candidate*> v;
67  v.reserve(n);
68  for (i = 0; i < n; ++i) {
69  const reco::Candidate* dptr = cand.daughter(i);
70  float mass = dptr->mass();
71  if ((mass > massMin) && (mass < massMax))
72  v.push_back(dptr);
73  }
74  return v;
75  }
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual double mass() const =0
mass
size_type numberOfDaughters() const override
number of daughters