CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 123 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 125 of file BPHHistoSpecificDecay.cc.

References reco::Candidate::daughter(), mps_fire::i, ResonanceBuilder::mass, reco::Candidate::mass(), dqmiodumpmetadata::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().

125  {
126  int i;
127  int n = cand.numberOfDaughters();
128  vector<const reco::Candidate*> v;
129  v.reserve(n);
130  for (i = 0; i < n; ++i) {
131  const reco::Candidate* dptr = cand.daughter(i);
132  float mass = dptr->mass();
133  if ((mass > massMin) && (mass < massMax))
134  v.push_back(dptr);
135  }
136  return v;
137  }
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