ATLAS Offline Software
|
#include <JSSWTopTaggerANN.h>
Public Member Functions | |
JSSWTopTaggerANN (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 |
Decorate single jet with tagging info. 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... | |
void | decorateJSSRatios (const xAOD::JetContainer &jets) const |
int | findPV () const |
Find the PV (to be used for Ntrk) More... | |
int | 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::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_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_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_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"} |
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 | |
double | getScore (const xAOD::Jet &jet) const |
Retrieve score for a given ANN type (top/W) More... | |
std::map< std::string, std::map< std::string, double > > | getJetProperties (const xAOD::Jet &jet) const |
Update the jet substructure variables for each jet to use in ANN. More... | |
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 | |
std::unique_ptr< lwt::LightweightGraph > | m_lwnn |
ANN tools. More... | |
std::map< std::string, std::map< std::string, double > > | m_ANN_inputValues |
std::vector< std::string > | m_out_names |
Internal stuff to keep track of the output node for the NN. 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 15 of file JSSWTopTaggerANN.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
protectedinherited |
JSSWTopTaggerANN::JSSWTopTaggerANN | ( | const std::string & | name | ) |
Constructor.
Definition at line 10 of file JSSWTopTaggerANN.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 391 of file JSSTaggerBase.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 345 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.
|
overridevirtual |
Decorate jet collection with tagging info.
Loop over jet collection and decorate each jet.
Reset the AcceptData cut results
Check each kinematic constraint Print warnings using counters
Get the relevant attributes of the jet Mass and pt - note that this will depend on the configuration of the calibration used
Get score
Evaluate the values of the upper and lower mass bounds and the d2 cut
Print cut criteria and jet values
Get SF weight
Inefficiency SF is directly used
Efficiency SF
Calculate inefficiency SF
If inefficiency SF is not available, SF is always 1.0
Decorate cut information if needed
Decorate values
Cut summary
Set the AcceptData depending on whether it is a W/Z or a top tagger
Reimplemented from JSSTaggerBase.
Definition at line 216 of file JSSWTopTaggerANN.cxx.
|
protectedinherited |
Create write decor handles
Create read decor handles
WTA N-subjettiness ratios
ECF ratios
Definition at line 504 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 275 of file JSSTaggerBase.cxx.
|
private |
Update the jet substructure variables for each jet to use in ANN.
Map to store inputs
Create common read decor handles
Mass and pT It is assumed that these are the combined and calibrated mass and pT
Splitting scales
Energy Correlation Functions
Tau21 WTA
Other moments
Create top quark read decor handles
Additional splitting Scales
e3 := normalized ECF3/ECF1**3
N-subjettiness
Qw observable for top tagging
Definition at line 508 of file JSSWTopTaggerANN.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.
Get one of the tool's properties.
Retrieve score for a given ANN type (top/W)
Create input dictionary map<string,double> for argument to lwtnn
Evaluate the network response
Obtain the output associated with the single output node
Check that input variables are valid
Definition at line 474 of file JSSWTopTaggerANN.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 752 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 810 of file JSSTaggerBase.cxx.
Retrieve Ntrk variable from the ungroomed parent jet.
Retrieve the Ntrk variable from the ungroomed parent jet.
Definition at line 640 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 678 of file JSSTaggerBase.cxx.
|
overridevirtual |
Run once at the start of the job to setup everything.
Initialize the tagger.
Pt values are defined in GeV
Use mass cut
Use discriminant score cut
Get configReader
Get tagger type
Get the CVMFS calib area where stuff is stored If this is set to "Local" then it will look for the config file in the share space
Get the name/path of the JSON config
Get the name of the Keras output node
Get min and max jet mass. The unit is GeV now. Need to be consistent with ATLAS convention in the future
Get min and max jet pt. The unit is GeV now. Need to be consistent with ATLAS convention in the future
Get cut for ANN score
Get the decoration name
Get the scale factor configuration
Get truth label name information
Print out the configuration parameters for viewing
No config file
Assume the cut functions have been set through properties. Check they are non empty
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
Read json file for ANN weights
Build the network
Set internal tagger type
Set the possible states that the tagger can be left in after the JSSTaggerBase::tag() function is called
Loop over and print out the cuts that have been configured
Call base class initialize
Reimplemented from JSSTaggerBase.
Definition at line 18 of file JSSWTopTaggerANN.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.
|
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, 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 899 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 313 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.
Decorate single jet with tagging info.
Create asg::AcceptData object
Reset the AcceptData cut results
Check basic kinematic selection
Get the relevant attributes of the jet Mass and pt - note that this will depend on the configuration of the calibration used
Calculate NSubjettiness and ECF ratios
Get ANN score for the jet
Evaluate the values of the upper and lower mass bounds and the d2 cut
Print cut criteria and jet values
Get SF weight
Decorate cut information if needed
Create WriteDecorHandles
Decorate values
Cut summary
Set the AcceptData depending on whether it is a W/Z or a top tagger
Implements JSSTaggerBase.
Definition at line 390 of file JSSWTopTaggerANN.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
protectedinherited |
Object that stores the results for a jet.
Definition at line 65 of file JSSTaggerBase.h.
|
private |
Definition at line 35 of file JSSWTopTaggerANN.h.
|
protectedinherited |
Flag to calculate scale factor.
Definition at line 189 of file JSSTaggerBase.h.
|
protectedinherited |
Location where config files live on cvmfs.
Definition at line 111 of file JSSTaggerBase.h.
|
protectedinherited |
Configuration file name.
Definition at line 108 of file JSSTaggerBase.h.
|
protectedinherited |
TEnv instance to read config files.
Definition at line 62 of file JSSTaggerBase.h.
|
protectedinherited |
|
protectedinherited |
Definition at line 143 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 216 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for cut values.
Definition at line 215 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 144 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 145 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 222 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 223 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 146 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 147 of file JSSTaggerBase.h.
|
protectedinherited |
Decoration name.
Definition at line 186 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 76 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 77 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 217 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 218 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 224 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for tagging bools.
Definition at line 68 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for JSS moments.
Definition at line 139 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 140 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 141 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 71 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 74 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 73 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 72 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 69 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 70 of file JSSTaggerBase.h.
|
protectedinherited |
WriteDecorHandle keys for SF.
Definition at line 221 of file JSSTaggerBase.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 196 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 202 of file JSSTaggerBase.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 182 of file JSSTaggerBase.h.
|
protectedinherited |
TF1 for cut functions.
Definition at line 181 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 183 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 190 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 131 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 130 of file JSSTaggerBase.h.
|
protectedinherited |
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
Definition at line 129 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 117 of file JSSTaggerBase.h.
|
protectedinherited |
Keras configurations for ML taggers.
Definition at line 114 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 115 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 116 of file JSSTaggerBase.h.
|
private |
ANN tools.
Definition at line 34 of file JSSWTopTaggerANN.h.
|
protectedinherited |
Maximum number of warnings.
Definition at line 80 of file JSSTaggerBase.h.
|
mutableprotectedinherited |
Warning counters.
Definition at line 83 of file JSSTaggerBase.h.
|
private |
Internal stuff to keep track of the output node for the NN.
Definition at line 38 of file JSSWTopTaggerANN.h.
|
protectedinherited |
Flag to indicate units pT is defined in Set to false by default.
Definition at line 87 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 155 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 156 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 157 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 169 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 168 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 167 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 171 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 162 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 165 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 159 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 160 of file JSSTaggerBase.h.
|
protectedinherited |
ReadDecorHandle keys for JSS moments.
Definition at line 150 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 151 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 152 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 153 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 164 of file JSSTaggerBase.h.
|
protectedinherited |
Truth label ReadDecorHandle key.
Definition at line 212 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 177 of file JSSTaggerBase.h.
|
protectedinherited |
Strings for cut functions.
Definition at line 176 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 178 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 173 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 97 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 126 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 122 of file JSSTaggerBase.h.
|
protectedinherited |
TMVA configurations for BDT taggers.
Definition at line 120 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 121 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 207 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 209 of file JSSTaggerBase.h.
|
protectedinherited |
Truth label options.
Definition at line 205 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 206 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 208 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 135 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 136 of file JSSTaggerBase.h.
|
protectedinherited |
Flag to indicate if mass window cut is used.
Definition at line 90 of file JSSTaggerBase.h.
|
protectedinherited |
Flag to indicate if a discriminant score is used.
Definition at line 93 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 200 of file JSSTaggerBase.h.
|
protectedinherited |
Path to the SF configuration root file.
Definition at line 105 of file JSSTaggerBase.h.
|
protectedinherited |
String for scale factor decoration names.
Definition at line 193 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 194 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 197 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 195 of file JSSTaggerBase.h.
|
protectedinherited |
Definition at line 201 of file JSSTaggerBase.h.
|
protectedinherited |
Tagger information.
Definition at line 125 of file JSSTaggerBase.h.