|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef JETTAGTOOLS_MV2TAG_H
6 #define JETTAGTOOLS_MV2TAG_H
22 #include "TLorentzVector.h"
26 class MV2Tag :
public extends<AthAlgTool, IMultivariateJetTagger>
41 const std::map<std::string,double>&
inputs,
42 const std::string& jetauthor)
const override;
73 float d0sgn_wrtJet(
const TLorentzVector&
jet,
const TLorentzVector& trk,
float d0sig)
const;
74 float z0sgn_wrtJet(
float trackTheta,
float trackZ0,
float jetEta)
const;
78 const std::vector<std::string>& inputVars)
const;
std::string m_taggerNameBase
virtual StatusCode initialize() override
double GetClassResponse(const std::vector< float > &vars, const MVAUtils::BDT *bdt) const
std::vector< float > CreateVariables(const std::map< std::string, double > &inputs, const std::vector< std::string > &inputVars) const
std::vector< float > GetMulticlassResponse(const std::vector< float > &vars, const MVAUtils::BDT *bdt) const
std::map< std::string, std::string > m_MVTM_name_backtrans
Map from names in calibration file to names in tool input.
Simplified Boosted Regression Tree, support TMVA, lgbm, and xgboost.
std::atomic< int > m_warnCounter
virtual void assignProbability(xAOD::BTagging *BTag, const std::map< std::string, double > &inputs, const std::string &jetauthor) const override
float d0sgn_wrtJet(const TLorentzVector &jet, const TLorentzVector &trk, float d0sig) const
std::map< std::string, double > m_defaultvals
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_xAODBaseName
const unsigned m_nClasses
float z0sgn_wrtJet(float trackTheta, float trackZ0, float jetEta) const
MV2Tag(const std::string &name, const std::string &n, const IInterface *)
The namespace of all packages in PhysicsAnalysis/JetTagging.
SG::ReadCondHandleKey< JetTagCalibCondData > m_readKey
Key of calibration data:
std::atomic< bool > m_disableAlgo
std::string m_MV2CalibAlias
std::string m_runModus
This switch is needed to indicate what to do.
float GetGradBoostMVA(const std::vector< float > &values) const
virtual ~MV2Tag()=default
Implementations of the methods defined in the abstract base class.
@ BTag
The object is a b-tagging object.
bool m_forceMV2CalibrationAlias
std::vector< float > GetMultiResponse(const std::vector< float > &values, unsigned int numClasses) const
Get response of the forest, for multiclassification (e.g.
std::map< std::string, std::string > m_MVTM_name_translations
Map from names in tool input to names in calibration file.