![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef BOOSTEDJETSTAGGERS_JSSTAGGERBASE_H
6 #define BOOSTEDJETSTAGGERS_JSSTAGGERBASE_H
269 std::pair<double,double>
getSF(
const xAOD::Jet&
jet,
const std::string& truthLabelStr )
const;
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readParentKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
~JSSTaggerBase()
Default destructor - to be used in all derived classes.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau4WTAKey
bool m_suppressOutputDependence
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSplit23Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF1Key
std::string getTruthLabelStr(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decScoreCutKey
std::string m_strMassCutLow
Strings for cut functions.
std::unique_ptr< TF1 > m_funcScoreCut
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau32WTAKey
StatusCode resetCuts(asg::AcceptData &acceptData) const
Reset cuts.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readNtrk500Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG311Key
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainer_key
std::atomic< int > m_nWarnVar
Warning counters.
bool m_useMassCut
Flag to indicate if mass window cut is used.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau42WTAKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEtaRangeKey
std::string m_kerasCalibArea
std::map< std::string, std::unique_ptr< TH2D > > m_efficiencyHistograms
std::string m_configFile
Configuration file name.
bool m_useScoreCut
Flag to indicate if a discriminant score is used.
std::string m_tmvaCalibArea
TEnv m_configReader
TEnv instance to read config files.
const int m_nWarnMax
Maximum number of warnings.
std::string m_weightFileName
virtual StatusCode tag(const xAOD::Jet &jet) const =0
Decorate single jet with tagging info.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassScoreKey
StatusCode getWeight(const xAOD::Jet &jet, bool passSel, asg::AcceptData &acceptData) const
Get SF weight.
Interface for adding a decoration to a jet container.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau2WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSplit12Key
float m_jetPtMin
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL3Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutMLowKey
WriteDecorHandle keys for cut values.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decC2Key
std::string m_decorationName
Decoration name.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG331Key
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau21WTAKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeHighKey
std::unique_ptr< TF1 > m_funcMassCutHigh
std::string m_weightHistogramName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidJetContentKey
std::string m_calibArea
Location where config files live on cvmfs.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decWeightKey
WriteDecorHandle keys for SF.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTruthLabelKey
Truth label ReadDecorHandle key.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decSigeffSFKey
std::string m_truthLabelName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decE3Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutMHighKey
bool m_ptGeV
Flag to indicate units pT is defined in Set to false by default.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau32WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readQwKey
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate jet collection with tagging info.
std::pair< double, double > getSF(const xAOD::Jet &jet, const std::string &truthLabelStr) const
Get scale factor and efficiency.
std::unique_ptr< TFile > m_weightConfig
Histograms for scale factors.
std::string m_kerasConfigOutputName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG212Key
std::string m_tmvaConfigFileName
TMVA configurations for BDT taggers.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode checkKinRange(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
Check and record if jet passes kinematic constraints.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readL3Key
std::string m_efficiencyHistogramName
std::string m_strScoreCut
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau42WTAKey
bool m_useECFG
Flags controlling whether generalized ECF moments or L-series ratios are needed TODO: Implement the f...
int calculateJSSRatios(const xAOD::Jet &jet) const
Calculate JSS moment ratios in case they are not already saved TODO: Remove this once JSSMomentTools ...
std::string m_truthBosonContainerName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEffSFKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decNtrk500Key
std::string m_wkpt
Tagger information.
bool m_calcSF
Flag to calculate scale factor.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEventContentKey
StatusCode GetUnGroomTracks(const xAOD::Jet &jet, int indexPV) const
Retrieve Ntrk variable from the ungroomed parent jet.
int findPV() const
Find the PV (to be used for Ntrk)
std::string m_tmvaConfigFilePath
std::string m_kerasConfigFilePath
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decD2Key
std::string m_truthTopQuarkContainerName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readThrustMajKey
virtual StatusCode initialize() override
Initialize the tool.
asg::AcceptInfo m_acceptInfo
Object that stores the results for a jet.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau21WTAKey
WriteDecorHandle keys for JSS moments.
bool m_truthLabelUseTRUTH3
Truth label options.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decScoreValueKey
void printCuts() const
Print configured cuts.
std::string m_weightDecorationName
String for scale factor decoration names.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidKinRangeKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau1WTAKey
ReadDecorHandle keys for JSS moments.
std::map< std::string, std::unique_ptr< TH2D > > m_weightHistograms
bool passKinRange(const xAOD::Jet &jet) const
Check if jet passes kinematic constraints.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeLowKey
std::string m_truthParticleContainerName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSphericityKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau3WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readD2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF3Key
StatusCode getConfigReader()
Get configReader StatusCode.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassMassKey
JSSTaggerBase(const std::string &name)
Default constructor - to be used in all derived classes.
std::unique_ptr< TF1 > m_funcMassCutLow
TF1 for cut functions.
std::string m_strMassCutHigh
std::string m_kerasConfigFileName
Keras configurations for ML taggers.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL2Key
std::string m_weightConfigPath
Path to the SF configuration root file.
std::string m_weightFlavors
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readE3Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readL2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readC2Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTaggedKey
WriteDecorHandle keys for tagging bools.
std::string m_containerName
Configurable members.