14 charmCut(params.getParameter<double>(
"charmCut")),
18 trackPseudoSelector(params.getParameter<
edm::
ParameterSet>(
"trackPseudoSelection")),
21 minTrackWeight(params.getParameter<double>(
"minimumTrackWeight")),
23 vertexMassCorrection(params.getParameter<
bool>(
"correctVertexMass")),
34 range.
begin = size - 1;
57 std::size_t
idx = indices[
i];
58 const btag::TrackIPData &
data = ipData[
idx];
100 std::size_t
idx = indices[
i];
101 const btag::TrackIPData &
data = ipData[
idx];
143 double vtx_track_ptSum = 0.;
144 double vtx_track_ESum = 0.;
148 unsigned int numberofvertextracks = 0;
160 if (hasRefittedTracks) {
162 vertexKinematics.
add(actualTrack, w);
174 vtx_track_ptSum +=
std::sqrt((*track)->momentum().Perp2());
189 fillCommonVariables(vars, vertexKinematics, ipInfo, svInfo, vtx_track_ptSum, vtx_track_ESum);
205 double vtx_track_ptSum = 0.;
206 double vtx_track_ESum = 0.;
210 unsigned int numberofvertextracks = 0;
214 numberofvertextracks = numberofvertextracks + (svInfo.
secondaryVertex(
i)).numberOfSourceCandidatePtrs();
218 for (std::vector<CandidatePtr>::const_iterator
track = tracks.begin();
track != tracks.end(); ++
track) {
223 vtx_track_ptSum +=
std::sqrt((*track)->momentum().Perp2());
237 fillCommonVariables(vars, vertexKinematics, ipInfo, svInfo, vtx_track_ptSum, vtx_track_ESum);
reco::btag::SortCriteria getCriterium(const std::string &name)
const unsigned int nTracks(const reco::Vertex &sv)
trackSelector
Tracks selection.
trackRef_iterator tracks_end() const
last iterator over tracks
void add(const reco::Track &track, double weight=1.0)
const VTX & secondaryVertex(unsigned int index) const
Base class for all types of Jets.
double etaRel(const math::XYZVector &dir, const math::XYZVector &track)
reco::TrackSelector trackNoDeltaRSelector
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
Global3DPoint GlobalPoint
const Container & selectedTracks() const
static edm::ParameterSet dropDeltaR(const edm::ParameterSet &pset)
virtual reco::TaggingVariableList operator()(const reco::TrackIPTagInfo &ipInfo, const reco::SecondaryVertexTagInfo &svInfo) const
CombinedSVComputer(const edm::ParameterSet ¶ms)
const Vector & momentum() const
track momentum vector
virtual const daughters & daughterPtrVector() const
references to daughtes
void addParameter(std::string const &name, T const &value)
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
std::vector< size_t > sortedIndexes(btag::SortCriteria mode=reco::btag::IP3DSig) const
IterationRange flipIterate(int size, bool vertex) const
const std::vector< btag::TrackIPData > & impactParameterData() const
unsigned int nVertices() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
double flipValue(double value, bool vertex) const
edm::ParameterSet dropDeltaR(const edm::ParameterSet &pset) const
const reco::btag::TrackIPData & threshTrack(const reco::CandIPTagInfo &trackIPTagInfo, const reco::btag::SortCriteria sort, const reco::Jet &jet, const GlobalPoint &pv) const
void fillCommonVariables(reco::TaggingVariableList &vars, reco::TrackKinematics &vertexKinematics, const IPTI &ipInfo, const SVTI &svInfo, double &vtx_track_ptSum, double &vtx_track_ESum) const
char data[epos_bytes_allocation]
Track refittedTrack(const TrackBaseRef &track) const
Container input_container
trackRef_iterator tracks_begin() const
first iterator over tracks
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
void insert(const TaggingVariable &variable, bool delayed=false)