CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::Vertex
BtoCharmDecayVertexMerger
 
typedef
BtoCharmDecayVertexMergerT
< reco::VertexCompositePtrCandidate
CandidateBtoCharmDecayVertexMerger
 

Functions

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

Typedef Documentation

Definition at line 368 of file BtoCharmDecayVertexMerger.cc.

Definition at line 369 of file BtoCharmDecayVertexMerger.cc.

Function Documentation

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

Definition at line 25 of file BtoCharmDecayVertexMerger.cc.

References reco::CompositePtrCandidate::daughterPtrVector(), reco::ParticleMasses::piPlus, and testEve_cfg::tracks.

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
tuple tracks
Definition: testEve_cfg.py:39
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
const daughters & daughterPtrVector() const
references to daughtes