ATLAS Offline Software
Loading...
Searching...
No Matches
SmoothedWZTagger Class Reference

#include <SmoothedWZTagger.h>

Inheritance diagram for SmoothedWZTagger:
Collaboration diagram for SmoothedWZTagger:

Public Member Functions

 SmoothedWZTagger (const std::string &name)
 Constructor.
virtual StatusCode initialize () override
 Run once at the start of the job to setup everything.
virtual StatusCode tag (const xAOD::Jet &jet) const override
 Decorate single jet with tagging info.
virtual StatusCode decorate (const xAOD::JetContainer &jets) const override
 Decorate jet container with tagging info.
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () 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.
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Types

enum  TAGCLASS { Unknown , WBoson , ZBoson , TopQuark }
 TAGTYPE enum. More...

Protected Member Functions

StatusCode getConfigReader ()
 Get configReader StatusCode.
StatusCode resetCuts (asg::AcceptData &acceptData) const
 Reset cuts.
bool passKinRange (const xAOD::Jet &jet) const
 Check if jet passes kinematic constraints.
StatusCode checkKinRange (const xAOD::Jet &jet, asg::AcceptData &acceptData) const
 Check and record if jet passes kinematic constraints.
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.
void decorateJSSRatios (const xAOD::JetContainer &jets) const
int findPV () const
 Find the PV (to be used for Ntrk)
int GetUnGroomTracks (const xAOD::Jet &jet, int indexPV) const
 Retrieve Ntrk variable from the ungroomed parent jet.
StatusCode getWeight (const xAOD::Jet &jet, bool passSel, asg::AcceptData &acceptData) const
 Get SF weight.
std::pair< double, double > getSF (const xAOD::Jet &jet, const std::string &truthLabelStr) const
 Get scale factor and efficiency.
std::string getTruthLabelStr (const xAOD::Jet &jet, asg::AcceptData &acceptData) const
void printCuts () const
 Print configured cuts.
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Protected Attributes

TEnv m_configReader
 TEnv instance to read config files.
