CMS 3D CMS Logo

Classes | Functions
TrackVertexArbitratration.h File Reference
#include <memory>
#include <set>
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#include "TrackingTools/TransientTrack/interface/CandidatePtrTransientTrack.h"
#include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
#include "TrackingTools/Records/interface/TransientTrackRecord.h"
#include "TrackingTools/IPTools/interface/IPTools.h"
#include "FWCore/Framework/interface/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/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 "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "RecoVertex/AdaptiveVertexFit/interface/AdaptiveVertexFitter.h"
#include "RecoVertex/KalmanVertexFit/interface/KalmanVertexUpdator.h"
#include "RecoVertex/KalmanVertexFit/interface/KalmanVertexTrackCompatibilityEstimator.h"
#include "RecoVertex/KalmanVertexFit/interface/KalmanVertexSmoother.h"
#include "TrackingTools/GeomPropagators/interface/AnalyticalImpactPointExtrapolator.h"
#include "RecoVertex/VertexPrimitives/interface/ConvertToFromReco.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"

Go to the source code of this file.

Classes

class  TrackVertexArbitration< VTX >
 

Functions

float trackWeight (const reco::Vertex &sv, const reco::TransientTrack &track)
 
float trackWeight (const reco::VertexCompositePtrCandidate &sv, const reco::TransientTrack &tt)
 

Function Documentation

float trackWeight ( const reco::Vertex sv,
const reco::TransientTrack track 
)
float trackWeight ( const reco::VertexCompositePtrCandidate sv,
const reco::TransientTrack tt 
)

Definition at line 117 of file TrackVertexArbitratration.h.

References reco::TransientTrack::basicTransientTrack(), EnergyCorrector::c, reco::CandidatePtrTransientTrack::candidate(), reco::CompositePtrCandidate::daughterPtrVector(), and spr::find().

118 {
120  if ( cptt==0 )
121  edm::LogError("DynamicCastingFailed") << "Casting of TransientTrack to CandidatePtrTransientTrack failed!";
122  else
123  {
124  const reco::CandidatePtr & c=cptt->candidate();
125  if(std::find(sv.daughterPtrVector().begin(),sv.daughterPtrVector().end(),c)!= sv.daughterPtrVector().end())
126  return 1.0;
127  else
128  return 0;
129  }
130 return 0;
131 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
const BasicTransientTrack * basicTransientTrack() const
const daughters & daughterPtrVector() const
references to daughtes