CMS 3D CMS Logo

Namespaces | Functions
OniaPhotonConversionProducer.cc File Reference
#include "HeavyFlavorAnalysis/Onia2MuMu/interface/OniaPhotonConversionProducer.h"
#include "DataFormats/EgammaCandidates/interface/Conversion.h"
#include "DataFormats/PatCandidates/interface/CompositeCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackBase.h"
#include "CommonTools/Utils/interface/StringToEnumValue.h"
#include "CommonTools/Statistics/interface/ChiSquaredProbability.h"
#include "RecoVertex/VertexTools/interface/VertexDistanceXY.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include <TMath.h>
#include <vector>

Go to the source code of this file.

Namespaces

 reco
 fixed size matrix
 

Functions

bool ConversionEqualByTrack (const reco::Conversion &c1, const reco::Conversion &c2)
 
bool ConversionLessByChi2 (const reco::Conversion &c1, const reco::Conversion &c2)
 
bool lt_ (std::pair< double, short > a, std::pair< double, short > b)
 
bool reco::operator== (const reco::Conversion &c1, const reco::Conversion &c2)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< OniaPhotonConversionProducer > > s_filler__LINE__ ("OniaPhotonConversionProducer")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< OniaPhotonConversionProducer > > s_maker__LINE__ ("OniaPhotonConversionProducer")
 

Function Documentation

◆ ConversionEqualByTrack()

bool ConversionEqualByTrack ( const reco::Conversion c1,
const reco::Conversion c2 
)

Definition at line 26 of file OniaPhotonConversionProducer.cc.

26  {
27  bool atLeastOneInCommon = false;
28  for (auto const& tk1 : c1.tracks()) {
29  for (auto const& tk2 : c2.tracks()) {
30  if (tk1 == tk2) {
31  atLeastOneInCommon = true;
32  break;
33  }
34  }
35  }
36  return atLeastOneInCommon;
37 }

References alignmentValidation::c1, and reco::Conversion::tracks().

Referenced by OniaPhotonConversionProducer::removeDuplicates().

◆ ConversionLessByChi2()

bool ConversionLessByChi2 ( const reco::Conversion c1,
const reco::Conversion c2 
)

Definition at line 21 of file OniaPhotonConversionProducer.cc.

21  {
22  return TMath::Prob(c1.conversionVertex().chi2(), c1.conversionVertex().ndof()) >
23  TMath::Prob(c2.conversionVertex().chi2(), c2.conversionVertex().ndof());
24 }

References alignmentValidation::c1, reco::Vertex::chi2(), reco::Conversion::conversionVertex(), and reco::Vertex::ndof().

Referenced by OniaPhotonConversionProducer::removeDuplicates().

◆ lt_()

bool lt_ ( std::pair< double, short >  a,
std::pair< double, short >  b 
)

Definition at line 39 of file OniaPhotonConversionProducer.cc.

39 { return a.first < b.first; }

References a, and b.

Referenced by OniaPhotonConversionProducer::checkTkVtxCompatibility(), and pat::PATIsolatedTrackProducer::produce().

◆ s_filler__LINE__()

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

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< OniaPhotonConversionProducer > > s_maker__LINE__ ( "OniaPhotonConversionProducer"  )
static
reco::Conversion::tracks
std::vector< edm::RefToBase< reco::Track > > const & tracks() const
vector of track to base references
Definition: Conversion.cc:150
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
reco::Conversion::conversionVertex
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:88
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
reco::Vertex::chi2
double chi2() const
chi-squares
Definition: Vertex.h:116
reco::Vertex::ndof
double ndof() const
Definition: Vertex.h:123