asg::AcceptInfo m_acceptInfo
 Object that stores the results for a jet.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decTaggedKey {this, "TaggedName", "Tagged", "SG key for Tagged"}
 WriteDecorHandle keys for tagging bools.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decValidPtRangeHighKey {this, "ValidPtRangeHighName", "ValidPtRangeHigh", "SG key for ValidPtRangeHigh"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decValidPtRangeLowKey {this, "ValidPtRangeLowName", "ValidPtRangeLow", "SG key for ValidPtRangeLow"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decValidEtaRangeKey {this, "ValidEtaRangeName", "ValidEtaRange", "SG key for ValidEtaRange"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decValidJetContentKey {this, "ValidJetContentName", "ValidJetContent", "SG key for ValidJetContent"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decValidEventContentKey {this, "ValidEventContentName", "ValidEventContent", "SG key for ValidEventContent"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decPassMassKey {this, "PassMassName", "PassMass", "SG key for PassMass"}
const int m_nWarnMax = 10
 Maximum number of warnings.
std::atomic< int > m_nWarnVar
 Warning counters.
bool m_ptGeV = false
 Flag to indicate units pT is defined in Set to false by default.
bool m_useMassCut = false
 Flag to indicate if mass window cut is used.
bool m_useScoreCut = false
 Flag to indicate if a discriminant score is used.
TAGCLASS m_tagClass {Unknown}
std::string m_containerName
 Configurable members.
bool m_isSmallRJet = false
std::string m_weightConfigPath
 Path to the SF configuration root file.
std::string m_configFile
 Configuration file name.
std::string m_calibArea
 Location where config files live on cvmfs.
std::string m_kerasConfigFileName
 Keras configurations for ML taggers.
std::string m_kerasConfigFilePath
std::string m_kerasConfigOutputName
std::string m_kerasCalibArea
std::string m_tmvaConfigFileName
 TMVA configurations for BDT taggers.
std::string m_tmvaConfigFilePath
std::string m_tmvaCalibArea
std::string m_wkpt
 Tagger information.
std::string m_tagType
float m_jetPtMin {}
 Kinematic bounds for the jet - the units are controlled by m_ptGeV.
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.
bool m_useLSeries = false
SG::WriteDecorHandleKey< xAOD::JetContainerm_decTau21WTAKey {this, "Tau21WTANameOut", "Tau21_wta", "SG key for Tau21_wta"}
 WriteDecorHandle keys for JSS moments.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decTau32WTAKey {this, "Tau32WTANameOut", "Tau32_wta", "SG key for Tau32_wta"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decTau42WTAKey {this, "Tau42WTANameOut", "Tau42_wta", "SG key for Tau42_wta"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decC2Key {this, "C2NameOut", "C2", "SG key for C2"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decD2Key {this, "D2NameOut", "D2", "SG key for D2"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decE3Key {this, "e3NameOut", "e3", "SG key for e3"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decL2Key {this, "L2NameOut", "L2", "SG key for L2"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decL3Key {this, "L3NameOut", "L3", "SG key for L3"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readTau1WTAKey {this, "Tau1WTAName", "Tau1_wta", "SG key for Tau1_wta"}
 ReadDecorHandle keys for JSS moments.
SG::ReadDecorHandleKey< xAOD::JetContainerm_readTau2WTAKey {this, "Tau2WTAName", "Tau2_wta", "SG key for Tau2_wta"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readTau3WTAKey {this, "Tau3WTAName", "Tau3_wta", "SG key for Tau3_wta"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readTau4WTAKey {this, "Tau4WTAName", "Tau4_wta", "SG key for Tau4_wta"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readECF1Key {this, "ECF1Name", "ECF1", "SG key for ECF1"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readECF2Key {this, "ECF2Name", "ECF2", "SG key for ECF2"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readECF3Key {this, "ECF3Name", "ECF3", "SG key for ECF3"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readSplit12Key {this, "Split12Name", "Split12", "SG key for Split12"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readSplit23Key {this, "Split23Name", "Split23", "SG key for Split23"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readQwKey {this, "QwName", "Qw", "SG key for Qw"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readThrustMajKey {this, "ThrustMajName", "ThrustMaj", "SG key for ThrustMaj"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readSphericityKey {this, "SphericityName", "Sphericity", "SG key for Sphericity"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readECFG331Key {this, "ECFG331Name", "ECFG_3_3_1", "SG key for ECFG_3_3_1"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readECFG311Key {this, "ECFG311Name", "ECFG_3_1_1", "SG key for ECFG_3_1_1"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readECFG212Key {this, "ECFG212Name", "ECFG_2_1_2", "SG key for ECFG_2_1_2"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_readParentKey {this, "ParentName", "Parent", "SG key for Parent"}
Gaudi::Property< bool > m_suppressInputDependence {this, "SuppressInputDependence", false}
Gaudi::Property< bool > m_suppressOutputDependence {this, "SuppressOutputDependence", false}
std::string m_strMassCutLow
 Strings for cut functions.
std::string m_strMassCutHigh
std::unique_ptr< TF1 > m_funcMassCutLow
 TF1 for cut functions.
std::unique_ptr< TF1 > m_funcMassCutHigh
std::string m_decorationName
 Decoration name.
bool m_calcSF {}
 Flag to calculate scale factor.
bool m_isMC {}
std::string m_weightDecorationName
 String for scale factor decoration names.
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.
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.
std::string m_truthParticleContainerName
std::string m_truthBosonContainerName
std::string m_truthTopQuarkContainerName
std::string m_truthLabelName
SG::ReadDecorHandleKey< xAOD::JetContainerm_readTruthLabelKey {this, "truthLabelName", "truthLabel", "SG key for truthLabel"}
 Truth label ReadDecorHandle key.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decCutMLowKey {this, "CutMLowName", "Cut_mlow", "SG key for Cut_mlow"}
 WriteDecorHandle keys for cut values.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decCutMHighKey {this, "CutMHighName", "Cut_mhigh", "SG key for Cut_mhigh"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decScoreCutKey {this, "CutScoreName", "Cut_score", "SG key for Cut_score"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decScoreValueKey {this, "ScoreName", "Score", "SG key for Score"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decWeightKey {this, "weightName", "weight", "SG key for weight"}
 WriteDecorHandle keys for SF.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decEfficiencyKey {this, "efficiencyName", "efficiency", "SG key for efficiency"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decEffSFKey {this, "effSFName", "effSF", "SG key for effSF"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decSigeffSFKey {this, "sigeffSFName", "sigeffSF", "SG key for effSF"}

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

bool m_useNtrk {}
 Flag to indicate if Ntrk is used.
bool m_useScore {}
 Flag to indicate if a ML score is used.
std::string m_strD2Cut
 Store functional form of cuts.
std::string m_strNtrkCut
std::string m_strScoreCut
std::unique_ptr< TF1 > m_funcD2Cut
 Functions that are configurable for specific cut values.
std::unique_ptr< TF1 > m_funcNtrkCut
std::unique_ptr< TF1 > m_funcScoreCut
SG::WriteDecorHandleKey< xAOD::JetContainerm_decPassD2Key {this, "PassD2Name", "PassD2", "SG key for PassD2"}
 WriteDecorHandle keys.
SG::WriteDecorHandleKey< xAOD::JetContainerm_decPassNtrkKey {this, "PassNtrkName", "PassNtrk", "SG key for PassNtrk"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decPassScoreKey {this, "PassScoreName", "PassScore", "SG key for PassScore"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decCutD2Key {this, "CutD2Name", "Cut_D2", "SG key for Cut_D2"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decCutNtrkKey {this, "CutNtrkName", "Cut_Ntrk", "SG key for Cut_Ntrk"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decCutScoreKey {this, "CutScoreName", "Cut_Score", "SG key for Cut_Score"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decAcceptKey {this, "acceptName", "accept", "SG key for accept"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_decValidKinRangeKey {this, "ValidKinRangeName", "ValidKinRange", "SG key for ValidKinRange"}
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 10 of file SmoothedWZTagger.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ TAGCLASS

enum JSSTaggerBase::TAGCLASS
protectedinherited

TAGTYPE enum.

Enumerator
Unknown 
WBoson 
ZBoson 
TopQuark 

Definition at line 97 of file JSSTaggerBase.h.

Constructor & Destructor Documentation

◆ SmoothedWZTagger()

SmoothedWZTagger::SmoothedWZTagger ( const std::string & name)

Constructor.

Functional forms for cuts

Definition at line 9 of file SmoothedWZTagger.cxx.

9 :
10 JSSTaggerBase( name )
11{
12
14 declareProperty( "MassCutLowFunc", m_strMassCutLow = "", "Lower mass cut");
15 declareProperty( "MassCutHighFunc", m_strMassCutHigh = "", "Higher mass cut");
16 declareProperty( "D2CutFunc", m_strD2Cut = "", "Upper cut on D2");
17 declareProperty( "NtrkCutFunc", m_strNtrkCut = "", "Upper cut on Ntrk");
18 declareProperty( "ScoreCutFunc", m_strScoreCut = "", "Lower cut on score");
19
20}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::string m_strMassCutHigh
std::string m_strMassCutLow
Strings for cut functions.
JSSTaggerBase(const std::string &name)
Default constructor - to be used in all derived classes.
std::string m_strScoreCut
std::string m_strNtrkCut
std::string m_strD2Cut
Store functional form of cuts.

Member Function Documentation

◆ calculateJSSRatios()

int JSSTaggerBase::calculateJSSRatios ( const xAOD::Jet & jet) const
protectedinherited

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

WTA N-subjettiness ratios

ECF ratios

Definition at line 410 of file JSSTaggerBase.cxx.

410 {
411
412 int result = 0;
413
415 SG::WriteDecorHandle<xAOD::JetContainer, float> decTau21WTA(m_decTau21WTAKey);
416 SG::WriteDecorHandle<xAOD::JetContainer, float> decTau32WTA(m_decTau32WTAKey);
417 SG::WriteDecorHandle<xAOD::JetContainer, float> decTau42WTA(m_decTau42WTAKey);
418 SG::WriteDecorHandle<xAOD::JetContainer, float> decC2(m_decC2Key);
419 SG::WriteDecorHandle<xAOD::JetContainer, float> decD2(m_decD2Key);
420 SG::WriteDecorHandle<xAOD::JetContainer, float> decE3(m_decE3Key);
421 SG::WriteDecorHandle<xAOD::JetContainer, float> decL2(m_decL2Key);
422 SG::WriteDecorHandle<xAOD::JetContainer, float> decL3(m_decL3Key);
423
425 float tau21_wta = -999.0;
426 float tau32_wta = -999.0;
427 float tau42_wta = -999.0;
428
429 if(!m_isSmallRJet){
430 SG::ReadDecorHandle<xAOD::JetContainer, float> readTau1WTA(m_readTau1WTAKey);
431 SG::ReadDecorHandle<xAOD::JetContainer, float> readTau2WTA(m_readTau2WTAKey);
432 SG::ReadDecorHandle<xAOD::JetContainer, float> readTau3WTA(m_readTau3WTAKey);
433 SG::ReadDecorHandle<xAOD::JetContainer, float> readTau4WTA(m_readTau4WTAKey);
434
435 float tau1_wta = readTau1WTA(jet);
436 float tau2_wta = readTau2WTA(jet);
437 float tau3_wta = readTau3WTA(jet);
438 float tau4_wta = readTau4WTA(jet);
439
440 if ( tau1_wta > 1e-8 ) {
441 tau21_wta = tau2_wta / tau1_wta;
442 }
443 else result = 1;
444
445 if ( tau2_wta > 1e-8 ) {
446 tau32_wta = tau3_wta / tau2_wta;
447 tau42_wta = tau4_wta / tau2_wta;
448 }
449 else result = 1;
450 }
451
452 decTau21WTA(jet) = tau21_wta;
453 decTau32WTA(jet) = tau32_wta;
454 decTau42WTA(jet) = tau42_wta;
455
457 float C2 = -999.0;
458 float D2 = -999.0;
459 float e3 = -999.0;
460
461 // L-series for UFO top taggers
462 float L2 = -999.0;
463 float L3 = -999.0;
464
465 if(!m_isSmallRJet){
466 SG::ReadDecorHandle<xAOD::JetContainer, float> readECF1(m_readECF1Key);
467 SG::ReadDecorHandle<xAOD::JetContainer, float> readECF2(m_readECF2Key);
468 SG::ReadDecorHandle<xAOD::JetContainer, float> readECF3(m_readECF3Key);
469
470 float ECF1 = readECF1(jet);
471 float ECF2 = readECF2(jet);
472 float ECF3 = readECF3(jet);
473
474 if ( ECF2 > 1e-8 ) {
475 C2 = ECF3 * ECF1 / std::pow( ECF2, 2.0 );
476 D2 = ECF3 * std::pow( ECF1, 3.0 ) / std::pow( ECF2, 3.0 );
477 }
478 else result = 1;
479
480 e3 = ECF3 / std::pow( ECF1, 3.0 );
481
482 SG::ReadDecorHandle<xAOD::JetContainer, float> readECFG331(m_readECFG331Key);
483 SG::ReadDecorHandle<xAOD::JetContainer, float> readECFG311(m_readECFG311Key);
484 SG::ReadDecorHandle<xAOD::JetContainer, float> readECFG212(m_readECFG212Key);
485
486 if(readECFG331.isAvailable() && readECFG212.isAvailable()){
487 if(readECFG212(jet) > 1e-8){
488 L2 = readECFG331(jet) / std::pow(readECFG212(jet), 1.5);
489 }
490 else result = 1;
491 }
492
493 if(readECFG331.isAvailable() && readECFG311.isAvailable()){
494 if(readECFG331(jet) > 1e-8){
495 L3 = readECFG311(jet) / std::pow(readECFG331(jet), 1./3.);
496 }
497 else result = 1;
498 }
499 }
500
501 decC2(jet) = C2;
502 decD2(jet) = D2;
503 decE3(jet) = e3;
504
505 static const SG::AuxElement::ConstAccessor<float> accL2("L2");
506 if(!accL2.isAvailable(jet)) decL2(jet) = L2;
507
508 static const SG::AuxElement::ConstAccessor<float> accL3("L3");
509 if(!accL3.isAvailable(jet)) decL3(jet) = L3;
510
511 // TODO: Add ECFG for ANN tagger whenever it is defined
512
513 return result;
514
515}
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG331Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau21WTAKey
WriteDecorHandle keys for JSS moments.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF1Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau4WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG311Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau3WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau2WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF3Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decC2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau1WTAKey
ReadDecorHandle keys for JSS moments.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG212Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL2Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decE3Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decD2Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau42WTAKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL3Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau32WTAKey

◆ checkKinRange()

StatusCode JSSTaggerBase::checkKinRange ( const xAOD::Jet & jet,
asg::AcceptData & acceptData ) const
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 364 of file JSSTaggerBase.cxx.

364 {
365
366 float scale = 1.0;
367 if ( m_ptGeV ) scale = 1.e3;
368
369 bool passKinRange = true;
370
373 if ( std::abs(jet.eta()) > m_jetEtaMax ) {
374 ATH_MSG_VERBOSE( "Jet does not pass basic kinematic selection (|eta| < " << m_jetEtaMax << "). Jet eta = " << jet.eta() );
375 acceptData.setCutResult( "ValidEtaRange", false );
376 passKinRange = false;
377 }
378
379 if ( jet.pt() < m_jetPtMin * scale ) {
380 ATH_MSG_VERBOSE( "Jet does not pass basic kinematic selection (pT > " << m_jetPtMin * scale / 1.e3 << "). Jet pT = " << jet.pt() / 1.e3 << " GeV" );
381 acceptData.setCutResult( "ValidPtRangeLow", false );
382 passKinRange = false;
383 }
384
385 if ( jet.pt() > m_jetPtMax * scale ) {
386 ATH_MSG_VERBOSE( "Jet does not pass basic kinematic selection (pT < " << m_jetPtMax * scale / 1.e3 << "). Jet pT = " << jet.pt() / 1.e3 << " GeV" );
387 acceptData.setCutResult( "ValidPtRangeHigh", false );
388 passKinRange = false;
389 }
390
392 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidPtRangeHigh(m_decValidPtRangeHighKey);
393 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidPtRangeLow(m_decValidPtRangeLowKey);
394 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidEtaRange(m_decValidEtaRangeKey);
395 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidKinRange(m_decValidKinRangeKey);
396
398 decValidPtRangeHigh(jet) = acceptData.getCutResult( "ValidPtRangeHigh" );
399 decValidPtRangeLow(jet) = acceptData.getCutResult( "ValidPtRangeLow" );
400 decValidEtaRange(jet) = acceptData.getCutResult( "ValidEtaRange" );
401 decValidKinRange(jet) = passKinRange;
402
403 return StatusCode::SUCCESS;
404
405}
#define ATH_MSG_VERBOSE(x)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeHighKey
float m_jetPtMin
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeLowKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidKinRangeKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEtaRangeKey
bool passKinRange(const xAOD::Jet &jet) const
Check if jet passes kinematic constraints.
bool m_ptGeV
Flag to indicate units pT is defined in Set to false by default.
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
Definition AcceptData.h:134
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
Definition AcceptData.h:98
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition Jet_v1.cxx:44
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition Jet_v1.cxx:49

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ decorate()

StatusCode SmoothedWZTagger::decorate ( const xAOD::JetContainer & jets) const
overridevirtual

Decorate jet container with tagging info.

Create WriteDecorHandles

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

Get D2 value

Get Score value

Evaluate the values of the upper and lower mass bounds and the d2 cut

Evaluate the values of the lower score cut

Decorate values

Evaluate the cut criteria on mass and d2

Check if it's a smooth three-variable tagger (ntrk)

Decorate Ntrk cut value

Decorate values

check if it is a 1D score tagger

Decorate jet with tagging summary

Get enum to decorate acceptData state if only using 2-var tagger

Pass mass cut

Fail mass cut

Get SF weight

Decorate values

Reimplemented from JSSTaggerBase.

Definition at line 209 of file SmoothedWZTagger.cxx.

209 {
210
211 ATH_MSG_DEBUG( "Obtaining Smooth WZ result" );
212
214 SG::WriteDecorHandle<xAOD::JetContainer, char> decPassMass(m_decPassMassKey);
215 SG::WriteDecorHandle<xAOD::JetContainer, char> decPassD2(m_decPassD2Key);
216 SG::WriteDecorHandle<xAOD::JetContainer, char> decPassScore(m_decPassScoreKey);
217 SG::WriteDecorHandle<xAOD::JetContainer, char> decTagged(m_decTaggedKey);
218 SG::WriteDecorHandle<xAOD::JetContainer, float> decCutMLow(m_decCutMLowKey);
219 SG::WriteDecorHandle<xAOD::JetContainer, float> decCutMHigh(m_decCutMHighKey);
220 SG::WriteDecorHandle<xAOD::JetContainer, float> decCutD2(m_decCutD2Key);
221 SG::WriteDecorHandle<xAOD::JetContainer, float> decCutScore(m_decCutScoreKey);
222 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidJetContent(m_decValidJetContentKey);
223 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidEventContent(m_decValidEventContentKey);
224 SG::WriteDecorHandle<xAOD::JetContainer, char> decPassNtrk(m_decPassNtrkKey);
225 SG::WriteDecorHandle<xAOD::JetContainer, float> decCutNtrk(m_decCutNtrkKey);
226 SG::WriteDecorHandle<xAOD::JetContainer, float> decAccept(m_decAcceptKey);
227 SG::WriteDecorHandle<xAOD::JetContainer, char> decValidKinRange(m_decValidKinRangeKey);
228
230 asg::AcceptData acceptData( &m_acceptInfo );
231
233 ATH_CHECK( resetCuts( acceptData ) );
234
235 // compute JSS variables
236 decorateJSSRatios(jets);
237
238 // loop over jets
239 for(const xAOD::Jet* jet : jets){
240
242 bool pass_kin_range = passKinRange(*jet);
243 decValidKinRange(*jet) = pass_kin_range;
244
247 float jet_pt = jet -> pt()/1000.0;
248 float jet_mass = jet -> m()/1000.0;
249
251 static const SG::AuxElement::ConstAccessor<float> D2("D2");
252 float jet_d2 = D2(*jet);
253
255 static const SG::AuxElement::ConstAccessor<float> Score(m_decorationName + "_ConstScore");
256 float jet_score = m_useScore ? Score(*jet) : -99;
257
259 float cut_mass_low (-99), cut_mass_high (-99), cut_d2 (-99);
260 if(!m_useScore){
261 cut_mass_low = m_funcMassCutLow ->Eval(jet_pt);
262 cut_mass_high = m_funcMassCutHigh->Eval(jet_pt);
263 cut_d2 = m_funcD2Cut ->Eval(jet_pt);
264 }
265
267 float cut_score = m_useScore ? m_funcScoreCut -> Eval(jet_pt) : -99;
268
270 decCutMLow(*jet) = cut_mass_low;
271 decCutMHigh(*jet) = cut_mass_high;
272 decCutD2(*jet) = cut_d2;
273 decCutScore(*jet) = cut_score;
274
276 ATH_MSG_DEBUG( "Cut Values : MassWindow = [" << cut_mass_low << "," << cut_mass_high << "], D2Cut = " << cut_d2 );
277 ATH_MSG_DEBUG( "Cut Values : JetMass = " << jet_mass << ", D2 = " << jet_d2 );
278 ATH_MSG_DEBUG( "Cut Values : score = " << jet_score);
279
280 if ( jet_mass >= cut_mass_low ) acceptData.setCutResult( "PassMassLow", true );
281
282 if ( jet_mass <= cut_mass_high ) acceptData.setCutResult( "PassMassHigh", true );
283
284 if ( jet_d2 < cut_d2 ) acceptData.setCutResult( "PassD2", true );
285
286 if ( jet_score > cut_score ) acceptData.setCutResult( "PassScore", true );
287
288 decPassMass(*jet) = acceptData.getCutResult( "PassMassLow" ) && acceptData.getCutResult( "PassMassHigh" );
289 decPassD2(*jet) = acceptData.getCutResult( "PassD2" );
290 decPassScore(*jet) = acceptData.getCutResult( "PassScore" );
291
292 bool passCuts = acceptData.getCutResult( "PassMassLow" ) && acceptData.getCutResult( "PassMassHigh" );
293 passCuts = passCuts && acceptData.getCutResult( "PassD2" );
294
296 if ( m_useNtrk ) {
297
298 float cut_ntrk = m_funcNtrkCut->Eval(jet_pt);
299
301
303 decCutNtrk(*jet) = cut_ntrk;
304
305 int pv_location = findPV();
306
307 if(pv_location != -1){
308 int jet_ntrk = GetUnGroomTracks(*jet, pv_location);
309 if(jet_ntrk>=0){
310 if ( jet_ntrk < cut_ntrk ) acceptData.setCutResult( "PassNtrk", true );
311 decPassNtrk(*jet) = acceptData.getCutResult( "PassNtrk" );
312 passCuts = passCuts && acceptData.getCutResult( "PassNtrk" );
313 }
314 else{
315 acceptData.setCutResult( "ValidJetContent", false );
316 decValidJetContent(*jet) = false;
317 return StatusCode::FAILURE;
318 }
319 }
320 else {
321 acceptData.setCutResult( "ValidEventContent", false );
322 }
323
324 decValidJetContent(*jet) = acceptData.getCutResult( "ValidJetContent" );
325 decValidEventContent(*jet) = acceptData.getCutResult( "ValidEventContent" );
326
327 }
328
330 if(m_useScore){
331 passCuts = acceptData.getCutResult( "PassScore" );
332 }
333
335 decTagged(*jet) = passCuts;
336
338 TagResult::TypeEnum myCutResultForSF = TagResult::UNKNOWN;
339 if ( !m_useNtrk && !m_useScore ) {
341 if ( acceptData.getCutResult("PassMassLow") && acceptData.getCutResult("PassMassHigh") ) {
342 if ( acceptData.getCutResult("PassD2") ) {
343 myCutResultForSF = TagResult::passMpassD2_2Var;
344 }
345 else {
346 myCutResultForSF = TagResult::passMfailD2_2Var;
347 }
348 }
350 else {
351 if ( acceptData.getCutResult("PassD2") ) {
352 myCutResultForSF = TagResult::failMpassD2_2Var;
353 }
354 else {
355 myCutResultForSF = TagResult::failMfailD2_2Var;
356 }
357 }
358 }
359
361 ATH_CHECK( getWeight( *jet, (bool)acceptData, acceptData ) );
362
363 if ( m_calcSF ) {
364
366 decAccept(*jet) = myCutResultForSF;
367
368 }
369
370 }
371
372 return StatusCode::SUCCESS;
373
374}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
std::unique_ptr< TF1 > m_funcMassCutLow
TF1 for cut functions.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidJetContentKey
void decorateJSSRatios(const xAOD::JetContainer &jets) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutMHighKey
bool m_calcSF
Flag to calculate scale factor.
std::string m_decorationName
Decoration name.
int GetUnGroomTracks(const xAOD::Jet &jet, int indexPV) const
Retrieve Ntrk variable from the ungroomed parent jet.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutMLowKey
WriteDecorHandle keys for cut values.
StatusCode resetCuts(asg::AcceptData &acceptData) const
Reset cuts.
int findPV() const
Find the PV (to be used for Ntrk)
StatusCode getWeight(const xAOD::Jet &jet, bool passSel, asg::AcceptData &acceptData) const
Get SF weight.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassMassKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEventContentKey
std::unique_ptr< TF1 > m_funcMassCutHigh
asg::AcceptInfo m_acceptInfo
Object that stores the results for a jet.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTaggedKey
WriteDecorHandle keys for tagging bools.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutNtrkKey
std::unique_ptr< TF1 > m_funcScoreCut
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decAcceptKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidKinRangeKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassD2Key
WriteDecorHandle keys.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutD2Key
bool m_useScore
Flag to indicate if a ML score is used.
std::unique_ptr< TF1 > m_funcD2Cut
Functions that are configurable for specific cut values.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassNtrkKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassScoreKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutScoreKey
bool m_useNtrk
Flag to indicate if Ntrk is used.
std::unique_ptr< TF1 > m_funcNtrkCut
Jet_v1 Jet
Definition of the current "jet version".

◆ decorateJSSRatios()

void JSSTaggerBase::decorateJSSRatios ( const xAOD::JetContainer & jets) const
protectedinherited

Create write decor handles

WTA N-subjettiness ratios

ECF ratios

Definition at line 518 of file JSSTaggerBase.cxx.

518 {
519
521 SG::WriteDecorHandle<xAOD::JetContainer, float> decTau21WTA(m_decTau21WTAKey);
522 bool decor_available = decTau21WTA.isAvailable();
523 if(decor_available) return;
524
525 SG::WriteDecorHandle<xAOD::JetContainer, float> decTau32WTA(m_decTau32WTAKey);
526 SG::WriteDecorHandle<xAOD::JetContainer, float> decTau42WTA(m_decTau42WTAKey);
527 SG::WriteDecorHandle<xAOD::JetContainer, float> decC2(m_decC2Key);
528 SG::WriteDecorHandle<xAOD::JetContainer, float> decD2(m_decD2Key);
529 SG::WriteDecorHandle<xAOD::JetContainer, float> decE3(m_decE3Key);
530 SG::WriteDecorHandle<xAOD::JetContainer, float> decL2(m_decL2Key);
531 SG::WriteDecorHandle<xAOD::JetContainer, float> decL3(m_decL3Key);
532
533 // Use pointers here so we can create only the ones we're configured for
534 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau1WTA;
535 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau2WTA;
536 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau3WTA;
537 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau4WTA;
538
539 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECF1;
540 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECF2;
541 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECF3;
542
543 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECFG331;
544 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECFG311;
545 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECFG212;
546
547 if(!m_isSmallRJet){
548 readTau1WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readTau1WTAKey);
549 readTau2WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readTau2WTAKey);
550 readTau3WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readTau3WTAKey);
551 readTau4WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readTau4WTAKey);
552
553 readECF1 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readECF1Key);
554 readECF2 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readECF2Key);
555 readECF3 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readECF3Key);
556
557 readECFG331 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readECFG331Key);
558 readECFG311 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readECFG311Key);
559 readECFG212 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(m_readECFG212Key);
560 }
561
562 for(const xAOD::Jet* jet : jets){
563
564 float tau21_wta = -999.0;
565 float tau32_wta = -999.0;
566 float tau42_wta = -999.0;
567
568 float C2 = -999.0;
569 float D2 = -999.0;
570 float e3 = -999.0;
571
572 float L2 = -999.0;
573 float L3 = -999.0;
574
575 if(!m_isSmallRJet){
576
578 float tau1_wta = (*readTau1WTA)(*jet);
579 float tau2_wta = (*readTau2WTA)(*jet);
580 float tau3_wta = (*readTau3WTA)(*jet);
581 float tau4_wta = (*readTau4WTA)(*jet);
582
583 if ( tau1_wta > 1e-8 ) {
584 tau21_wta = tau2_wta / tau1_wta;
585 }
586
587 if ( tau2_wta > 1e-8 ) {
588 tau32_wta = tau3_wta / tau2_wta;
589 tau42_wta = tau4_wta / tau2_wta;
590 }
591
593 float ECF1 = (*readECF1)(*jet);
594 float ECF2 = (*readECF2)(*jet);
595 float ECF3 = (*readECF3)(*jet);
596
597 if ( ECF2 > 1e-8 ) {
598 C2 = ECF3 * ECF1 / std::pow( ECF2, 2.0 );
599 D2 = ECF3 * std::pow( ECF1, 3.0 ) / std::pow( ECF2, 3.0 );
600 }
601
602 e3 = ECF3 / std::pow( ECF1, 3.0 );
603
604 // L-series for UFO top taggers
605 if((*readECFG331).isAvailable() && (*readECFG212).isAvailable()){
606 if((*readECFG212)(*jet) > 1e-8){
607 L2 = (*readECFG331)(*jet) / std::pow((*readECFG212)(*jet), 1.5);
608 }
609 }
610
611 if((*readECFG331).isAvailable() && (*readECFG311).isAvailable()){
612 if((*readECFG331)(*jet) > 1e-8){
613 L3 = (*readECFG311)(*jet) / std::pow((*readECFG331)(*jet), 1./3.);
614 }
615 }
616 }
617
618 decTau21WTA(*jet) = tau21_wta;
619 decTau32WTA(*jet) = tau32_wta;
620 decTau42WTA(*jet) = tau42_wta;
621
622 decC2(*jet) = C2;
623 decD2(*jet) = D2;
624 decE3(*jet) = e3;
625
626 static const SG::AuxElement::ConstAccessor<float> accL2("L2");
627 if(!accL2.isAvailable(*jet)) decL2(*jet) = L2;
628
629 static const SG::AuxElement::ConstAccessor<float> accL3("L3");
630 if(!accL3.isAvailable(*jet)) decL3(*jet) = L3;
631
632 // TODO: Add ECFG for ANN tagger whenever it is defined
633
634 }
635
636 return;
637
638}

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
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

◆ findPV()

int JSSTaggerBase::findPV ( ) const
protectedinherited

Find the PV (to be used for Ntrk)

Definition at line 641 of file JSSTaggerBase.cxx.

641 {
642
643 int indexPV = -1;
644
645 const xAOD::VertexContainer* vxCont = nullptr;
646 if ( evtStore()->retrieve( vxCont, "PrimaryVertices" ).isFailure() ) {
647 ATH_MSG_WARNING( "Unable to retrieve primary vertex container PrimaryVertices" );
648 }
649 else {
650 int vtx_counter = 0;
651 for ( const auto *vx : *vxCont ) {
652 if ( vx->vertexType()==xAOD::VxType::PriVtx ) {
653 indexPV = vtx_counter;
654 break;
655 }
656 vtx_counter++;
657 }
658 }
659
660 return indexPV;
661
662}
#define ATH_MSG_WARNING(x)
ServiceHandle< StoreGateSvc > & evtStore()
@ PriVtx
Primary vertex.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".

◆ getConfigReader()

StatusCode JSSTaggerBase::getConfigReader ( )
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 293 of file JSSTaggerBase.cxx.

293 {
294
295 ATH_MSG_INFO( "Using config file : " << m_configFile );
296
298 std::string configPath;
299
300 if ( m_calibArea.compare("Local") == 0 ) {
302 }
303 else if ( m_calibArea.find("eos") != std::string::npos) {
304 configPath = PathResolverFindCalibFile((m_calibArea+"/"+m_configFile).c_str());
305 configPath = (m_calibArea+"/"+m_configFile).c_str();
306 }
307 else {
308 configPath = PathResolverFindCalibFile(("BoostedJetTaggers/"+m_calibArea+"/"+m_configFile).c_str());
309 }
310
312 FileStat_t fStats;
313 int fSuccess = gSystem->GetPathInfo(configPath.c_str(), fStats);
314 if ( fSuccess ) {
315 ATH_MSG_ERROR( "Recommendations file " << m_configFile << " could not be found" );
316 return StatusCode::FAILURE;
317 }
318 else {
319 ATH_MSG_DEBUG( "Recommendations file was found : " << configPath );
320 }
321
322 if ( m_configReader.ReadFile( configPath.c_str(), EEnvLevel(0) ) ) {
323 ATH_MSG_ERROR( "Error while reading config file : "<< configPath );
324 return StatusCode::FAILURE;
325 }
326
327 return StatusCode::SUCCESS;
328
329}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
std::string m_calibArea
Location where config files live on cvmfs.
std::string m_configFile
Configuration file name.
TEnv m_configReader
TEnv instance to read config files.

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
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.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::TEvent, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

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.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::TEvent, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ getSF()

std::pair< double, double > JSSTaggerBase::getSF ( const xAOD::Jet & jet,
const std::string & truthLabelStr ) const
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 777 of file JSSTaggerBase.cxx.

777 {
778
779 if ( !passKinRange(jet) ) return std::make_pair( 1.0, 1.0 );
780
781
782 double logmOverPt = std::log(jet.m()/jet.pt());
783 if ( m_decorationName.find("SmoothZ") != std::string::npos ||
784 m_decorationName.find("SmoothInclusiveZ") != std::string::npos ) {
786 const double WtoZmassShift = 10803;
787 logmOverPt = std::log((jet.m()-WtoZmassShift)/jet.pt());
788 }
789
790 if ( logmOverPt > 0 ) logmOverPt = 0;
791
792 double SF = 1.0;
793 double eff = 1.0;
794
795 if ( m_weightHistograms.count(truthLabelStr.c_str()) ) {
796
797 int pt_mPt_bin = (m_weightHistograms.find(truthLabelStr.c_str())->second)->FindBin(jet.pt()*0.001, logmOverPt);
798 SF = (m_weightHistograms.find(truthLabelStr.c_str())->second)->GetBinContent(pt_mPt_bin);
799
800 if ( !m_efficiencyHistogramName.empty() ) {
801 eff = (m_efficiencyHistograms.find(truthLabelStr.c_str())->second)->GetBinContent(pt_mPt_bin);
802 }
803
804 }
805 else {
806 // set the efficiency for "Other" category to be the signal efficiency
807 std::string signal_truthLabel="";
808 if ( m_weightHistograms.count("t_qqb") ) {
809 signal_truthLabel="t_qqb";
810 }else if ( m_weightHistograms.count("V_qq") ){
811 signal_truthLabel="V_qq";
812 }else if ( m_weightHistograms.count("t") ){
813 signal_truthLabel="t";
814 }
815 if ( !signal_truthLabel.empty() && !m_efficiencyHistogramName.empty() ){
816 int pt_mPt_bin = (m_weightHistograms.find(signal_truthLabel.c_str())->second)->FindBin(jet.pt()*0.001, logmOverPt);
817 eff = (m_efficiencyHistograms.find(signal_truthLabel.c_str())->second)->GetBinContent(pt_mPt_bin);
818 }
819
820 return std::make_pair( 1.0, eff );
821 }
822
823 if ( SF < 1e-3 ) {
824 ATH_MSG_DEBUG( "(pt, m/pt) (" << jet.pt()/1.e3 << ", " << jet.m()/jet.pt() << ") is out of range for SF calculation. Returning 1.0" );
825 return std::make_pair( 1.0, 1.0 );
826 }
827 else {
828 return std::make_pair( SF, eff );
829 }
830
831}
std::map< std::string, std::unique_ptr< TH2D > > m_efficiencyHistograms
std::map< std::string, std::unique_ptr< TH2D > > m_weightHistograms
std::string m_efficiencyHistogramName
virtual double m() const
The invariant mass of the particle.
Definition Jet_v1.cxx:59
const float SF[NF]
Cross sections for Fluor.

◆ getTruthLabelStr()

std::string JSSTaggerBase::getTruthLabelStr ( const xAOD::Jet & jet,
asg::AcceptData & acceptData ) const
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 835 of file JSSTaggerBase.cxx.

835 {
837 std::string truthLabelStr;
838
840 SG::ReadDecorHandle<xAOD::JetContainer, int> readTruthLabel(m_readTruthLabelKey);
841 LargeRJetTruthLabel::TypeEnum jetContainment = LargeRJetTruthLabel::intToEnum(readTruthLabel(jet));
842
844 if ( m_weightHistograms.count("t_qqb") ) {
845
847 if ( jetContainment==LargeRJetTruthLabel::tqqb ) {
848 truthLabelStr = "t_qqb";
849 }
851 else if ( jetContainment==LargeRJetTruthLabel::notruth || jetContainment==LargeRJetTruthLabel::qcd ) {
852 truthLabelStr = "q";
853 }
854
855 }
857 else if ( m_weightHistograms.count("V_qq_passMpassD2") ) {
858
860 if ( jetContainment==LargeRJetTruthLabel::tqqb || jetContainment==LargeRJetTruthLabel::other_From_t ) {
861 truthLabelStr = "t_";
862 }
864 else if ( jetContainment==LargeRJetTruthLabel::Wqq || jetContainment==LargeRJetTruthLabel::Zqq || jetContainment==LargeRJetTruthLabel::Wqq_From_t ) {
865 truthLabelStr = "V_qq_";
866 }
868 else if ( jetContainment==LargeRJetTruthLabel::notruth || jetContainment==LargeRJetTruthLabel::qcd ) {
869 truthLabelStr = "q_";
870 }
871
873 if ( acceptData.getCutResult("PassMassLow") && acceptData.getCutResult("PassMassHigh") && acceptData.getCutResult("PassD2") ) {
874 truthLabelStr += "passMpassD2";
875 }
877 else if ( !(acceptData.getCutResult("PassMassLow") && acceptData.getCutResult("PassMassHigh")) && acceptData.getCutResult("PassD2") ) {
878 truthLabelStr += "failMpassD2";
879 }
881 else if ( acceptData.getCutResult("PassMassLow") && acceptData.getCutResult("PassMassHigh") && !acceptData.getCutResult("PassD2") ) {
882 truthLabelStr += "passMfailD2";
883 }
885 else{
886 truthLabelStr += "failMfailD2";
887 }
888
889 }
890
892 else if ( m_weightHistograms.count("V_qq") ) {
893
895 if ( jetContainment==LargeRJetTruthLabel::tqqb || jetContainment==LargeRJetTruthLabel::other_From_t ) {
896 truthLabelStr = "t";
897 }
899 else if ( jetContainment==LargeRJetTruthLabel::Wqq || jetContainment==LargeRJetTruthLabel::Zqq || jetContainment==LargeRJetTruthLabel::Wqq_From_t ) {
900 truthLabelStr = "V_qq";
901 }
903 else if ( jetContainment==LargeRJetTruthLabel::notruth || jetContainment==LargeRJetTruthLabel::qcd ) {
904 truthLabelStr = "q";
905 }
906 }
907
908 // inclusive top tagger
909 else {
911 if ( jetContainment==LargeRJetTruthLabel::tqqb || jetContainment==LargeRJetTruthLabel::other_From_t || jetContainment==LargeRJetTruthLabel::Wqq_From_t ) {
912 truthLabelStr = "t";
913 }
915 else if ( jetContainment==LargeRJetTruthLabel::notruth || jetContainment==LargeRJetTruthLabel::qcd ) {
916 truthLabelStr = "q";
917 }
918
919 }
920
921 return truthLabelStr;
922}
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTruthLabelKey
Truth label ReadDecorHandle key.
TypeEnum intToEnum(const int type)

◆ GetUnGroomTracks()

int JSSTaggerBase::GetUnGroomTracks ( const xAOD::Jet & jet,
int indexPV ) const
protectedinherited

Retrieve Ntrk variable from the ungroomed parent jet.

Retrieve the Ntrk variable from the ungroomed parent jet.

Definition at line 665 of file JSSTaggerBase.cxx.

665 {
666
667 SG::ReadDecorHandle<xAOD::JetContainer, ElementLink<xAOD::JetContainer> > readParent(m_readParentKey);
668
669 const xAOD::Jet * ungroomedJet = nullptr;
670 if ( readParent.isAvailable() ) {
671 const ElementLink<xAOD::JetContainer>& linkToUngroomed = readParent(jet);
672 if ( linkToUngroomed.isValid() ) {
673 ungroomedJet = *linkToUngroomed;
674
675 static const SG::AuxElement::ConstAccessor< std::vector<int> >acc_Ntrk("NumTrkPt500");
676
677 if ( acc_Ntrk.isAvailable(*ungroomedJet) ) {
678
679 const std::vector<int>& NTrkPt500 = acc_Ntrk(*ungroomedJet);
680
681 int jet_ntrk = NTrkPt500.at(indexPV);
682 return jet_ntrk;
683
684 }
685 else {
686 ATH_MSG_ERROR("WARNING: Unable to retrieve Ntrk of the ungroomed parent jet. Please make sure this variable is in your derivations!!!");
687 }
688 }
689 else {
690 ATH_MSG_ERROR("WARNING: Unable to retrieve the parent ungroomed jet. Please make sure this variable is in your derivations!!!");
691 }
692 }
693 else {
694 ATH_MSG_ERROR("WARNING: Unable to retrieve the link to the parent ungroomed jet. Please make sure this variable is in your derivations!!!");
695 }
696
697 return -999;
698
699}
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readParentKey
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570

◆ getWeight()

StatusCode JSSTaggerBase::getWeight ( const xAOD::Jet & jet,
bool passSel,
asg::AcceptData & acceptData ) const
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 703 of file JSSTaggerBase.cxx.

703 {
704 if ( !m_calcSF ) return StatusCode::SUCCESS;
705
706 float weight = 1.0;
707 float effSF = 1.0;
708 float sigeffSF = 1.0;
709 float efficiency = 1.0;
710
711 if ( m_isMC ) {
712
713 std::string truthLabelStr = getTruthLabelStr( jet, acceptData );
714 std::tie(effSF, efficiency) = getSF( jet, truthLabelStr );
715
716 // calculate signal efficiency SF
717 if ( m_weightHistograms.count("t_qqb") ) {
718 sigeffSF = getSF(jet, "t_qqb").first;
719 } else if ( m_weightHistograms.count("V_qq") ) {
720 sigeffSF = getSF(jet, "V_qq").first;
721 } else if ( m_weightHistograms.count("t") ){
722 sigeffSF = getSF(jet, "t").first;
723 } else {
724 sigeffSF = 1.0;
725 }
726
728 if ( m_weightFlavors.find("fail") != std::string::npos ) {
729 weight = effSF;
730 }
731
732 else {
733
735 if ( passSel ) {
736 weight = effSF;
737 }
738
740 else {
742 if ( m_efficiencyHistogramName.empty() ) {
743 weight = 1.0;
744 }
745 else if ( efficiency < 1.0 ) {
746 weight = ( 1. - effSF * efficiency ) / ( 1. - efficiency );
747 }
748 else {
749 weight = 1.0;
750 }
751 }
752 }
753
754 }
755
756 else {
757 weight = 1.0;
758 }
759
761 SG::WriteDecorHandle<xAOD::JetContainer, float> decWeight(m_decWeightKey);
762 SG::WriteDecorHandle<xAOD::JetContainer, float> decEfficiency(m_decEfficiencyKey);
763 SG::WriteDecorHandle<xAOD::JetContainer, float> decEffSF(m_decEffSFKey);
764 SG::WriteDecorHandle<xAOD::JetContainer, float> decSigeffSF(m_decSigeffSFKey);
765
767 decWeight(jet) = weight;
768 decEfficiency(jet) = efficiency;
769 decEffSF(jet) = effSF;
770 decSigeffSF(jet) = sigeffSF;
771
772 return StatusCode::SUCCESS;
773
774}
std::string getTruthLabelStr(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decWeightKey
WriteDecorHandle keys for SF.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEffSFKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
std::string m_weightFlavors
std::pair< double, double > getSF(const xAOD::Jet &jet, const std::string &truthLabelStr) const
Get scale factor and efficiency.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decSigeffSFKey
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")

◆ initialize()

StatusCode SmoothedWZTagger::initialize ( void )
overridevirtual

Run once at the start of the job to setup everything.

Pt values are defined in GeV

Use mass cut

Get configReader

Get min and max jet pt

Get the decoration name

Set flag to indicate if a ML score cut is used

Get the scale factor configuration

Get truth label name information

No config file

Assume the cut functions have been set through properties. Check they are non empty

Set flag to indicate if Ntrk cut is used

Transform these strings into functions

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

Initialize additional decorators

Reimplemented from JSSTaggerBase.

Definition at line 22 of file SmoothedWZTagger.cxx.

22 {
23
24 ATH_MSG_INFO( "Initializing SmoothedWZTagger tool" );
25
27 m_ptGeV = true;
28
30 m_useMassCut = true;
31
32 if ( ! m_configFile.empty() ) {
33
36
37 if ( m_wkpt.empty() ) {
38 m_strMassCutLow = m_configReader.GetValue("MassCutLow", "");
39 m_strMassCutHigh = m_configReader.GetValue("MassCutHigh", "");
40 m_strD2Cut = m_configReader.GetValue("D2Cut", "");
41 m_strNtrkCut = m_configReader.GetValue("NtrkCut", "");
42 m_strScoreCut = m_configReader.GetValue("ScoreCut", "");
43 }
44 else {
45 m_strMassCutLow = m_configReader.GetValue((m_wkpt+".MassCutLow").c_str(), "");
46 m_strMassCutHigh = m_configReader.GetValue((m_wkpt+".MassCutHigh").c_str(), "");
47 m_strD2Cut = m_configReader.GetValue((m_wkpt+".D2Cut").c_str(), "");
48 m_strNtrkCut = m_configReader.GetValue((m_wkpt+".NtrkCut").c_str(), "");
49 m_strScoreCut = m_configReader.GetValue((m_wkpt+".ScoreCut").c_str(), "");
50 }
51
53 m_jetPtMin = m_configReader.GetValue("pTCutLow", 200.0);
54 m_jetPtMax = m_configReader.GetValue("pTCutHigh", 4000.0);
55
57 m_decorationName = m_configReader.GetValue("DecorationName", "");
58
60 if (!m_strScoreCut.empty())
61 m_useScore = true;
62
64 m_calcSF = m_configReader.GetValue("CalcSF", false);
65 if ( m_calcSF ) {
66 m_weightDecorationName = m_configReader.GetValue("WeightDecorationName", "");
67 m_weightFileName = m_configReader.GetValue("WeightFile", "");
68 m_weightHistogramName = m_configReader.GetValue("WeightHistogramName", "");
69 m_efficiencyHistogramName = m_configReader.GetValue("EfficiencyHistogramName", "");
70 m_weightFlavors = m_configReader.GetValue("WeightFlavors", "");
71
73 m_truthLabelName = m_configReader.GetValue("TruthLabelName", "R10TruthLabel_R21Consolidated");
74
75 if ( m_calibArea.compare("Local") == 0 ) {
76 m_weightConfigPath = PathResolverFindCalibFile(("$WorkDir_DIR/data/BoostedJetTaggers/SmoothedWZTaggers/"+m_weightFileName).c_str());
77 }
78 else if ( m_calibArea.find("eos") != std::string::npos ) {
80 }
81 else {
83 }
84 }
85
86 }
87 else {
90 if( m_strD2Cut.empty() || m_strMassCutLow.empty() || m_strMassCutHigh.empty() ||
91 ((m_weightDecorationName.empty() ||
92 m_weightHistogramName.empty() ||
93 m_weightFlavors.empty()) && m_calcSF) ) {
94 ATH_MSG_ERROR( "No config file provided AND no parameters specified." ) ;
95 return StatusCode::FAILURE;
96 }
97 }
98
100 m_useNtrk = !m_strNtrkCut.empty();
101
103 m_funcD2Cut = std::make_unique<TF1>("strD2Cut", m_strD2Cut.c_str(), 0, 14000);
104 if ( m_useNtrk ) m_funcNtrkCut = std::make_unique<TF1>("strNtrkCut", m_strNtrkCut.c_str(), 0, 14000);
105 if(m_useScore)
106 m_funcScoreCut = std::make_unique<TF1>("strScoreCut", m_strScoreCut.c_str(), 0, 14000);
107
108 ATH_MSG_INFO( "Smoothed WZ Tagger tool initialized" );
109 ATH_MSG_INFO( " Mass cut low : " << m_strMassCutLow );
110 ATH_MSG_INFO( " Mass cut High : " << m_strMassCutHigh );
111 ATH_MSG_INFO( " D2 cut high : " << m_strD2Cut );
112 if ( m_useNtrk )
113 ATH_MSG_INFO( " Ntrk cut high : " << m_strNtrkCut );
114 if( m_useScore)
115 ATH_MSG_INFO( " Score cut low : " << m_strScoreCut );
116 ATH_MSG_INFO( " DecorationName : " << m_decorationName );
117 if ( m_calcSF ) {
118 ATH_MSG_INFO( "weightDecorationName : " << m_weightDecorationName );
119 ATH_MSG_INFO( "weightFile : " << m_weightFileName );
120 ATH_MSG_INFO( "weightHistogramName : " << m_weightHistogramName );
121 ATH_MSG_INFO( "efficiencyHistogramName : " << m_efficiencyHistogramName );
122 ATH_MSG_INFO( "weightFlavors : " << m_weightFlavors );
123 ATH_MSG_INFO( "TruthLabelName : " << m_truthLabelName );
124 }
125 ATH_MSG_INFO( " Pt cut low : " << m_jetPtMin );
126 ATH_MSG_INFO( " Pt cut high : " << m_jetPtMax );
127
129 m_acceptInfo.addCut( "PassMassLow", "mJet > mCutLow" );
130 m_acceptInfo.addCut( "PassMassHigh", "mJet < mCutHigh" );
131 m_acceptInfo.addCut( "PassD2", "D2Jet < D2Cut" );
132 if ( m_useNtrk ) {
133 m_acceptInfo.addCut( "PassNtrk", "NtrkJet < NtrkCut" );
134 }
135 if(m_useScore){
136 m_acceptInfo.addCut( "PassScore", "ScoreJet > ScoreCut" );
137 }
138
140 printCuts();
141
144
146 ATH_MSG_INFO( "Additional decorators that will be attached to jet :" );
147
150
151 ATH_CHECK( m_decPassD2Key.initialize() );
152 ATH_CHECK( m_decCutD2Key.initialize() );
153
154 ATH_MSG_INFO( " " << m_decPassD2Key.key() << " : pass D2 cut" );
155 ATH_MSG_INFO( " " << m_decCutD2Key.key() << " : D2 cut" );
156
159
160 ATH_CHECK( m_decPassNtrkKey.initialize() );
161 ATH_CHECK( m_decCutNtrkKey.initialize() );
162
163 ATH_MSG_INFO( " " << m_decPassNtrkKey.key() << " : pass Ntrk cut" );
164 ATH_MSG_INFO( " " << m_decCutNtrkKey.key() << " : Ntrk cut" );
165
168
169 ATH_CHECK( m_decPassScoreKey.initialize() );
170 ATH_CHECK( m_decCutScoreKey.initialize() );
171
172 ATH_MSG_INFO( " " << m_decPassScoreKey.key() << " : pass Score cut" );
173 ATH_MSG_INFO( " " << m_decCutScoreKey.key() << " : Score cut" );
174
176 ATH_CHECK( m_decAcceptKey.initialize() );
177
179 ATH_CHECK(m_decValidKinRangeKey.initialize());
180 ATH_MSG_INFO(" " << m_decValidKinRangeKey.key() << " : pass kinematic range");
181
182#ifndef XAOD_STANDALONE
194 }
195#endif
196
197 return StatusCode::SUCCESS;
198
199}
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)
Gaudi::Property< bool > m_suppressOutputDependence
std::string m_truthLabelName
std::string m_weightDecorationName
String for scale factor decoration names.
bool m_useMassCut
Flag to indicate if mass window cut is used.
std::string m_wkpt
Tagger information.
std::string m_weightConfigPath
Path to the SF configuration root file.
StatusCode getConfigReader()
Get configReader StatusCode.
std::string m_weightFileName
std::string m_containerName
Configurable members.
std::string m_weightHistogramName
void printCuts() const
Print configured cuts.
virtual StatusCode initialize() override
Initialize the tool.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
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.

◆ modify()

virtual StatusCode IJetDecorator::modify ( xAOD::JetContainer & jets) const
inlinefinaloverridevirtualinherited

Concrete implementation of the function inherited from IJetModifier.

Implements IJetModifier.

Definition at line 32 of file IJetDecorator.h.

32{return decorate(jets);};
virtual StatusCode decorate(const xAOD::JetContainer &jets) const =0
Decorate a jet collection without otherwise modifying it.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
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:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
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.

◆ passKinRange()

bool JSSTaggerBase::passKinRange ( const xAOD::Jet & jet) const
protectedinherited

Check if jet passes kinematic constraints.

Definition at line 350 of file JSSTaggerBase.cxx.

350 {
351
352 float scale = 1.0;
353 if ( m_ptGeV ) scale = 1.e3;
354
355 if ( jet.pt() < m_jetPtMin * scale ) return false;
356 if ( jet.pt() > m_jetPtMax * scale ) return false;
357 if ( std::abs( jet.eta() ) > m_jetEtaMax ) return false;
358
359 return true;
360
361}

◆ print()

◆ printCuts()

void JSSTaggerBase::printCuts ( ) const
protectedinherited

Print configured cuts.

Definition at line 924 of file JSSTaggerBase.cxx.

924 {
925 ATH_MSG_INFO( "After tagging, you will have access to the following cuts as an asg::AcceptData : (<NCut>) <cut> : <description>)" );
926 int nCuts = m_acceptInfo.getNCuts();
927 for ( int iCut=0; iCut < nCuts; iCut++ ) {
928 std::string cut_string = "";
929 cut_string += " (";
930 cut_string += std::to_string(iCut);
931 cut_string += ") ";
932 cut_string += m_acceptInfo.getCutName(iCut).data();
933 cut_string += " : ";
934 cut_string += m_acceptInfo.getCutDescription(iCut).data();
935 ATH_MSG_INFO( cut_string );
936 }
937}

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ resetCuts()

StatusCode JSSTaggerBase::resetCuts ( asg::AcceptData & acceptData) const
protectedinherited

Reset cuts.

Reset the AcceptData cut results to false

Initialize common cuts to true by default

Definition at line 332 of file JSSTaggerBase.cxx.

332 {
333
335 acceptData.clear();
336
338 acceptData.setCutResult( "ValidJetContent", true );
339 acceptData.setCutResult( "ValidEventContent", true );
340
341 acceptData.setCutResult( "ValidPtRangeHigh", true );
342 acceptData.setCutResult( "ValidPtRangeLow" , true );
343 acceptData.setCutResult( "ValidEtaRange" , true );
344
345 return StatusCode::SUCCESS;
346
347}
void clear()
Clear all bits.
Definition AcceptData.h:54

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
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 asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ tag()

StatusCode SmoothedWZTagger::tag ( const xAOD::Jet & jet) const
overridevirtual

Decorate single jet with tagging info.

Implements JSSTaggerBase.

Definition at line 201 of file SmoothedWZTagger.cxx.

201 {
202
203 ATH_MSG_DEBUG("Obtaining tag result " << jet.pt() << " " << jet.m());
204
205 return StatusCode::SUCCESS;
206
207}

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_acceptInfo

asg::AcceptInfo JSSTaggerBase::m_acceptInfo
protectedinherited

Object that stores the results for a jet.

Definition at line 66 of file JSSTaggerBase.h.

◆ m_calcSF

bool JSSTaggerBase::m_calcSF {}
protectedinherited

Flag to calculate scale factor.

Definition at line 192 of file JSSTaggerBase.h.

192{};

◆ m_calibArea

std::string JSSTaggerBase::m_calibArea
protectedinherited

Location where config files live on cvmfs.

Definition at line 113 of file JSSTaggerBase.h.

◆ m_configFile

std::string JSSTaggerBase::m_configFile
protectedinherited

Configuration file name.

Definition at line 110 of file JSSTaggerBase.h.

◆ m_configReader

TEnv JSSTaggerBase::m_configReader
protectedinherited

TEnv instance to read config files.

Definition at line 63 of file JSSTaggerBase.h.

◆ m_containerName

std::string JSSTaggerBase::m_containerName
protectedinherited

Configurable members.

Jet container name

Definition at line 103 of file JSSTaggerBase.h.

◆ m_decAcceptKey

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decAcceptKey {this, "acceptName", "accept", "SG key for accept"}
private

Definition at line 54 of file SmoothedWZTagger.h.

54{this, "acceptName", "accept", "SG key for accept"};

◆ m_decC2Key

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decC2Key {this, "C2NameOut", "C2", "SG key for C2"}
protectedinherited

Definition at line 145 of file JSSTaggerBase.h.

145{this, "C2NameOut", "C2", "SG key for C2"};

◆ m_decCutD2Key

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decCutD2Key {this, "CutD2Name", "Cut_D2", "SG key for Cut_D2"}
private

Definition at line 51 of file SmoothedWZTagger.h.

51{this, "CutD2Name", "Cut_D2", "SG key for Cut_D2"};

◆ m_decCutMHighKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decCutMHighKey {this, "CutMHighName", "Cut_mhigh", "SG key for Cut_mhigh"}
protectedinherited

Definition at line 219 of file JSSTaggerBase.h.

219{this, "CutMHighName", "Cut_mhigh", "SG key for Cut_mhigh"};

◆ m_decCutMLowKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decCutMLowKey {this, "CutMLowName", "Cut_mlow", "SG key for Cut_mlow"}
protectedinherited

WriteDecorHandle keys for cut values.

Definition at line 218 of file JSSTaggerBase.h.

218{this, "CutMLowName", "Cut_mlow", "SG key for Cut_mlow"};

◆ m_decCutNtrkKey

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decCutNtrkKey {this, "CutNtrkName", "Cut_Ntrk", "SG key for Cut_Ntrk"}
private

Definition at line 52 of file SmoothedWZTagger.h.

52{this, "CutNtrkName", "Cut_Ntrk", "SG key for Cut_Ntrk"};

◆ m_decCutScoreKey

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decCutScoreKey {this, "CutScoreName", "Cut_Score", "SG key for Cut_Score"}
private

Definition at line 53 of file SmoothedWZTagger.h.

53{this, "CutScoreName", "Cut_Score", "SG key for Cut_Score"};

◆ m_decD2Key

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decD2Key {this, "D2NameOut", "D2", "SG key for D2"}
protectedinherited

Definition at line 146 of file JSSTaggerBase.h.

146{this, "D2NameOut", "D2", "SG key for D2"};

◆ m_decE3Key

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decE3Key {this, "e3NameOut", "e3", "SG key for e3"}
protectedinherited

Definition at line 147 of file JSSTaggerBase.h.

147{this, "e3NameOut", "e3", "SG key for e3"};

◆ m_decEfficiencyKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decEfficiencyKey {this, "efficiencyName", "efficiency", "SG key for efficiency"}
protectedinherited

Definition at line 225 of file JSSTaggerBase.h.

225{this, "efficiencyName", "efficiency", "SG key for efficiency"};

◆ m_decEffSFKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decEffSFKey {this, "effSFName", "effSF", "SG key for effSF"}
protectedinherited

Definition at line 226 of file JSSTaggerBase.h.

226{this, "effSFName", "effSF", "SG key for effSF"};

◆ m_decL2Key

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decL2Key {this, "L2NameOut", "L2", "SG key for L2"}
protectedinherited

Definition at line 148 of file JSSTaggerBase.h.

148{this, "L2NameOut", "L2", "SG key for L2"};

◆ m_decL3Key

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decL3Key {this, "L3NameOut", "L3", "SG key for L3"}
protectedinherited

Definition at line 149 of file JSSTaggerBase.h.

149{this, "L3NameOut", "L3", "SG key for L3"};

◆ m_decorationName

std::string JSSTaggerBase::m_decorationName
protectedinherited

Decoration name.

Definition at line 189 of file JSSTaggerBase.h.

◆ m_decPassD2Key

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decPassD2Key {this, "PassD2Name", "PassD2", "SG key for PassD2"}
private

WriteDecorHandle keys.

Definition at line 47 of file SmoothedWZTagger.h.

47{this, "PassD2Name", "PassD2", "SG key for PassD2"};

◆ m_decPassMassKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decPassMassKey {this, "PassMassName", "PassMass", "SG key for PassMass"}
protectedinherited

Definition at line 77 of file JSSTaggerBase.h.

77{this, "PassMassName", "PassMass", "SG key for PassMass"};

◆ m_decPassNtrkKey

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decPassNtrkKey {this, "PassNtrkName", "PassNtrk", "SG key for PassNtrk"}
private

Definition at line 48 of file SmoothedWZTagger.h.

48{this, "PassNtrkName", "PassNtrk", "SG key for PassNtrk"};

◆ m_decPassScoreKey

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decPassScoreKey {this, "PassScoreName", "PassScore", "SG key for PassScore"}
private

Definition at line 49 of file SmoothedWZTagger.h.

49{this, "PassScoreName", "PassScore", "SG key for PassScore"};

◆ m_decScoreCutKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decScoreCutKey {this, "CutScoreName", "Cut_score", "SG key for Cut_score"}
protectedinherited

Definition at line 220 of file JSSTaggerBase.h.

220{this, "CutScoreName", "Cut_score", "SG key for Cut_score"};

◆ m_decScoreValueKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decScoreValueKey {this, "ScoreName", "Score", "SG key for Score"}
protectedinherited

Definition at line 221 of file JSSTaggerBase.h.

221{this, "ScoreName", "Score", "SG key for Score"};

◆ m_decSigeffSFKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decSigeffSFKey {this, "sigeffSFName", "sigeffSF", "SG key for effSF"}
protectedinherited

Definition at line 227 of file JSSTaggerBase.h.

227{this, "sigeffSFName", "sigeffSF", "SG key for effSF"};

◆ m_decTaggedKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decTaggedKey {this, "TaggedName", "Tagged", "SG key for Tagged"}
protectedinherited

WriteDecorHandle keys for tagging bools.

Definition at line 69 of file JSSTaggerBase.h.

69{this, "TaggedName", "Tagged", "SG key for Tagged"};

◆ m_decTau21WTAKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decTau21WTAKey {this, "Tau21WTANameOut", "Tau21_wta", "SG key for Tau21_wta"}
protectedinherited

WriteDecorHandle keys for JSS moments.

Definition at line 141 of file JSSTaggerBase.h.

141{this, "Tau21WTANameOut", "Tau21_wta", "SG key for Tau21_wta"};

◆ m_decTau32WTAKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decTau32WTAKey {this, "Tau32WTANameOut", "Tau32_wta", "SG key for Tau32_wta"}
protectedinherited

Definition at line 142 of file JSSTaggerBase.h.

142{this, "Tau32WTANameOut", "Tau32_wta", "SG key for Tau32_wta"};

◆ m_decTau42WTAKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decTau42WTAKey {this, "Tau42WTANameOut", "Tau42_wta", "SG key for Tau42_wta"}
protectedinherited

Definition at line 143 of file JSSTaggerBase.h.

143{this, "Tau42WTANameOut", "Tau42_wta", "SG key for Tau42_wta"};

◆ m_decValidEtaRangeKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decValidEtaRangeKey {this, "ValidEtaRangeName", "ValidEtaRange", "SG key for ValidEtaRange"}
protectedinherited

Definition at line 72 of file JSSTaggerBase.h.

72{this, "ValidEtaRangeName", "ValidEtaRange", "SG key for ValidEtaRange"};

◆ m_decValidEventContentKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decValidEventContentKey {this, "ValidEventContentName", "ValidEventContent", "SG key for ValidEventContent"}
protectedinherited

Definition at line 75 of file JSSTaggerBase.h.

75{this, "ValidEventContentName", "ValidEventContent", "SG key for ValidEventContent"};

◆ m_decValidJetContentKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decValidJetContentKey {this, "ValidJetContentName", "ValidJetContent", "SG key for ValidJetContent"}
protectedinherited

Definition at line 74 of file JSSTaggerBase.h.

74{this, "ValidJetContentName", "ValidJetContent", "SG key for ValidJetContent"};

◆ m_decValidKinRangeKey

SG::WriteDecorHandleKey<xAOD::JetContainer> SmoothedWZTagger::m_decValidKinRangeKey {this, "ValidKinRangeName", "ValidKinRange", "SG key for ValidKinRange"}
private

Definition at line 55 of file SmoothedWZTagger.h.

55{this, "ValidKinRangeName", "ValidKinRange", "SG key for ValidKinRange"};

◆ m_decValidPtRangeHighKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decValidPtRangeHighKey {this, "ValidPtRangeHighName", "ValidPtRangeHigh", "SG key for ValidPtRangeHigh"}
protectedinherited

Definition at line 70 of file JSSTaggerBase.h.

70{this, "ValidPtRangeHighName", "ValidPtRangeHigh", "SG key for ValidPtRangeHigh"};

◆ m_decValidPtRangeLowKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decValidPtRangeLowKey {this, "ValidPtRangeLowName", "ValidPtRangeLow", "SG key for ValidPtRangeLow"}
protectedinherited

Definition at line 71 of file JSSTaggerBase.h.

71{this, "ValidPtRangeLowName", "ValidPtRangeLow", "SG key for ValidPtRangeLow"};

◆ m_decWeightKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_decWeightKey {this, "weightName", "weight", "SG key for weight"}
protectedinherited

WriteDecorHandle keys for SF.

Definition at line 224 of file JSSTaggerBase.h.

224{this, "weightName", "weight", "SG key for weight"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_efficiencyHistogramName

std::string JSSTaggerBase::m_efficiencyHistogramName
protectedinherited

Definition at line 199 of file JSSTaggerBase.h.

◆ m_efficiencyHistograms

std::map<std::string, std::unique_ptr<TH2D> > JSSTaggerBase::m_efficiencyHistograms
protectedinherited

Definition at line 205 of file JSSTaggerBase.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_funcD2Cut

std::unique_ptr<TF1> SmoothedWZTagger::m_funcD2Cut
private

Functions that are configurable for specific cut values.

Definition at line 42 of file SmoothedWZTagger.h.

◆ m_funcMassCutHigh

std::unique_ptr<TF1> JSSTaggerBase::m_funcMassCutHigh
protectedinherited

Definition at line 185 of file JSSTaggerBase.h.

◆ m_funcMassCutLow

std::unique_ptr<TF1> JSSTaggerBase::m_funcMassCutLow
protectedinherited

TF1 for cut functions.

Definition at line 184 of file JSSTaggerBase.h.

◆ m_funcNtrkCut

std::unique_ptr<TF1> SmoothedWZTagger::m_funcNtrkCut
private

Definition at line 43 of file SmoothedWZTagger.h.

◆ m_funcScoreCut

std::unique_ptr<TF1> SmoothedWZTagger::m_funcScoreCut
private

Definition at line 44 of file SmoothedWZTagger.h.

◆ m_isMC

bool JSSTaggerBase::m_isMC {}
protectedinherited

Definition at line 193 of file JSSTaggerBase.h.

193{};

◆ m_isSmallRJet

bool JSSTaggerBase::m_isSmallRJet = false
protectedinherited

Definition at line 104 of file JSSTaggerBase.h.

◆ m_jetEtaMax

float JSSTaggerBase::m_jetEtaMax {}
protectedinherited

Definition at line 133 of file JSSTaggerBase.h.

133{};

◆ m_jetPtMax

float JSSTaggerBase::m_jetPtMax {}
protectedinherited

Definition at line 132 of file JSSTaggerBase.h.

132{};

◆ m_jetPtMin

float JSSTaggerBase::m_jetPtMin {}
protectedinherited

Kinematic bounds for the jet - the units are controlled by m_ptGeV.

Definition at line 131 of file JSSTaggerBase.h.

131{};

◆ m_kerasCalibArea

std::string JSSTaggerBase::m_kerasCalibArea
protectedinherited

Definition at line 119 of file JSSTaggerBase.h.

◆ m_kerasConfigFileName

std::string JSSTaggerBase::m_kerasConfigFileName
protectedinherited

Keras configurations for ML taggers.

Definition at line 116 of file JSSTaggerBase.h.

◆ m_kerasConfigFilePath

std::string JSSTaggerBase::m_kerasConfigFilePath
protectedinherited

Definition at line 117 of file JSSTaggerBase.h.

◆ m_kerasConfigOutputName

std::string JSSTaggerBase::m_kerasConfigOutputName
protectedinherited

Definition at line 118 of file JSSTaggerBase.h.

◆ m_nWarnMax

const int JSSTaggerBase::m_nWarnMax = 10
protectedinherited

Maximum number of warnings.

Definition at line 81 of file JSSTaggerBase.h.

◆ m_nWarnVar

std::atomic<int> JSSTaggerBase::m_nWarnVar
mutableprotectedinherited

Warning counters.

Definition at line 84 of file JSSTaggerBase.h.

◆ m_ptGeV

bool JSSTaggerBase::m_ptGeV = false
protectedinherited

Flag to indicate units pT is defined in Set to false by default.

Definition at line 88 of file JSSTaggerBase.h.

◆ m_readECF1Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readECF1Key {this, "ECF1Name", "ECF1", "SG key for ECF1"}
protectedinherited

Definition at line 157 of file JSSTaggerBase.h.

157{this, "ECF1Name", "ECF1", "SG key for ECF1"};

◆ m_readECF2Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readECF2Key {this, "ECF2Name", "ECF2", "SG key for ECF2"}
protectedinherited

Definition at line 158 of file JSSTaggerBase.h.

158{this, "ECF2Name", "ECF2", "SG key for ECF2"};

◆ m_readECF3Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readECF3Key {this, "ECF3Name", "ECF3", "SG key for ECF3"}
protectedinherited

Definition at line 159 of file JSSTaggerBase.h.

159{this, "ECF3Name", "ECF3", "SG key for ECF3"};

◆ m_readECFG212Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readECFG212Key {this, "ECFG212Name", "ECFG_2_1_2", "SG key for ECFG_2_1_2"}
protectedinherited

Definition at line 171 of file JSSTaggerBase.h.

171{this, "ECFG212Name", "ECFG_2_1_2", "SG key for ECFG_2_1_2"};

◆ m_readECFG311Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readECFG311Key {this, "ECFG311Name", "ECFG_3_1_1", "SG key for ECFG_3_1_1"}
protectedinherited

Definition at line 170 of file JSSTaggerBase.h.

170{this, "ECFG311Name", "ECFG_3_1_1", "SG key for ECFG_3_1_1"};

◆ m_readECFG331Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readECFG331Key {this, "ECFG331Name", "ECFG_3_3_1", "SG key for ECFG_3_3_1"}
protectedinherited

Definition at line 169 of file JSSTaggerBase.h.

169{this, "ECFG331Name", "ECFG_3_3_1", "SG key for ECFG_3_3_1"};

◆ m_readParentKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readParentKey {this, "ParentName", "Parent", "SG key for Parent"}
protectedinherited

Definition at line 173 of file JSSTaggerBase.h.

173{this, "ParentName", "Parent", "SG key for Parent"};

◆ m_readQwKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readQwKey {this, "QwName", "Qw", "SG key for Qw"}
protectedinherited

Definition at line 164 of file JSSTaggerBase.h.

164{this, "QwName", "Qw", "SG key for Qw"};

◆ m_readSphericityKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readSphericityKey {this, "SphericityName", "Sphericity", "SG key for Sphericity"}
protectedinherited

Definition at line 167 of file JSSTaggerBase.h.

167{this, "SphericityName", "Sphericity", "SG key for Sphericity"};

◆ m_readSplit12Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readSplit12Key {this, "Split12Name", "Split12", "SG key for Split12"}
protectedinherited

Definition at line 161 of file JSSTaggerBase.h.

161{this, "Split12Name", "Split12", "SG key for Split12"};

◆ m_readSplit23Key

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readSplit23Key {this, "Split23Name", "Split23", "SG key for Split23"}
protectedinherited

Definition at line 162 of file JSSTaggerBase.h.

162{this, "Split23Name", "Split23", "SG key for Split23"};

◆ m_readTau1WTAKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readTau1WTAKey {this, "Tau1WTAName", "Tau1_wta", "SG key for Tau1_wta"}
protectedinherited

ReadDecorHandle keys for JSS moments.

Definition at line 152 of file JSSTaggerBase.h.

152{this, "Tau1WTAName", "Tau1_wta", "SG key for Tau1_wta"};

◆ m_readTau2WTAKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readTau2WTAKey {this, "Tau2WTAName", "Tau2_wta", "SG key for Tau2_wta"}
protectedinherited

Definition at line 153 of file JSSTaggerBase.h.

153{this, "Tau2WTAName", "Tau2_wta", "SG key for Tau2_wta"};

◆ m_readTau3WTAKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readTau3WTAKey {this, "Tau3WTAName", "Tau3_wta", "SG key for Tau3_wta"}
protectedinherited

Definition at line 154 of file JSSTaggerBase.h.

154{this, "Tau3WTAName", "Tau3_wta", "SG key for Tau3_wta"};

◆ m_readTau4WTAKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readTau4WTAKey {this, "Tau4WTAName", "Tau4_wta", "SG key for Tau4_wta"}
protectedinherited

Definition at line 155 of file JSSTaggerBase.h.

155{this, "Tau4WTAName", "Tau4_wta", "SG key for Tau4_wta"};

◆ m_readThrustMajKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readThrustMajKey {this, "ThrustMajName", "ThrustMaj", "SG key for ThrustMaj"}
protectedinherited

Definition at line 166 of file JSSTaggerBase.h.

166{this, "ThrustMajName", "ThrustMaj", "SG key for ThrustMaj"};

◆ m_readTruthLabelKey

SG::ReadDecorHandleKey<xAOD::JetContainer> JSSTaggerBase::m_readTruthLabelKey {this, "truthLabelName", "truthLabel", "SG key for truthLabel"}
protectedinherited

Truth label ReadDecorHandle key.

Definition at line 215 of file JSSTaggerBase.h.

215{this, "truthLabelName", "truthLabel", "SG key for truthLabel"};

◆ m_strD2Cut

std::string SmoothedWZTagger::m_strD2Cut
private

Store functional form of cuts.

Definition at line 37 of file SmoothedWZTagger.h.

◆ m_strMassCutHigh

std::string JSSTaggerBase::m_strMassCutHigh
protectedinherited

Definition at line 180 of file JSSTaggerBase.h.

◆ m_strMassCutLow

std::string JSSTaggerBase::m_strMassCutLow
protectedinherited

Strings for cut functions.

Definition at line 179 of file JSSTaggerBase.h.

◆ m_strNtrkCut

std::string SmoothedWZTagger::m_strNtrkCut
private

Definition at line 38 of file SmoothedWZTagger.h.

◆ m_strScoreCut

std::string SmoothedWZTagger::m_strScoreCut
private

Definition at line 39 of file SmoothedWZTagger.h.

◆ m_suppressInputDependence

Gaudi::Property<bool> JSSTaggerBase::m_suppressInputDependence {this, "SuppressInputDependence", false}
protectedinherited

Definition at line 175 of file JSSTaggerBase.h.

175{this, "SuppressInputDependence", false};

◆ m_suppressOutputDependence

Gaudi::Property<bool> JSSTaggerBase::m_suppressOutputDependence {this, "SuppressOutputDependence", false}
protectedinherited

Definition at line 176 of file JSSTaggerBase.h.

176{this, "SuppressOutputDependence", false};

◆ m_tagClass

TAGCLASS JSSTaggerBase::m_tagClass {Unknown}
protectedinherited

Definition at line 98 of file JSSTaggerBase.h.

98{Unknown};

◆ m_tagType

std::string JSSTaggerBase::m_tagType
protectedinherited

Definition at line 128 of file JSSTaggerBase.h.

◆ m_tmvaCalibArea

std::string JSSTaggerBase::m_tmvaCalibArea
protectedinherited

Definition at line 124 of file JSSTaggerBase.h.

◆ m_tmvaConfigFileName

std::string JSSTaggerBase::m_tmvaConfigFileName
protectedinherited

TMVA configurations for BDT taggers.

Definition at line 122 of file JSSTaggerBase.h.

◆ m_tmvaConfigFilePath

std::string JSSTaggerBase::m_tmvaConfigFilePath
protectedinherited

Definition at line 123 of file JSSTaggerBase.h.

◆ m_truthBosonContainerName

std::string JSSTaggerBase::m_truthBosonContainerName
protectedinherited

Definition at line 210 of file JSSTaggerBase.h.

◆ m_truthLabelName

std::string JSSTaggerBase::m_truthLabelName
protectedinherited

Definition at line 212 of file JSSTaggerBase.h.

◆ m_truthLabelUseTRUTH3

bool JSSTaggerBase::m_truthLabelUseTRUTH3 {}
protectedinherited

Truth label options.

Definition at line 208 of file JSSTaggerBase.h.

208{};

◆ m_truthParticleContainerName

std::string JSSTaggerBase::m_truthParticleContainerName
protectedinherited

Definition at line 209 of file JSSTaggerBase.h.

◆ m_truthTopQuarkContainerName

std::string JSSTaggerBase::m_truthTopQuarkContainerName
protectedinherited

Definition at line 211 of file JSSTaggerBase.h.

◆ m_useECFG

bool JSSTaggerBase::m_useECFG = false
protectedinherited

Flags controlling whether generalized ECF moments or L-series ratios are needed TODO: Implement the functionality controlled by these.

Definition at line 137 of file JSSTaggerBase.h.

◆ m_useLSeries

bool JSSTaggerBase::m_useLSeries = false
protectedinherited

Definition at line 138 of file JSSTaggerBase.h.

◆ m_useMassCut

bool JSSTaggerBase::m_useMassCut = false
protectedinherited

Flag to indicate if mass window cut is used.

Definition at line 91 of file JSSTaggerBase.h.

◆ m_useNtrk

bool SmoothedWZTagger::m_useNtrk {}
private

Flag to indicate if Ntrk is used.

Definition at line 31 of file SmoothedWZTagger.h.

31{};

◆ m_useScore

bool SmoothedWZTagger::m_useScore {}
private

Flag to indicate if a ML score is used.

Definition at line 34 of file SmoothedWZTagger.h.

34{};

◆ m_useScoreCut

bool JSSTaggerBase::m_useScoreCut = false
protectedinherited

Flag to indicate if a discriminant score is used.

Definition at line 94 of file JSSTaggerBase.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_weightConfig

std::unique_ptr<TFile> JSSTaggerBase::m_weightConfig
protectedinherited

Histograms for scale factors.

Definition at line 203 of file JSSTaggerBase.h.

◆ m_weightConfigPath

std::string JSSTaggerBase::m_weightConfigPath
protectedinherited

Path to the SF configuration root file.

Definition at line 107 of file JSSTaggerBase.h.

◆ m_weightDecorationName

std::string JSSTaggerBase::m_weightDecorationName
protectedinherited

String for scale factor decoration names.

Definition at line 196 of file JSSTaggerBase.h.

◆ m_weightFileName

std::string JSSTaggerBase::m_weightFileName
protectedinherited

Definition at line 197 of file JSSTaggerBase.h.

◆ m_weightFlavors

std::string JSSTaggerBase::m_weightFlavors
protectedinherited

Definition at line 200 of file JSSTaggerBase.h.

◆ m_weightHistogramName

std::string JSSTaggerBase::m_weightHistogramName
protectedinherited

Definition at line 198 of file JSSTaggerBase.h.

◆ m_weightHistograms

std::map<std::string, std::unique_ptr<TH2D> > JSSTaggerBase::m_weightHistograms
protectedinherited

Definition at line 204 of file JSSTaggerBase.h.

◆ m_wkpt

std::string JSSTaggerBase::m_wkpt
protectedinherited

Tagger information.

Definition at line 127 of file JSSTaggerBase.h.


The documentation for this class was generated from the following files: