CMS 3D CMS Logo

Classes | Typedefs | Functions
BtoCharmDecayVertexMerger.cc File Reference
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/BTauReco/interface/ParticleMasses.h"
#include "DataFormats/Candidate/interface/VertexCompositePtrCandidate.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "RecoVertex/VertexTools/interface/VertexDistance3D.h"
#include "RecoBTag/SecondaryVertex/interface/SecondaryVertex.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"
#include <algorithm>

Go to the source code of this file.

Classes

class  BtoCharmDecayVertexMergerT< VTX >
 
struct  BtoCharmDecayVertexMergerT< VTX >::VertexProxy
 

Typedefs

typedef BtoCharmDecayVertexMergerT< reco::VertexBtoCharmDecayVertexMerger
 
typedef BtoCharmDecayVertexMergerT< reco::VertexCompositePtrCandidateCandidateBtoCharmDecayVertexMerger
 

Functions

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< BtoCharmDecayVertexMerger > > s_filler_0__LINE__ ("BtoCharmDecayVertexMerger")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< BtoCharmDecayVertexMerger > > s_maker__LINE__ ("BtoCharmDecayVertexMerger")
 
reco::Candidate::LorentzVector vtxP4 (const reco::VertexCompositePtrCandidate &vtx)
 

Typedef Documentation

◆ BtoCharmDecayVertexMerger

Definition at line 360 of file BtoCharmDecayVertexMerger.cc.

◆ CandidateBtoCharmDecayVertexMerger

Definition at line 361 of file BtoCharmDecayVertexMerger.cc.

Function Documentation

◆ s_filler_0__LINE__()

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

◆ s_maker__LINE__()

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

◆ vtxP4()

Definition at line 25 of file BtoCharmDecayVertexMerger.cc.

References reco::ParticleMasses::piPlus, HLT_2023v12_cff::track, pwdgSkimBPark_cfi::tracks, and extraflags_cff::vtx.

Referenced by BtoCharmDecayVertexMergerT< VTX >::buildVertexProxy(), and BtoCharmDecayVertexMergerT< VTX >::resolveBtoDchain().

25  {
27  const std::vector<reco::CandidatePtr> &tracks = vtx.daughterPtrVector();
28 
29  for (std::vector<reco::CandidatePtr>::const_iterator track = tracks.begin(); track != tracks.end(); ++track) {
30  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double>> vec;
31  vec.SetPx((*track)->px());
32  vec.SetPy((*track)->py());
33  vec.SetPz((*track)->pz());
35  sum += vec;
36  }
37  return sum;
38 }
const double piPlus
Definition: ParticleMasses.h:9
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36