CMS 3D CMS Logo

Functions
GhostTrackComputer.cc File Reference
#include <iostream>
#include <cstddef>
#include <string>
#include <cmath>
#include <vector>
#include <Math/VectorUtil.h>
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "DataFormats/Math/interface/LorentzVector.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/BTauReco/interface/TrackIPTagInfo.h"
#include "DataFormats/BTauReco/interface/SecondaryVertexTagInfo.h"
#include "DataFormats/BTauReco/interface/TaggingVariable.h"
#include "DataFormats/BTauReco/interface/VertexTypes.h"
#include "DataFormats/BTauReco/interface/ParticleMasses.h"
#include "RecoBTag/SecondaryVertex/interface/TrackSorting.h"
#include "RecoBTag/SecondaryVertex/interface/TrackSelector.h"
#include "RecoBTag/SecondaryVertex/interface/TrackKinematics.h"
#include "RecoBTag/SecondaryVertex/interface/V0Filter.h"
#include "RecoBTag/SecondaryVertex/interface/GhostTrackComputer.h"

Go to the source code of this file.

Functions

static void addMeas (std::pair< double, double > &sum, Measurement1D meas)
 
static edm::ParameterSet dropDeltaR (const edm::ParameterSet &pset)
 

Function Documentation

◆ addMeas()

static void addMeas ( std::pair< double, double > &  sum,
Measurement1D  meas 
)
static

Definition at line 111 of file GhostTrackComputer.cc.

111  {
112  double weight = 1. / meas.error();
113  weight *= weight;
114  sum.first += weight * meas.value();
115  sum.second += weight;
116 }

References Measurement1D::error(), Measurement1D::value(), and mps_merge::weight.

Referenced by GhostTrackComputer::operator()().

◆ dropDeltaR()

static edm::ParameterSet dropDeltaR ( const edm::ParameterSet pset)
static

Definition at line 35 of file GhostTrackComputer.cc.

35  {
36  edm::ParameterSet psetCopy(pset);
37  psetCopy.addParameter<double>("jetDeltaRMax", 99999.0);
38  return psetCopy;
39 }

References edm::ParameterSet::addParameter(), and muonDTDigis_cfi::pset.

Measurement1D::value
double value() const
Definition: Measurement1D.h:25
mps_merge.weight
weight
Definition: mps_merge.py:88
Measurement1D::error
double error() const
Definition: Measurement1D.h:27
edm::ParameterSet
Definition: ParameterSet.h:47
weight
Definition: weight.py:1
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27