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, ResonanceBuilder::mass, reco::Candidate::mass(), bVertexFilter_cfi::massMax, gen::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().

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