CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions
CombinedSVComputerV2.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/JetReco/interface/PFJet.h"
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "RecoVertex/VertexPrimitives/interface/ConvertToFromReco.h"
#include "RecoBTag/SecondaryVertex/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/CombinedSVComputerV2.h"

Go to the source code of this file.

Classes

struct  CombinedSVComputerV2::IterationRange
 

Macros

#define range_for(i, x)   for(int i = (x).begin; i != (x).end; i += (x).increment)
 

Functions

static edm::ParameterSet dropDeltaR (const edm::ParameterSet &pset)
 
static double etaRel (const math::XYZVector &dir, const math::XYZVector &track)
 

Macro Definition Documentation

#define range_for (   i,
  x 
)    for(int i = (x).begin; i != (x).end; i += (x).increment)

Function Documentation

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

Definition at line 47 of file CombinedSVComputerV2.cc.

References edm::ParameterSet::addParameter().

48 {
49  edm::ParameterSet psetCopy(pset);
50  psetCopy.addParameter<double>("jetDeltaRMax", 99999.0);
51  return psetCopy;
52 }
static double etaRel ( const math::XYZVector dir,
const math::XYZVector track 
)
static

Definition at line 133 of file CombinedSVComputerV2.cc.

References relval_parameters_module::energy, create_public_lumi_plots::log, reco::ParticleMasses::piPlus, and mathSSE::sqrt().

Referenced by CombinedSVComputerV2::operator()().

134 {
135  double momPar = dir.Dot(track);
136  double energy = std::sqrt(track.Mag2() + ROOT::Math::Square(ParticleMasses::piPlus));
137 
138  return 0.5 * std::log((energy + momPar) / (energy - momPar));
139 }
T sqrt(T t)
Definition: SSEVec.h:48
dbl *** dir
Definition: mlp_gen.cc:35