![]() |
ATLAS Offline Software
|
#include <JetQGTaggerBDT.h>
Classes | |
struct | Tagger |
Slot-specific TMVA tool and associated variables. More... | |
Public Member Functions | |
JetQGTaggerBDT (const std::string &name) | |
Constructor. More... | |
virtual StatusCode | initialize () override |
Run once at the start of the job to setup everything. More... | |
virtual StatusCode | tag (const xAOD::Jet &jet) const override |
IBoostedJetTagger interface. More... | |
virtual StatusCode | decorate (const xAOD::JetContainer &jets) const override |
Decorate jet collection with tagging info. More... | |
virtual void | print () const |
Print the state of the tool. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysInitialize () override |
Perform system initialization for an algorithm. More... | |
virtual StatusCode | sysStart () override |
Handle START transition. More... | |
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
Return this algorithm's input handles. More... | |
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
Return this algorithm's output handles. More... | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
Declare a new Gaudi property. More... | |
void | updateVHKA (Gaudi::Details::PropertyBase &) |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
virtual StatusCode | modify (xAOD::JetContainer &jets) const override final |
Concrete implementation of the function inherited from IJetModifier. More... | |
Protected Types | |
enum | TAGCLASS { Unknown, WBoson, ZBoson, TopQuark } |
TAGTYPE enum. More... | |
Protected Member Functions | |
StatusCode | getConfigReader () |
Get configReader StatusCode. More... | |
StatusCode | resetCuts (asg::AcceptData &acceptData) const |
Reset cuts. More... | |
bool | passKinRange (const xAOD::Jet &jet) const |
Check if jet passes kinematic constraints. More... | |
StatusCode | checkKinRange (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
Check and record if jet passes kinematic constraints. More... | |
int | calculateJSSRatios (const xAOD::Jet &jet) const |
Calculate JSS moment ratios in case they are not already saved TODO: Remove this once JSSMomentTools is modified to take const jets. More... | |
int | findPV () const |
Find the PV (to be used for Ntrk) More... | |
StatusCode | GetUnGroomTracks (const xAOD::Jet &jet, int indexPV) const |
Retrieve Ntrk variable from the ungroomed parent jet. More... | |
StatusCode | getWeight (const xAOD::Jet &jet, bool passSel, asg::AcceptData &acceptData) const |
Get SF weight. More... | |
std::pair< double, double > | getSF (const xAOD::Jet &jet, const std::string &truthLabelStr) const |
Get scale factor and efficiency. More... | |
std::string | getTruthLabelStr (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
void | printCuts () const |
Print configured cuts. More... | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Protected Attributes | |
TEnv | m_configReader |
TEnv instance to read config files. More... | |
asg::AcceptInfo | m_acceptInfo |
Object that stores the results for a jet. More... | |
SG::ReadHandleKey< xAOD::JetContainer > | m_jetContainer_key {this, "JetContainer", "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets", "SG key for input jet container"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTaggedKey {this, "TaggedName", "Tagged", "SG key for Tagged"} |
WriteDecorHandle keys for tagging bools. More... | |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidPtRangeHighKey {this, "ValidPtRangeHighName", "ValidPtRangeHigh", "SG key for ValidPtRangeHigh"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidPtRangeLowKey {this, "ValidPtRangeLowName", "ValidPtRangeLow", "SG key for ValidPtRangeLow"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidEtaRangeKey {this, "ValidEtaRangeName", "ValidEtaRange", "SG key for ValidEtaRange"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidKinRangeKey {this, "ValidKinRangeName", "ValidKinRange", "SG key for ValidKinRange"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidJetContentKey {this, "ValidJetContentName", "ValidJetContent", "SG key for ValidJetContent"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidEventContentKey {this, "ValidEventContentName", "ValidEventContent", "SG key for ValidEventContent"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decPassMassKey {this, "PassMassName", "PassMass", "SG key for PassMass"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decPassScoreKey {this, "PassScoreName", "PassScore", "SG key for PassScore"} |
const int | m_nWarnMax = 10 |
Maximum number of warnings. More... | |
std::atomic< int > | m_nWarnVar |
Warning counters. More... | |
bool | m_ptGeV = false |
Flag to indicate units pT is defined in Set to false by default. More... | |
bool | m_useMassCut = false |
Flag to indicate if mass window cut is used. More... | |
bool | m_useScoreCut = false |
Flag to indicate if a discriminant score is used. More... | |
TAGCLASS | m_tagClass |
std::string | m_containerName |
Configurable members. More... | |
std::string | m_weightConfigPath |
Path to the SF configuration root file. More... | |
std::string | m_configFile |
Configuration file name. More... | |
std::string | m_calibArea |
Location where config files live on cvmfs. More... | |
std::string | m_kerasConfigFileName |
Keras configurations for ML taggers. More... | |
std::string | m_kerasConfigFilePath |
std::string | m_kerasConfigOutputName |
std::string | m_kerasCalibArea |
std::string | m_tmvaConfigFileName |
TMVA configurations for BDT taggers. More... | |
std::string | m_tmvaConfigFilePath |
std::string | m_tmvaCalibArea |
std::string | m_wkpt |
Tagger information. More... | |
std::string | m_tagType |
float | m_jetPtMin |
Kinematic bounds for the jet - the units are controlled by m_ptGeV. More... | |
float | m_jetPtMax |
float | m_jetEtaMax |
bool | m_useECFG = false |
Flags controlling whether generalized ECF moments or L-series ratios are needed TODO: Implement the functionality controlled by these. More... | |
bool | m_useLSeries = false |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTau21WTAKey {this, "Tau21WTANameOut", "Tau21_wta", "SG key for Tau21_wta"} |
WriteDecorHandle keys for JSS moments. More... | |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTau32WTAKey {this, "Tau32WTANameOut", "Tau32_wta", "SG key for Tau32_wta"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTau42WTAKey {this, "Tau42WTANameOut", "Tau42_wta", "SG key for Tau42_wta"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decC2Key {this, "C2NameOut", "C2", "SG key for C2"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decD2Key {this, "D2NameOut", "D2", "SG key for D2"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decE3Key {this, "e3NameOut", "e3", "SG key for e3"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decL2Key {this, "L2NameOut", "L2", "SG key for L2"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decL3Key {this, "L3NameOut", "L3", "SG key for L3"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau1WTAKey {this, "Tau1WTAName", "Tau1_wta", "SG key for Tau1_wta"} |
ReadDecorHandle keys for JSS moments. More... | |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau2WTAKey {this, "Tau2WTAName", "Tau2_wta", "SG key for Tau2_wta"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau3WTAKey {this, "Tau3WTAName", "Tau3_wta", "SG key for Tau3_wta"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau4WTAKey {this, "Tau4WTAName", "Tau4_wta", "SG key for Tau4_wta"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau21WTAKey {this, "Tau21WTAName", "Tau21_wta", "SG key for Tau21_wta"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau32WTAKey {this, "Tau32WTAName", "Tau32_wta", "SG key for Tau32_wta"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau42WTAKey {this, "Tau42WTAName", "Tau42_wta", "SG key for Tau42_wta"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECF1Key {this, "ECF1Name", "ECF1", "SG key for ECF1"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECF2Key {this, "ECF2Name", "ECF2", "SG key for ECF2"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECF3Key {this, "ECF3Name", "ECF3", "SG key for ECF3"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readC2Key {this, "C2Name", "C2", "SG key for C2"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readD2Key {this, "D2Name", "D2", "SG key for D2"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readE3Key {this, "e3Name", "e3", "SG key for e3"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readSplit12Key {this, "Split12Name", "Split12", "SG key for Split12"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readSplit23Key {this, "Split23Name", "Split23", "SG key for Split23"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readQwKey {this, "QwName", "Qw", "SG key for Qw"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readThrustMajKey {this, "ThrustMajName", "ThrustMaj", "SG key for ThrustMaj"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readSphericityKey {this, "SphericityName", "Sphericity", "SG key for Sphericity"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readL2Key {this, "L2Name", "L2", "SG key for L2"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readL3Key {this, "L3Name", "L3", "SG key for L3"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECFG331Key {this, "ECFG331Name", "ECFG_3_3_1", "SG key for ECFG_3_3_1"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECFG311Key {this, "ECFG311Name", "ECFG_3_1_1", "SG key for ECFG_3_1_1"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECFG212Key {this, "ECFG212Name", "ECFG_2_1_2", "SG key for ECFG_2_1_2"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readParentKey {this, "ParentName", "Parent", "SG key for Parent"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decNtrk500Key {this, "Ntrk500NameOut", "ParentJetNTrkPt500", "SG key for Ntrk500 from ungroomed jet"} |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readNtrk500Key {this, "Ntrk500Name", "ParentJetNTrkPt500", "SG key for Ntrk500 from ungroomed jet"} |
bool | m_suppressOutputDependence |
std::string | m_strMassCutLow |
Strings for cut functions. More... | |
std::string | m_strMassCutHigh |
std::string | m_strScoreCut |
std::unique_ptr< TF1 > | m_funcMassCutLow |
TF1 for cut functions. More... | |
std::unique_ptr< TF1 > | m_funcMassCutHigh |
std::unique_ptr< TF1 > | m_funcScoreCut |
std::string | m_decorationName |
Decoration name. More... | |
bool | m_calcSF |
Flag to calculate scale factor. More... | |
bool | m_isMC |
std::string | m_weightDecorationName |
String for scale factor decoration names. More... | |
std::string | m_weightFileName |
std::string | m_weightHistogramName |
std::string | m_efficiencyHistogramName |
std::string | m_weightFlavors |
std::unique_ptr< TFile > | m_weightConfig |
Histograms for scale factors. More... | |
std::map< std::string, std::unique_ptr< TH2D > > | m_weightHistograms |
std::map< std::string, std::unique_ptr< TH2D > > | m_efficiencyHistograms |
bool | m_truthLabelUseTRUTH3 |
Truth label options. More... | |
std::string | m_truthParticleContainerName |
std::string | m_truthBosonContainerName |
std::string | m_truthTopQuarkContainerName |
std::string | m_truthLabelName |
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTruthLabelKey {this, "truthLabelName", "truthLabel", "SG key for truthLabel"} |
Truth label ReadDecorHandle key. More... | |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decCutMLowKey {this, "CutMLowName", "Cut_mlow", "SG key for Cut_mlow"} |
WriteDecorHandle keys for cut values. More... | |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decCutMHighKey {this, "CutMHighName", "Cut_mhigh", "SG key for Cut_mhigh"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decScoreCutKey {this, "CutScoreName", "Cut_score", "SG key for Cut_score"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decScoreValueKey {this, "ScoreName", "Score", "SG key for Score"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decWeightKey {this, "weightName", "weight", "SG key for weight"} |
WriteDecorHandle keys for SF. More... | |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decEfficiencyKey {this, "efficiencyName", "efficiency", "SG key for efficiency"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decEffSFKey {this, "effSFName", "effSF", "SG key for effSF"} |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decSigeffSFKey {this, "sigeffSFName", "sigeffSF", "SG key for effSF"} |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
float | getScore (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
Retrieve BDT score. More... | |
bool | getJetProperties (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
Update the jet substructure variables for each jet to use in BDT. More... | |
bool | getPrecomputedVariables (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
bool | calculateVariables (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
bool | isCorrectNumberOfTracks (int expectedNTracks, int nTracksFromGhostTracks) const |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
SG::SlotSpecificObj< Tagger > m_bdtTagger | ATLAS_THREAD_SAFE |
std::string | m_BDTmethod |
asg::AnaToolHandle< InDet::IInDetTrackSelectionTool > | m_trkSelectionTool |
int | m_mode |
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decScoreKey {this, "QGTaggerBDTScore", "QGTaggerBDTScore", "SG key for QGTaggerBDTScore"} |
WriteDecorHandle keys. More... | |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Definition at line 22 of file JetQGTaggerBDT.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
protectedinherited |
CP::JetQGTaggerBDT::JetQGTaggerBDT | ( | const std::string & | name | ) |
Constructor.
Jet kinematics
Replace base class default value for JetEtaMax
Tagger configuration
Overwrite base class default
0 uses the tracks. 1 uses variables from the jets (default)
Definition at line 15 of file JetQGTaggerBDT.cxx.
Calculate JSS moment ratios in case they are not already saved TODO: Remove this once JSSMomentTools is modified to take const jets.
Calculate JSS moment ratios in case they are not already saved These are calculated by hand here because JetSubStructureMomentTools does not operate on const jets.
This should be changed in the future
Create write decor handles
Create read decor handles
WTA N-subjettiness ratios
ECF ratios
Definition at line 416 of file JSSTaggerBase.cxx.
|
private |
calculate q/g tagging variables from GhostTracks associated to jet some derivations apply slimming to these tracks, which would lead to wrong values. so we compare the number of GhostTracks to NumTrkPt500 (i.e. nTracks) if they are "close enough" we can proceed
take the first vertex in the list that is a primary vertex
NTracks
if NumTrkPt500 is not available, I can't confirm that the number of GhostTracks is correct (i.e. unslimmed)
TrackWidth
if TrackWidthPt500 is not available, we can maybe calculate it from tracks
TrackC1
track selection
calculate TrackC1 (and TrackWidth if necessary)
Definition at line 230 of file JetQGTaggerBDT.cxx.
|
protectedinherited |
Check and record if jet passes kinematic constraints.
Check each kinematic constraint Print warnings using counters
Create write decor handles
Decorate kinematic pass information
Definition at line 370 of file JSSTaggerBase.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
overridevirtualinherited |
Decorate jet collection with tagging info.
Loop over jet collection and decorate each jet.
Implements IJetDecorator.
Reimplemented in JSSWTopTaggerANN.
Definition at line 289 of file JSSTaggerBase.cxx.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
protectedinherited |
|
protectedinherited |
Get configReader StatusCode.
Get configReader TEnv.
Check for the existence of the configuration file
https://root.cern.ch/root/roottalk/roottalk02/5332.html
Definition at line 300 of file JSSTaggerBase.cxx.
|
private |
Update the jet substructure variables for each jet to use in BDT.
Definition at line 166 of file JetQGTaggerBDT.cxx.
|
inherited |
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
|
private |
Definition at line 195 of file JetQGTaggerBDT.cxx.
Get one of the tool's properties.
|
private |
Retrieve BDT score.
Load the new values of the variables for this jet
evaluate bdt
Definition at line 150 of file JetQGTaggerBDT.cxx.
|
protectedinherited |
Get scale factor and efficiency.
To apply W-tagging efficiency SF to Z-tagger, jet mass is shifted by 10.803 GeV
Definition at line 670 of file JSSTaggerBase.cxx.
|
protectedinherited |
Truth label string
Truth label value
Contained top tagger
Contained top
QCD
TCC W/Z 2-var tagger
Top
W/Z
QCD
Pass mass and D2
Fail mass, pass D2
Pass mass, fail D2
Fail mass and D2
W/Z tagger
Top
W/Z
QCD
Top
QCD
Definition at line 728 of file JSSTaggerBase.cxx.
|
protectedinherited |
Retrieve Ntrk variable from the ungroomed parent jet.
Retrieve the Ntrk variable from the ungroomed parent jet.
Definition at line 553 of file JSSTaggerBase.cxx.
|
protectedinherited |
Get SF weight.
Inefficiency SF is directly used
Efficiency SF
Calculate inefficiency SF
If inefficiency SF is not available, SF is always 1.0
Create write decor handles
Decorate values
Definition at line 596 of file JSSTaggerBase.cxx.
|
overridevirtual |
Run once at the start of the job to setup everything.
Get configReader
if the calibArea is specified to be "Local" then it looks in the same place as the top level configs
convert the JSON config file name to the full path
get the config file from CVMFS necessary because xml files are too large to house on the data space
Make sure score cut string is not empty
set up InDet selection tool
read json file for DNN weights
– Initialize TMVA for BDTs for each slot
configure the bdt
Initialize WriteDecorHandle keys
Call base class initialize
Reimplemented from JSSTaggerBase.
Definition at line 34 of file JetQGTaggerBDT.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
some derivations do not store all tracks associated to the jet. In this case the calculation of the tagging variables will be wrong. The requirements are fairly loose, because a few tracks may get lost in the derivation production. But it will fail quickly if the too many tracks were slimmed away.
Definition at line 350 of file JetQGTaggerBDT.cxx.
|
inlinefinaloverridevirtualinherited |
Concrete implementation of the function inherited from IJetModifier.
Implements IJetModifier.
Definition at line 32 of file IJetDecorator.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, top::TopObjectSelection, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
|
protectedinherited |
Print configured cuts.
Definition at line 817 of file JSSTaggerBase.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
protectedinherited |
Reset cuts.
Reset the AcceptData cut results to false
Initialize common cuts to true by default
Definition at line 338 of file JSSTaggerBase.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
IBoostedJetTagger interface.
Create asg::AcceptData object
Reset the AcceptData cut results
Check basic kinematic selection
Create WriteDecorHandles
TODO: Is this actually needed?
Get BDT score
Get cut from cut function
Decorate score to jet
Check score against cut and decorate result
Implements JSSTaggerBase.
Definition at line 109 of file JetQGTaggerBDT.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
mutableprivate |
Definition at line 61 of file JetQGTaggerBDT.h.
|
protectedinherited |
Object that stores the results for a jet.
Definition at line 65 of file JSSTaggerBase.h.
|
private |
Definition at line 62 of file JetQGTaggerBDT.h.
|
protectedinherited |
Flag to calculate scale factor.
Definition at line 205 of file JSSTaggerBase.h.
|
protectedinherited |
Location where config files live on cvmfs.
Definition at line 114 of file JSSTaggerBase.h.
|
protectedinherited |
Configuration file name.
Definition at line 111 of file JSSTaggerBase.h.
|
protectedinherited |
TEnv instance to read config files.
Definition at line 62 of file JSSTaggerBase.h.
|
protectedinherited |
|
protectedinherited |
Definition at line 146 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 232 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for cut values.
Definition at line 231 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 147 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 148 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 238 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 239 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 149 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 150 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 186 of file JSSTaggerBase.h.
|
protectedinherited |
Decoration name.
Definition at line 202 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 79 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 80 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 233 of file JSSTaggerBase.h.
|
private |
WriteDecorHandle keys.
Definition at line 69 of file JetQGTaggerBDT.h.
|
protectedinherited |
Definition at line 234 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 240 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for tagging bools.
Definition at line 71 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for JSS moments.
Definition at line 142 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 143 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 144 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 74 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 77 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 76 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 75 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 72 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 73 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for SF.
Definition at line 237 of file JSSTaggerBase.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 212 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 218 of file JSSTaggerBase.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 198 of file JSSTaggerBase.h.
|
protectedinherited |
TF1 for cut functions.
Definition at line 197 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 199 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 206 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 68 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 134 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 133 of file JSSTaggerBase.h.
|
protectedinherited |
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
Definition at line 132 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 120 of file JSSTaggerBase.h.
|
protectedinherited |
Keras configurations for ML taggers.
Definition at line 117 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 118 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 119 of file JSSTaggerBase.h.
|
private |
Definition at line 66 of file JetQGTaggerBDT.h.
|
protectedinherited |
Maximum number of warnings.
Definition at line 83 of file JSSTaggerBase.h.
|
mutableprotectedinherited |
Warning counters.
Definition at line 86 of file JSSTaggerBase.h.
|
protectedinherited |
Flag to indicate units pT is defined in Set to false by default.
Definition at line 90 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 166 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 167 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 168 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 162 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 163 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 164 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 183 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 182 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 181 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 178 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 179 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 187 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 185 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 173 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 176 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 170 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 171 of file JSSTaggerBase.h.
|
protectedinherited |
ReadDecorHandle keys for JSS moments.
Definition at line 153 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 158 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 154 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 159 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 155 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 160 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 156 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 175 of file JSSTaggerBase.h.
|
protectedinherited |
Truth label ReadDecorHandle key.
Definition at line 228 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 193 of file JSSTaggerBase.h.
|
protectedinherited |
Strings for cut functions.
Definition at line 192 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 194 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 189 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 100 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 129 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 125 of file JSSTaggerBase.h.
|
protectedinherited |
TMVA configurations for BDT taggers.
Definition at line 123 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 124 of file JSSTaggerBase.h.
|
private |
Definition at line 64 of file JetQGTaggerBDT.h.
|
protectedinherited |
Definition at line 223 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 225 of file JSSTaggerBase.h.
|
protectedinherited |
Truth label options.
Definition at line 221 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 222 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 224 of file JSSTaggerBase.h.
|
protectedinherited |
Flags controlling whether generalized ECF moments or L-series ratios are needed TODO: Implement the functionality controlled by these.
Definition at line 138 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 139 of file JSSTaggerBase.h.
|
protectedinherited |
Flag to indicate if mass window cut is used.
Definition at line 93 of file JSSTaggerBase.h.
|
protectedinherited |
Flag to indicate if a discriminant score is used.
Definition at line 96 of file JSSTaggerBase.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
protectedinherited |
Histograms for scale factors.
Definition at line 216 of file JSSTaggerBase.h.
|
protectedinherited |
Path to the SF configuration root file.
Definition at line 108 of file JSSTaggerBase.h.
|
protectedinherited |
String for scale factor decoration names.
Definition at line 209 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 210 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 213 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 211 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 217 of file JSSTaggerBase.h.
|
protectedinherited |
Tagger information.
Definition at line 128 of file JSSTaggerBase.h.