Classes | |
class | BoostedDoubleSVTagInfoFeatures |
class | ChargedCandidateFeatures |
class | DeepBoostedJetFeatures |
class | DeepDoubleXFeatures |
class | DeepFlavourFeatures |
class | JetConverter |
class | JetFeatures |
class | NeutralCandidateFeatures |
struct | PreprocessParams |
class | SecondaryVertexFeatures |
class | SeedingTrackFeatures |
class | SeedingTrackInfoBuilder |
class | ShallowTagInfoFeatures |
class | SortingClass |
class | TrackInfoBuilder |
class | TrackPairFeatures |
class | TrackPairInfoBuilder |
Enumerations | |
enum | qualityFlagsShiftsAndMasks { assignmentQualityMask = 0x7, assignmentQualityShift = 0, trackHighPurityMask = 0x8, trackHighPurityShift =3, lostInnerHitsMask = 0x30, lostInnerHitsShift =4, muonFlagsMask = 0x0600, muonFlagsShift =9 } |
Functions | |
void | bTagToFeatures (const reco::TaggingVariableList &tag_info_vars, ShallowTagInfoFeatures &tag_info_features) |
const float | catch_infs (const float in, const float replace_value=0.) |
const float | catch_infs_and_bound (const float in, const float replace_value, const float lowerbound, const float upperbound, const float offset=0., const bool use_offsets=true) |
template<typename CandidateType > | |
void | commonCandidateToFeatures (const CandidateType *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const float &drminpfcandsv, const float &jetR, ChargedCandidateFeatures &c_pf_features, const bool flip=false) |
template<typename CandidateType > | |
static void | commonCandidateToFeatures (const CandidateType *n_pf, const reco::Jet &jet, const float &drminpfcandsv, const float &jetR, NeutralCandidateFeatures &n_pf_features) |
void | cpf_tensor_filler (float *&ptr, const btagbtvdeep::ChargedCandidateFeatures &c_pf_features) |
void | doubleBTagToFeatures (const reco::TaggingVariableList &tag_info_vars, BoostedDoubleSVTagInfoFeatures &tag_info_features) |
template<typename T > | |
int | dump_vector (reco::TaggingVariableList &from, T *to, reco::btau::TaggingVariableName name, const size_t max) |
std::vector< std::size_t > | invertSortingVector (const std::vector< SortingClass< std::size_t > > &in) |
void | jet4vec_tensor_filler (float *&ptr, const btagbtvdeep::JetFeatures &jet_features) |
void | jet_tensor_filler (float *&ptr, const btagbtvdeep::DeepFlavourFeatures &features) |
float | logWithOffset (float v, float logOffset=0) |
float | lost_inner_hits_from_pfcand (const reco::PFCandidate &pfcand) |
float | mindrsvpfcand (const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4) |
void | neighbourTrack_tensor_filler (float *&ptr, const btagbtvdeep::TrackPairFeatures &neighbourTrack_features) |
void | npf_tensor_filler (float *&ptr, const btagbtvdeep::NeutralCandidateFeatures &n_pf_features) |
void | packedCandidateToFeatures (const pat::PackedCandidate *n_pf, const pat::Jet &jet, const float drminpfcandsv, const float jetR, NeutralCandidateFeatures &n_pf_features) |
void | packedCandidateToFeatures (const pat::PackedCandidate *c_pf, const pat::Jet &jet, const TrackInfoBuilder &track_info, const float drminpfcandsv, const float jetR, ChargedCandidateFeatures &c_pf_features, const bool flip=false) |
float | quality_from_pfcand (const reco::PFCandidate &pfcand) |
void | recoCandidateToFeatures (const reco::PFCandidate *n_pf, const reco::Jet &jet, const float drminpfcandsv, const float jetR, const float puppiw, NeutralCandidateFeatures &n_pf_features) |
void | recoCandidateToFeatures (const reco::PFCandidate *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const float drminpfcandsv, const float jetR, const float puppiw, const int pv_ass_quality, const reco::VertexRef &pv, ChargedCandidateFeatures &c_pf_features, const bool flip=false) |
void | seedingTracksToFeatures (const std::vector< reco::TransientTrack > &selectedTracks, const std::vector< float > &masses, const reco::Jet &jet, const reco::Vertex &pv, HistogramProbabilityEstimator *probabilityEstimator, bool computeProbabilities, std::vector< btagbtvdeep::SeedingTrackFeatures > &seedingT_features_vector) |
void | seedTrack_tensor_filler (float *&ptr, const btagbtvdeep::SeedingTrackFeatures &seed_features) |
void | sv_tensor_filler (float *&ptr, const btagbtvdeep::SecondaryVertexFeatures &sv_features) |
template<typename SVType , typename PVType > | |
bool | sv_vertex_comparator (const SVType &sva, const SVType &svb, const PVType &pv) |
template bool | sv_vertex_comparator< reco::VertexCompositePtrCandidate, reco::Vertex > (const reco::VertexCompositePtrCandidate &, const reco::VertexCompositePtrCandidate &, const reco::Vertex &) |
void | svToFeatures (const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv, const reco::Jet &jet, SecondaryVertexFeatures &sv_features, const bool flip=false) |
Measurement1D | vertexD3d (const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv) |
float | vertexDdotP (const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv) |
Measurement1D | vertexDxy (const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv) |
float | vtx_ass_from_pfcand (const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv) |
Variables | |
static std::size_t | max_jetNSelectedTracks =100 |
static int | qualityMap [8] = {1,0,1,1,4,4,5,6} |
Enumerator | |
---|---|
assignmentQualityMask | |
assignmentQualityShift | |
trackHighPurityMask | |
trackHighPurityShift | |
lostInnerHitsMask | |
lostInnerHitsShift | |
muonFlagsMask | |
muonFlagsShift |
Definition at line 8 of file deep_helpers.cc.
void btagbtvdeep::bTagToFeatures | ( | const reco::TaggingVariableList & | tag_info_vars, |
ShallowTagInfoFeatures & | tag_info_features | ||
) |
Definition at line 14 of file ShallowTagInfoConverter.cc.
References reco::TaggingVariableList::get(), reco::TaggingVariableList::getList(), btagbtvdeep::ShallowTagInfoFeatures::jetNSelectedTracks, btagbtvdeep::ShallowTagInfoFeatures::jetNTracksEtaRel, reco::btau::jetNTracksEtaRel, max_jetNSelectedTracks, min(), reco::btau::trackMomentum, btagbtvdeep::ShallowTagInfoFeatures::trackSip2dSigAboveCharm, reco::btau::trackSip2dSigAboveCharm, btagbtvdeep::ShallowTagInfoFeatures::trackSip2dValAboveCharm, reco::btau::trackSip2dValAboveCharm, btagbtvdeep::ShallowTagInfoFeatures::trackSip3dSigAboveCharm, reco::btau::trackSip3dSigAboveCharm, btagbtvdeep::ShallowTagInfoFeatures::trackSip3dValAboveCharm, reco::btau::trackSip3dValAboveCharm, btagbtvdeep::ShallowTagInfoFeatures::trackSumJetDeltaR, reco::btau::trackSumJetDeltaR, btagbtvdeep::ShallowTagInfoFeatures::trackSumJetEtRatio, reco::btau::trackSumJetEtRatio, btagbtvdeep::ShallowTagInfoFeatures::vertexCategory, and reco::btau::vertexCategory.
Referenced by DeepFlavourTagInfoProducer::produce().
const float btagbtvdeep::catch_infs | ( | const float | in, |
const float | replace_value = 0. |
||
) |
Definition at line 21 of file deep_helpers.cc.
References recoMuon::in.
Referenced by catch_infs_and_bound(), BoostedJetONNXJetTagsProducer::center_norm_pad(), dump_vector(), packedCandidateToFeatures(), and sv_vertex_comparator().
const float btagbtvdeep::catch_infs_and_bound | ( | const float | in, |
const float | replace_value, | ||
const float | lowerbound, | ||
const float | upperbound, | ||
const float | offset = 0. , |
||
const bool | use_offsets = true |
||
) |
Definition at line 34 of file deep_helpers.cc.
References catch_infs(), and PFRecoTauDiscriminationByIsolation_cfi::offset.
Referenced by commonCandidateToFeatures(), packedCandidateToFeatures(), recoCandidateToFeatures(), and svToFeatures().
void btagbtvdeep::commonCandidateToFeatures | ( | const CandidateType * | c_pf, |
const reco::Jet & | jet, | ||
const TrackInfoBuilder & | track_info, | ||
const float & | drminpfcandsv, | ||
const float & | jetR, | ||
ChargedCandidateFeatures & | c_pf_features, | ||
const bool | flip = false |
||
) |
Definition at line 15 of file ChargedCandidateConverter.h.
References btagbtvdeep::ChargedCandidateFeatures::btagPf_trackDeltaR, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackEtaRel, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackJetDistVal, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPPar, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPParRatio, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPtRatio, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPtRel, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip2dSig, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip2dVal, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip3dSig, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip3dVal, catch_infs_and_bound(), reco::deltaR(), btagbtvdeep::ChargedCandidateFeatures::deltaR, btagbtvdeep::ChargedCandidateFeatures::drminsv, btagbtvdeep::ChargedCandidateFeatures::drsubjet1, btagbtvdeep::ChargedCandidateFeatures::drsubjet2, vertexPlots::e4, reco::LeafCandidate::energy(), btagbtvdeep::ChargedCandidateFeatures::erel, reco::LeafCandidate::eta(), btagbtvdeep::ChargedCandidateFeatures::etarel, Exception, pfNegativeDeepFlavourTagInfos_cfi::flip, btagbtvdeep::TrackInfoBuilder::getTrackDeltaR(), btagbtvdeep::TrackInfoBuilder::getTrackEtaRel(), btagbtvdeep::TrackInfoBuilder::getTrackJetDistVal(), btagbtvdeep::TrackInfoBuilder::getTrackPPar(), btagbtvdeep::TrackInfoBuilder::getTrackPParRatio(), btagbtvdeep::TrackInfoBuilder::getTrackPtRatio(), btagbtvdeep::TrackInfoBuilder::getTrackPtRel(), btagbtvdeep::TrackInfoBuilder::getTrackSip2dSig(), btagbtvdeep::TrackInfoBuilder::getTrackSip2dVal(), btagbtvdeep::TrackInfoBuilder::getTrackSip3dSig(), btagbtvdeep::TrackInfoBuilder::getTrackSip3dVal(), edm::errors::InvalidReference, metsig::jet, p1, p2, packedCandidateToFeatures(), reco::LeafCandidate::pt(), btagbtvdeep::ChargedCandidateFeatures::ptrel, btagbtvdeep::ChargedCandidateFeatures::ptrel_noclip, MetAnalyzer::pv(), recoCandidateToFeatures(), jetUpdater_cfi::sort, reco::btau::trackSip2dSig, reco::btau::trackSip2dVal, reco::btau::trackSip3dSig, and reco::btau::trackSip3dVal.
Referenced by packedCandidateToFeatures(), and recoCandidateToFeatures().
|
static |
Definition at line 30 of file NeutralCandidateConverter.h.
References funct::abs(), catch_infs_and_bound(), btagbtvdeep::NeutralCandidateFeatures::deltaR, reco::deltaR(), btagbtvdeep::NeutralCandidateFeatures::deltaR_noclip, btagbtvdeep::NeutralCandidateFeatures::drminsv, btagbtvdeep::NeutralCandidateFeatures::drsubjet1, btagbtvdeep::NeutralCandidateFeatures::drsubjet2, reco::LeafCandidate::energy(), btagbtvdeep::NeutralCandidateFeatures::erel, Exception, edm::errors::InvalidReference, btagbtvdeep::NeutralCandidateFeatures::isGamma, metsig::jet, p1, p2, reco::LeafCandidate::pt(), btagbtvdeep::NeutralCandidateFeatures::ptrel, btagbtvdeep::NeutralCandidateFeatures::ptrel_noclip, and jetUpdater_cfi::sort.
void btagbtvdeep::cpf_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::ChargedCandidateFeatures & | c_pf_features | ||
) |
Definition at line 28 of file tensor_fillers.cc.
References btagbtvdeep::ChargedCandidateFeatures::btagPf_trackDeltaR, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackEtaRel, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackJetDistVal, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPPar, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPParRatio, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackPtRel, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip2dSig, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip2dVal, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip3dSig, btagbtvdeep::ChargedCandidateFeatures::btagPf_trackSip3dVal, btagbtvdeep::ChargedCandidateFeatures::chi2, btagbtvdeep::ChargedCandidateFeatures::drminsv, btagbtvdeep::ChargedCandidateFeatures::ptrel, btagbtvdeep::ChargedCandidateFeatures::puppiw, btagbtvdeep::ChargedCandidateFeatures::quality, and btagbtvdeep::ChargedCandidateFeatures::vtx_ass.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs().
void btagbtvdeep::doubleBTagToFeatures | ( | const reco::TaggingVariableList & | tag_info_vars, |
BoostedDoubleSVTagInfoFeatures & | tag_info_features | ||
) |
Definition at line 10 of file BoostedDoubleSVTagInfoConverter.cc.
References reco::TaggingVariableList::get(), btagbtvdeep::BoostedDoubleSVTagInfoFeatures::jetNSecondaryVertices, reco::btau::jetNSecondaryVertices, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::jetNTracks, reco::btau::jetNTracks, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_flightDistance2dSig, reco::btau::tau1_flightDistance2dSig, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_trackEtaRel_0, reco::btau::tau1_trackEtaRel_0, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_trackEtaRel_1, reco::btau::tau1_trackEtaRel_1, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_trackEtaRel_2, reco::btau::tau1_trackEtaRel_2, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_trackSip3dSig_0, reco::btau::tau1_trackSip3dSig_0, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_trackSip3dSig_1, reco::btau::tau1_trackSip3dSig_1, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_vertexDeltaR, reco::btau::tau1_vertexDeltaR, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_vertexEnergyRatio, reco::btau::tau1_vertexEnergyRatio, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau1_vertexMass, reco::btau::tau1_vertexMass, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_flightDistance2dSig, reco::btau::tau2_flightDistance2dSig, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_trackEtaRel_0, reco::btau::tau2_trackEtaRel_0, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_trackEtaRel_1, reco::btau::tau2_trackEtaRel_1, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_trackEtaRel_2, reco::btau::tau2_trackEtaRel_2, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_trackSip3dSig_0, reco::btau::tau2_trackSip3dSig_0, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_trackSip3dSig_1, reco::btau::tau2_trackSip3dSig_1, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_vertexDeltaR, reco::btau::tau2_vertexDeltaR, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_vertexEnergyRatio, reco::btau::tau2_vertexEnergyRatio, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::tau2_vertexMass, reco::btau::tau2_vertexMass, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip2dSigAboveBottom_0, reco::btau::trackSip2dSigAboveBottom_0, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip2dSigAboveBottom_1, reco::btau::trackSip2dSigAboveBottom_1, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip2dSigAboveCharm, reco::btau::trackSip2dSigAboveCharm, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip3dSig_0, reco::btau::trackSip3dSig_0, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip3dSig_1, reco::btau::trackSip3dSig_1, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip3dSig_2, reco::btau::trackSip3dSig_2, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::trackSip3dSig_3, reco::btau::trackSip3dSig_3, btagbtvdeep::BoostedDoubleSVTagInfoFeatures::z_ratio, and reco::btau::z_ratio.
Referenced by DeepDoubleXTagInfoProducer::produce().
int btagbtvdeep::dump_vector | ( | reco::TaggingVariableList & | from, |
T * | to, | ||
reco::btau::TaggingVariableName | name, | ||
const size_t | max | ||
) |
Definition at line 58 of file deep_helpers.h.
References catch_infs(), reco::TaggingVariableList::getList(), mps_fire::i, lost_inner_hits_from_pfcand(), SiStripPI::max, min(), MTVHistoProducerAlgoForTrackerBlock_cfi::mindr, mindrsvpfcand(), pfDeepBoostedJetPreprocessParams_cfi::pfcand, MetAnalyzer::pv(), quality_from_pfcand(), findQualityFiles::size, create_public_pileup_plots::vals, and vtx_ass_from_pfcand().
std::vector< std::size_t > btagbtvdeep::invertSortingVector | ( | const std::vector< SortingClass< std::size_t > > & | in | ) |
Definition at line 8 of file sorting_modules.cc.
References mps_fire::i, recoMuon::in, SiStripPI::max, MillePedeFileConverter_cfg::out, and alignCSCRings::s.
Referenced by DeepDoubleXTagInfoProducer::produce(), and DeepFlavourTagInfoProducer::produce().
void btagbtvdeep::jet4vec_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::JetFeatures & | jet_features | ||
) |
Definition at line 71 of file tensor_fillers.cc.
References btagbtvdeep::JetFeatures::eta, btagbtvdeep::JetFeatures::mass, btagbtvdeep::JetFeatures::phi, and btagbtvdeep::JetFeatures::pt.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs(), and DeepVertexONNXJetTagsProducer::make_inputs().
void btagbtvdeep::jet_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::DeepFlavourFeatures & | features | ||
) |
Definition at line 5 of file tensor_fillers.cc.
References btagbtvdeep::DeepFlavourFeatures::c_pf_features, btagbtvdeep::DeepFlavourFeatures::jet_features, btagbtvdeep::DeepFlavourFeatures::n_pf_features, btagbtvdeep::DeepFlavourFeatures::npv, btagbtvdeep::JetFeatures::pt, btagbtvdeep::DeepFlavourFeatures::sv_features, btagbtvdeep::DeepFlavourFeatures::tag_info_features, and btagbtvdeep::ShallowTagInfoFeatures::trackSumJetEtRatio.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs().
float btagbtvdeep::logWithOffset | ( | float | v, |
float | logOffset = 0 |
||
) |
Definition at line 33 of file SeedingTracksConverter.h.
References f, and cmsBatch::log.
Referenced by seedingTracksToFeatures().
float btagbtvdeep::lost_inner_hits_from_pfcand | ( | const reco::PFCandidate & | pfcand | ) |
Definition at line 116 of file deep_helpers.cc.
References reco::PFCandidate::bestTrack(), muons_cff::highPurity, reco::TrackBase::highPurity, edm::Ref< C, T, F >::isNonnull(), lostInnerHitsMask, lostInnerHitsShift, trackHighPurityMask, trackHighPurityShift, and reco::PFCandidate::trackRef().
Referenced by dump_vector(), and DeepBoostedJetTagInfoProducer::fillParticleFeatures().
float btagbtvdeep::mindrsvpfcand | ( | const std::vector< reco::VertexCompositePtrCandidate > & | svs, |
const reco::Candidate * | cand, | ||
float | mindr = 0.4 |
||
) |
Definition at line 73 of file deep_helpers.cc.
References reco::deltaR(), and MTVHistoProducerAlgoForTrackerBlock_cfi::mindr.
Referenced by dump_vector(), DeepBoostedJetTagInfoProducer::fillParticleFeatures(), DeepDoubleXTagInfoProducer::produce(), and DeepFlavourTagInfoProducer::produce().
void btagbtvdeep::neighbourTrack_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::TrackPairFeatures & | neighbourTrack_features | ||
) |
Definition at line 102 of file tensor_fillers.cc.
References btagbtvdeep::TrackPairFeatures::deta_PCAjetDirs, btagbtvdeep::TrackPairFeatures::dist_PCAjetAxis, btagbtvdeep::TrackPairFeatures::distPCA, btagbtvdeep::TrackPairFeatures::dotprod_PCAjetMomenta, btagbtvdeep::TrackPairFeatures::dotprodSeed, btagbtvdeep::TrackPairFeatures::dotprodTrack, btagbtvdeep::TrackPairFeatures::dotprodTrackSeed2D, btagbtvdeep::TrackPairFeatures::dotprodTrackSeed3D, btagbtvdeep::TrackPairFeatures::dotprodTrackSeedVectors2D, btagbtvdeep::TrackPairFeatures::dotprodTrackSeedVectors3D, btagbtvdeep::TrackPairFeatures::dphi_PCAjetDirs, btagbtvdeep::TrackPairFeatures::dsigPCA, btagbtvdeep::TrackPairFeatures::dxy, btagbtvdeep::TrackPairFeatures::dz, btagbtvdeep::TrackPairFeatures::eta, btagbtvdeep::TrackPairFeatures::ip2D, btagbtvdeep::TrackPairFeatures::ip3D, btagbtvdeep::TrackPairFeatures::mass, btagbtvdeep::TrackPairFeatures::phi, btagbtvdeep::TrackPairFeatures::pt, btagbtvdeep::TrackPairFeatures::pvd_PCAonSeed, btagbtvdeep::TrackPairFeatures::pvd_PCAonTrack, btagbtvdeep::TrackPairFeatures::sip2D, btagbtvdeep::TrackPairFeatures::sip3D, btagbtvdeep::TrackPairFeatures::x_PCAonSeed, btagbtvdeep::TrackPairFeatures::x_PCAonTrack, btagbtvdeep::TrackPairFeatures::xerr_PCAonSeed, btagbtvdeep::TrackPairFeatures::xerr_PCAonTrack, btagbtvdeep::TrackPairFeatures::y_PCAonSeed, btagbtvdeep::TrackPairFeatures::y_PCAonTrack, btagbtvdeep::TrackPairFeatures::yerr_PCAonSeed, btagbtvdeep::TrackPairFeatures::yerr_PCAonTrack, btagbtvdeep::TrackPairFeatures::z_PCAonSeed, btagbtvdeep::TrackPairFeatures::z_PCAonTrack, btagbtvdeep::TrackPairFeatures::zerr_PCAonSeed, and btagbtvdeep::TrackPairFeatures::zerr_PCAonTrack.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs(), and DeepVertexONNXJetTagsProducer::make_inputs().
void btagbtvdeep::npf_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::NeutralCandidateFeatures & | n_pf_features | ||
) |
Definition at line 47 of file tensor_fillers.cc.
References btagbtvdeep::NeutralCandidateFeatures::deltaR, btagbtvdeep::NeutralCandidateFeatures::drminsv, btagbtvdeep::NeutralCandidateFeatures::hadFrac, btagbtvdeep::NeutralCandidateFeatures::isGamma, btagbtvdeep::NeutralCandidateFeatures::ptrel, and btagbtvdeep::NeutralCandidateFeatures::puppiw.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs().
void btagbtvdeep::packedCandidateToFeatures | ( | const pat::PackedCandidate * | n_pf, |
const pat::Jet & | jet, | ||
const float | drminpfcandsv, | ||
const float | jetR, | ||
NeutralCandidateFeatures & | n_pf_features | ||
) |
Definition at line 7 of file NeutralCandidateConverter.cc.
References commonCandidateToFeatures(), btagbtvdeep::NeutralCandidateFeatures::hadFrac, pat::PackedCandidate::hcalFraction(), btagbtvdeep::NeutralCandidateFeatures::puppiw, and pat::PackedCandidate::puppiWeight().
void btagbtvdeep::packedCandidateToFeatures | ( | const pat::PackedCandidate * | c_pf, |
const pat::Jet & | jet, | ||
const TrackInfoBuilder & | track_info, | ||
const float | drminpfcandsv, | ||
const float | jetR, | ||
ChargedCandidateFeatures & | c_pf_features, | ||
const bool | flip = false |
||
) |
Definition at line 6 of file ChargedCandidateConverter.cc.
References pat::PackedCandidate::bestTrack(), catch_infs(), catch_infs_and_bound(), btagbtvdeep::ChargedCandidateFeatures::chi2, commonCandidateToFeatures(), btagbtvdeep::ChargedCandidateFeatures::dxy, pat::PackedCandidate::dxy(), pat::PackedCandidate::dxyError(), btagbtvdeep::ChargedCandidateFeatures::dxysig, btagbtvdeep::ChargedCandidateFeatures::dz, pat::PackedCandidate::dz(), pat::PackedCandidate::dzError(), btagbtvdeep::ChargedCandidateFeatures::dzsig, pat::PackedCandidate::hasTrackDetails(), reco::TrackBase::loose, pat::PackedCandidate::pseudoTrack(), btagbtvdeep::ChargedCandidateFeatures::puppiw, pat::PackedCandidate::puppiWeight(), pat::PackedCandidate::pvAssociationQuality(), btagbtvdeep::ChargedCandidateFeatures::quality, and btagbtvdeep::ChargedCandidateFeatures::vtx_ass.
Referenced by commonCandidateToFeatures(), DeepDoubleXTagInfoProducer::produce(), and DeepFlavourTagInfoProducer::produce().
float btagbtvdeep::quality_from_pfcand | ( | const reco::PFCandidate & | pfcand | ) |
Definition at line 100 of file deep_helpers.cc.
References reco::PFCandidate::bestTrack(), muons_cff::highPurity, reco::TrackBase::highPurity, edm::Ref< C, T, F >::isNonnull(), reco::TrackBase::loose, jets_cff::quality, trackHighPurityMask, trackHighPurityShift, and reco::PFCandidate::trackRef().
Referenced by dump_vector(), DeepBoostedJetTagInfoProducer::fillParticleFeatures(), and recoCandidateToFeatures().
void btagbtvdeep::recoCandidateToFeatures | ( | const reco::PFCandidate * | n_pf, |
const reco::Jet & | jet, | ||
const float | drminpfcandsv, | ||
const float | jetR, | ||
const float | puppiw, | ||
NeutralCandidateFeatures & | n_pf_features | ||
) |
Definition at line 19 of file NeutralCandidateConverter.cc.
References funct::abs(), commonCandidateToFeatures(), reco::PFCandidate::ecalEnergy(), btagbtvdeep::NeutralCandidateFeatures::hadFrac, reco::PFCandidate::hcalEnergy(), reco::LeafCandidate::pdgId(), and btagbtvdeep::NeutralCandidateFeatures::puppiw.
void btagbtvdeep::recoCandidateToFeatures | ( | const reco::PFCandidate * | c_pf, |
const reco::Jet & | jet, | ||
const TrackInfoBuilder & | track_info, | ||
const float | drminpfcandsv, | ||
const float | jetR, | ||
const float | puppiw, | ||
const int | pv_ass_quality, | ||
const reco::VertexRef & | pv, | ||
ChargedCandidateFeatures & | c_pf_features, | ||
const bool | flip = false |
||
) |
Definition at line 38 of file ChargedCandidateConverter.cc.
References reco::PFCandidate::bestTrack(), catch_infs_and_bound(), btagbtvdeep::ChargedCandidateFeatures::chi2, commonCandidateToFeatures(), btagbtvdeep::ChargedCandidateFeatures::puppiw, btagbtvdeep::ChargedCandidateFeatures::quality, quality_from_pfcand(), btagbtvdeep::ChargedCandidateFeatures::vtx_ass, and vtx_ass_from_pfcand().
Referenced by commonCandidateToFeatures(), DeepDoubleXTagInfoProducer::produce(), and DeepFlavourTagInfoProducer::produce().
void btagbtvdeep::seedingTracksToFeatures | ( | const std::vector< reco::TransientTrack > & | selectedTracks, |
const std::vector< float > & | masses, | ||
const reco::Jet & | jet, | ||
const reco::Vertex & | pv, | ||
HistogramProbabilityEstimator * | probabilityEstimator, | ||
bool | computeProbabilities, | ||
std::vector< btagbtvdeep::SeedingTrackFeatures > & | seedingT_features_vector | ||
) |
Definition at line 23 of file SeedingTracksConverter.cc.
References IPTools::absoluteImpactParameter3D(), IPTools::absoluteTransverseImpactParameter(), btagbtvdeep::SeedingTrackInfoBuilder::buildSeedingTrackInfo(), btagbtvdeep::TrackPairInfoBuilder::buildTrackPairInfo(), btagbtvdeep::SeedingTrackFeatures::chi2reduced, IPTools::closestApproachToJet(), impactParameterTagInfos_cfi::computeProbabilities, reco::deltaR(), btagbtvdeep::TrackPairFeatures::deta_PCAjetDirs, btagbtvdeep::TrackPairFeatures::dist_PCAjetAxis, btagbtvdeep::TrackPairFeatures::distPCA, btagbtvdeep::TrackPairFeatures::dotprod_PCAjetMomenta, btagbtvdeep::TrackPairFeatures::dotprodSeed, btagbtvdeep::TrackPairFeatures::dotprodTrack, btagbtvdeep::TrackPairFeatures::dotprodTrackSeed2D, btagbtvdeep::TrackPairFeatures::dotprodTrackSeed3D, btagbtvdeep::TrackPairFeatures::dotprodTrackSeedVectors2D, btagbtvdeep::TrackPairFeatures::dotprodTrackSeedVectors3D, btagbtvdeep::TrackPairFeatures::dphi_PCAjetDirs, btagbtvdeep::TrackPairFeatures::dsigPCA, btagbtvdeep::TrackPairFeatures::dxy, btagbtvdeep::SeedingTrackFeatures::dxy, btagbtvdeep::TrackPairFeatures::dz, btagbtvdeep::SeedingTrackFeatures::dz, btagbtvdeep::TrackPairFeatures::eta, btagbtvdeep::SeedingTrackFeatures::eta, TrajectoryStateOnSurface::globalPosition(), mps_fire::i, btagbtvdeep::TrackPairFeatures::ip2D, btagbtvdeep::SeedingTrackFeatures::ip2D, btagbtvdeep::TrackPairFeatures::ip3D, btagbtvdeep::SeedingTrackFeatures::ip3D, TrajectoryStateOnSurface::isValid(), metsig::jet, btagbtvdeep::SeedingTrackFeatures::jetAxisDistance, btagbtvdeep::SeedingTrackFeatures::jetAxisDlength, IPTools::jetTrackDistance(), cmsBatch::log, logWithOffset(), mag(), btagbtvdeep::TrackPairFeatures::mass, btagbtvdeep::SeedingTrackFeatures::mass, btagbtvdeep::SeedingTrackFeatures::nearTracks, btagbtvdeep::SeedingTrackFeatures::nHits, btagbtvdeep::SeedingTrackFeatures::nPixelHits, btagbtvdeep::TrackPairInfoBuilder::pca_distance(), btagbtvdeep::TrackPairFeatures::phi, btagbtvdeep::SeedingTrackFeatures::phi, reco::Vertex::position(), btagbtvdeep::TrackPairFeatures::pt, btagbtvdeep::SeedingTrackFeatures::pt, MetAnalyzer::pv(), btagbtvdeep::TrackPairFeatures::pvd_PCAonSeed, btagbtvdeep::TrackPairFeatures::pvd_PCAonTrack, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), SurveyInfoScenario_cff::seed, btagbtvdeep::SeedingTrackFeatures::signedIp2D, btagbtvdeep::SeedingTrackFeatures::signedIp3D, btagbtvdeep::SeedingTrackFeatures::signedSip2D, btagbtvdeep::SeedingTrackFeatures::signedSip3D, btagbtvdeep::TrackPairFeatures::sip2D, btagbtvdeep::SeedingTrackFeatures::sip2D, btagbtvdeep::TrackPairFeatures::sip3D, btagbtvdeep::SeedingTrackFeatures::sip3D, btagbtvdeep::SeedingTrackInfoBuilder::sip3d_Signed(), btagbtvdeep::SeedingTrackFeatures::trackProbability2D, btagbtvdeep::SeedingTrackFeatures::trackProbability3D, groupFilesInBlocks::tt, reco::Vertex::x(), btagbtvdeep::TrackPairFeatures::x_PCAonSeed, btagbtvdeep::TrackPairFeatures::x_PCAonTrack, btagbtvdeep::TrackPairFeatures::xerr_PCAonSeed, btagbtvdeep::TrackPairFeatures::xerr_PCAonTrack, reco::Vertex::y(), btagbtvdeep::TrackPairFeatures::y_PCAonSeed, btagbtvdeep::TrackPairFeatures::y_PCAonTrack, btagbtvdeep::TrackPairFeatures::yerr_PCAonSeed, btagbtvdeep::TrackPairFeatures::yerr_PCAonTrack, reco::Vertex::z(), btagbtvdeep::TrackPairFeatures::z_PCAonSeed, btagbtvdeep::TrackPairFeatures::z_PCAonTrack, btagbtvdeep::TrackPairFeatures::zerr_PCAonSeed, and btagbtvdeep::TrackPairFeatures::zerr_PCAonTrack.
Referenced by DeepFlavourTagInfoProducer::produce().
void btagbtvdeep::seedTrack_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::SeedingTrackFeatures & | seed_features | ||
) |
Definition at line 78 of file tensor_fillers.cc.
References btagbtvdeep::SeedingTrackFeatures::chi2reduced, btagbtvdeep::SeedingTrackFeatures::dxy, btagbtvdeep::SeedingTrackFeatures::dz, btagbtvdeep::SeedingTrackFeatures::eta, btagbtvdeep::SeedingTrackFeatures::ip2D, btagbtvdeep::SeedingTrackFeatures::ip3D, btagbtvdeep::SeedingTrackFeatures::jetAxisDistance, btagbtvdeep::SeedingTrackFeatures::jetAxisDlength, btagbtvdeep::SeedingTrackFeatures::mass, btagbtvdeep::SeedingTrackFeatures::nHits, btagbtvdeep::SeedingTrackFeatures::nPixelHits, btagbtvdeep::SeedingTrackFeatures::phi, btagbtvdeep::SeedingTrackFeatures::pt, btagbtvdeep::SeedingTrackFeatures::signedIp2D, btagbtvdeep::SeedingTrackFeatures::signedIp3D, btagbtvdeep::SeedingTrackFeatures::signedSip2D, btagbtvdeep::SeedingTrackFeatures::signedSip3D, btagbtvdeep::SeedingTrackFeatures::sip2D, btagbtvdeep::SeedingTrackFeatures::sip3D, btagbtvdeep::SeedingTrackFeatures::trackProbability2D, and btagbtvdeep::SeedingTrackFeatures::trackProbability3D.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs(), and DeepVertexONNXJetTagsProducer::make_inputs().
void btagbtvdeep::sv_tensor_filler | ( | float *& | ptr, |
const btagbtvdeep::SecondaryVertexFeatures & | sv_features | ||
) |
Definition at line 56 of file tensor_fillers.cc.
References btagbtvdeep::SecondaryVertexFeatures::chi2, btagbtvdeep::SecondaryVertexFeatures::costhetasvpv, btagbtvdeep::SecondaryVertexFeatures::d3d, btagbtvdeep::SecondaryVertexFeatures::d3dsig, btagbtvdeep::SecondaryVertexFeatures::deltaR, btagbtvdeep::SecondaryVertexFeatures::dxy, btagbtvdeep::SecondaryVertexFeatures::dxysig, btagbtvdeep::SecondaryVertexFeatures::enratio, btagbtvdeep::SecondaryVertexFeatures::mass, btagbtvdeep::SecondaryVertexFeatures::normchi2, btagbtvdeep::SecondaryVertexFeatures::ntracks, and btagbtvdeep::SecondaryVertexFeatures::pt.
Referenced by DeepCombinedONNXJetTagsProducer::make_inputs().
bool btagbtvdeep::sv_vertex_comparator | ( | const SVType & | sva, |
const SVType & | svb, | ||
const PVType & | pv | ||
) |
Definition at line 43 of file deep_helpers.h.
References catch_infs(), and vertexDxy().
Referenced by DeepBoostedJetTagInfoProducer::fillSVFeatures(), DeepDoubleXTagInfoProducer::produce(), and DeepFlavourTagInfoProducer::produce().
template bool btagbtvdeep::sv_vertex_comparator< reco::VertexCompositePtrCandidate, reco::Vertex > | ( | const reco::VertexCompositePtrCandidate & | , |
const reco::VertexCompositePtrCandidate & | , | ||
const reco::Vertex & | |||
) |
void btagbtvdeep::svToFeatures | ( | const reco::VertexCompositePtrCandidate & | sv, |
const reco::Vertex & | pv, | ||
const reco::Jet & | jet, | ||
SecondaryVertexFeatures & | sv_features, | ||
const bool | flip = false |
||
) |
Definition at line 13 of file SecondaryVertexConverter.cc.
References catch_infs_and_bound(), btagbtvdeep::SecondaryVertexFeatures::chi2, btagbtvdeep::SecondaryVertexFeatures::costhetasvpv, btagbtvdeep::SecondaryVertexFeatures::d3d, btagbtvdeep::SecondaryVertexFeatures::d3dsig, btagbtvdeep::SecondaryVertexFeatures::deltaR, reco::deltaR(), btagbtvdeep::SecondaryVertexFeatures::dxy, btagbtvdeep::SecondaryVertexFeatures::dxysig, reco::LeafCandidate::energy(), btagbtvdeep::SecondaryVertexFeatures::enratio, btagbtvdeep::SecondaryVertexFeatures::mass, reco::LeafCandidate::mass(), reco::LeafCandidate::momentum(), btagbtvdeep::SecondaryVertexFeatures::normchi2, btagbtvdeep::SecondaryVertexFeatures::ntracks, reco::CompositePtrCandidate::numberOfDaughters(), btagbtvdeep::SecondaryVertexFeatures::pt, reco::LeafCandidate::pt(), btagbtvdeep::SecondaryVertexFeatures::ptrel, reco::VertexCompositePtrCandidate::vertexChi2(), vertexD3d(), vertexDdotP(), vertexDxy(), and reco::VertexCompositePtrCandidate::vertexNdof().
Referenced by DeepDoubleXTagInfoProducer::produce(), and DeepFlavourTagInfoProducer::produce().
Measurement1D btagbtvdeep::vertexD3d | ( | const reco::VertexCompositePtrCandidate & | svcand, |
const reco::Vertex & | pv | ||
) |
Definition at line 58 of file deep_helpers.cc.
References VertexDistance3D::distance(), reco::VertexCompositePtrCandidate::fillVertexCovariance(), and reco::LeafCandidate::vertex().
Referenced by DeepBoostedJetTagInfoProducer::fillSVFeatures(), and svToFeatures().
float btagbtvdeep::vertexDdotP | ( | const reco::VertexCompositePtrCandidate & | sv, |
const reco::Vertex & | pv | ||
) |
Definition at line 66 of file deep_helpers.cc.
References edmIntegrityCheck::d, reco::LeafCandidate::momentum(), AlCaHLTBitMon_ParallelJobs::p, reco::LeafCandidate::vx(), reco::LeafCandidate::vy(), reco::LeafCandidate::vz(), reco::Vertex::x(), reco::Vertex::y(), and reco::Vertex::z().
Referenced by DeepBoostedJetTagInfoProducer::fillSVFeatures(), and svToFeatures().
Measurement1D btagbtvdeep::vertexDxy | ( | const reco::VertexCompositePtrCandidate & | svcand, |
const reco::Vertex & | pv | ||
) |
Definition at line 50 of file deep_helpers.cc.
References VertexDistanceXY::distance(), reco::VertexCompositePtrCandidate::fillVertexCovariance(), and reco::LeafCandidate::vertex().
Referenced by DeepBoostedJetTagInfoProducer::fillSVFeatures(), sv_vertex_comparator(), and svToFeatures().
float btagbtvdeep::vtx_ass_from_pfcand | ( | const reco::PFCandidate & | pfcand, |
int | pv_ass_quality, | ||
const reco::VertexRef & | pv | ||
) |
Definition at line 90 of file deep_helpers.cc.
References edm::Ref< C, T, F >::isNonnull(), reco::PFCandidate::trackRef(), and pat::PackedCandidate::UsedInFitTight.
Referenced by dump_vector(), DeepBoostedJetTagInfoProducer::fillParticleFeatures(), and recoCandidateToFeatures().
|
static |
Definition at line 11 of file ShallowTagInfoConverter.cc.
Referenced by bTagToFeatures().
|
static |
Definition at line 6 of file deep_helpers.cc.