CMS 3D CMS Logo

Classes | Functions
MCAcceptanceAnalyzer.cc File Reference
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include <iostream>
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  MCAcceptanceAnalyzer
 
struct  ZSelector
 

Functions

const CandidatemcMuDaughter (const Candidate *c)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< MCAcceptanceAnalyzer > > s_filler__LINE__ ("MCAcceptanceAnalyzer")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< MCAcceptanceAnalyzer > > s_maker__LINE__ ("MCAcceptanceAnalyzer")
 

Function Documentation

◆ mcMuDaughter()

const Candidate* mcMuDaughter ( const Candidate c)

Definition at line 14 of file MCAcceptanceAnalyzer.cc.

14  {
15  unsigned int n = c->numberOfDaughters();
16  for (unsigned int i = 0; i < n; ++i) {
17  const Candidate* d = c->daughter(i);
18  if (fabs(d->pdgId()) == 13)
19  return d;
20  }
21  return nullptr;
22 }

References HltBtagPostValidation_cff::c, ztail::d, mps_fire::i, and dqmiodumpmetadata::n.

Referenced by MCAcceptanceAnalyzer::analyze(), and ZSelector::operator()().

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< MCAcceptanceAnalyzer > > s_filler__LINE__ ( "MCAcceptanceAnalyzer"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< MCAcceptanceAnalyzer > > s_maker__LINE__ ( "MCAcceptanceAnalyzer"  )
static
mps_fire.i
i
Definition: mps_fire.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
reco::Candidate
Definition: Candidate.h:27
ztail.d
d
Definition: ztail.py:151