1 #ifndef ImpactParameter_TemplatedTrackCountingComputer_h 2 #define ImpactParameter_TemplatedTrackCountingComputer_h 8 #include "Math/GenVector/VectorUtil.h" 11 template <
class Container,
class Base>
20 ?
parameters.getParameter<
double>(
"minimumImpactParameter")
23 ?
parameters.getParameter<
bool>(
"useSignedImpactParameterSig")
36 if (trackQualityType ==
"any" || trackQualityType ==
"Any" || trackQualityType ==
"ANY")
42 parameters.existsAs<
bool>(
"useVariableJTA") ?
parameters.getParameter<
bool>(
"useVariableJTA") :
false;
50 parameters.getParameter<
double>(
"min_pT_dRcut"),
51 parameters.getParameter<
double>(
"max_pT_dRcut"),
52 parameters.getParameter<
double>(
"max_pT_trackPTcut")};
59 std::multiset<float>::reverse_iterator nth = significances.rbegin();
60 for (
int i = 0;
i <
m_nthTrack - 1 && nth != significances.rend();
i++)
62 if (nth != significances.rend())
72 std::multiset<float> significances;
75 return std::multiset<float>();
82 for (std::vector<reco::btag::TrackIPData>::const_iterator it = impactParameters.begin();
83 it != impactParameters.end();
92 float signed_sig = ((
m_ipType == 0) ? it->ip3d : it->ip2d).significance();
93 float unsigned_sig = fabs(signed_sig);
106 return significances;
124 #endif // ImpactParameter_TemplatedTrackCountingComputer_h bool quality(const TrackQuality) const
Track quality.
TrackQuality
track quality
const T & get(unsigned int index=0) const
const Container & selectedTracks() const
reco::TrackBase::TrackQuality m_trackQuality
const reco::Track * toTrack(const reco::TrackBaseRef &t)
TemplatedTrackCountingComputer(const edm::ParameterSet ¶meters)
TEMPL(T2) struct Divides void
void uses(unsigned int id, const std::string &label)
const std::vector< btag::TrackIPData > & impactParameterData() const
reco::IPTagInfo< Container, Base > TagInfo
bool isNull() const
Checks for null.
static TrackQuality qualityByName(const std::string &name)
reco::btag::variableJTAParameters varJTApars
float discriminator(const TagInfoHelper &ti) const override
std::vector< bool > variableJTA(const btag::variableJTAParameters ¶ms) const
const edm::Ref< VertexCollection > & primaryVertex() const
std::multiset< float > orderedSignificances(const TagInfo &tkip) const
double m_cutMaxDistToAxis
edm::AssociationVector< reco::JetRefBaseProd, Values > Container