CMS 3D CMS Logo

Typedefs | Functions
BDHadronTrackMonitoringAnalyzer.cc File Reference
#include "Validation/RecoB/plugins/BDHadronTrackMonitoringAnalyzer.h"

Go to the source code of this file.

Typedefs

using P = std::pair< OmniClusterRef, TrackingParticleRef >
 

Functions

bool compare (const P &i, const P &j)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< BDHadronTrackMonitoringAnalyzer > > s_filler__LINE__ ("BDHadronTrackMonitoringAnalyzer")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< BDHadronTrackMonitoringAnalyzer > > s_maker__LINE__ ("BDHadronTrackMonitoringAnalyzer")
 
const reco::TrackBaseRef toTrackRef (const edm::Ptr< reco::Candidate > &cnd)
 

Typedef Documentation

◆ P

using P = std::pair<OmniClusterRef, TrackingParticleRef>

Definition at line 202 of file BDHadronTrackMonitoringAnalyzer.cc.

Function Documentation

◆ compare()

bool compare ( const P i,
const P j 
)

◆ s_filler__LINE__()

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

◆ s_maker__LINE__()

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

◆ toTrackRef()

const reco::TrackBaseRef toTrackRef ( const edm::Ptr< reco::Candidate > &  cnd)

Definition at line 7 of file BDHadronTrackMonitoringAnalyzer.cc.

7  {
8  const reco::PFCandidate *pfcand = dynamic_cast<const reco::PFCandidate *>(cnd.get());
9 
10  if ((std::abs(pfcand->pdgId()) == 11 || pfcand->pdgId() == 22) && pfcand->gsfTrackRef().isNonnull() &&
11  pfcand->gsfTrackRef().isAvailable())
12  return reco::TrackBaseRef(pfcand->gsfTrackRef());
13  else if (pfcand->trackRef().isNonnull() && pfcand->trackRef().isAvailable())
14  return reco::TrackBaseRef(pfcand->trackRef());
15  else
16  return reco::TrackBaseRef();
17 }

References funct::abs(), edm::Ptr< T >::get(), and pfDeepBoostedJetPreprocessParams_cfi::pfcand.

Referenced by BDHadronTrackMonitoringAnalyzer::analyze().

mps_fire.i
i
Definition: mps_fire.py:428
reco::TrackBaseRef
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:35
edm::Ptr::get
T const * get() const
Returns C++ pointer to the item.
Definition: Ptr.h:139
pfDeepBoostedJetPreprocessParams_cfi.pfcand
pfcand
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:8
edm::RefToBase< reco::Track >
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66