CMS 3D CMS Logo

Functions
HeavyFlavorDQMAnalyzer.cc File Reference
#include "DQM/Physics/src/HeavyFlavorDQMAnalyzer.h"

Go to the source code of this file.

Functions

float getMass (pat::CompositeCandidate const &cand)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< HeavyFlavorDQMAnalyzer > > s_filler_0__LINE__ ("HeavyFlavorDQMAnalyzer")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< HeavyFlavorDQMAnalyzer > > s_maker__LINE__ ("HeavyFlavorDQMAnalyzer")
 
void throwMissingCollection (const char *requested, const char *missing)
 

Function Documentation

◆ getMass()

float getMass ( pat::CompositeCandidate const &  cand)

Definition at line 8 of file HeavyFlavorDQMAnalyzer.cc.

References EgHLTOffHistBins_cfi::mass.

Referenced by HeavyFlavorDQMAnalyzer::dqmAnalyze().

8  {
9  float mass = cand.mass();
10  if (cand.hasUserFloat("fitMass")) {
11  mass = cand.userFloat("fitMass");
12  }
13  return mass;
14 }

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< HeavyFlavorDQMAnalyzer > > s_filler_0__LINE__ ( "HeavyFlavorDQMAnalyzer"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< HeavyFlavorDQMAnalyzer > > s_maker__LINE__ ( "HeavyFlavorDQMAnalyzer"  )
static

◆ throwMissingCollection()

void throwMissingCollection ( const char *  requested,
const char *  missing 
)

Definition at line 3 of file HeavyFlavorDQMAnalyzer.cc.

References Exception, and combine::missing.

Referenced by HeavyFlavorDQMAnalyzer::HeavyFlavorDQMAnalyzer().

3  {
4  throw cms::Exception("Configuration") << "Requested plots for from the collection " << requested
5  << " also requires a collection in " << missing << std::endl;
6 }
missing
Definition: combine.py:5