12 :
trackFlip(params.getParameter<bool>(
"trackFlip")),
13 vertexFlip(params.getParameter<bool>(
"vertexFlip")),
14 charmCut(params.getParameter<double>(
"charmCut")),
15 sortCriterium(TrackSorting::
getCriterium(params.getParameter<std::
string>(
"trackSort"))),
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];
69 static const btag::TrackIPData dummy = {
GlobalPoint(),
78 static const btag::TrackIPData dummy = {
GlobalPoint(),
95 std::vector<std::size_t> indices = trackIPTagInfo.
sortedIndexes(sort);
97 IterationRange range =
flipIterate(indices.size(),
false);
100 std::size_t idx = indices[
i];
101 const btag::TrackIPData &data = ipData[idx];
102 const Track &track = *tracks[idx];
113 static const btag::TrackIPData dummy = {
GlobalPoint(),
122 static const btag::TrackIPData dummy = {
GlobalPoint(),
135 using namespace ROOT::Math;
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);
170 vertexKinematics.add(**track, w);
174 vtx_track_ptSum +=
std::sqrt((*track)->momentum().Perp2());
197 using namespace ROOT::Math;
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) {
219 vertexKinematics.add(*track);
223 vtx_track_ptSum +=
std::sqrt((*track)->momentum().Perp2());
tuple trackMultiplicityMin
reco::btag::SortCriteria getCriterium(const std::string &name)
Vector momentum() const final
spatial momentum vector
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)
auto const & tracks
cannot be loose
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
const uint16_t range(const Frame &aFrame)
void addParameter(std::string const &name, T const &value)
trackRef_iterator tracks_end() const
last iterator over tracks
tuple pseudoVertexV0Filter
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
trackRef_iterator tracks_begin() const
first iterator over tracks
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
tuple pseudoMultiplicityMin
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
tuple size
Write out results.
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
tuple trackSelector
Tracks selection.