 |
ATLAS Offline Software
|
#include <JSSTaggerBase.h>
|
| virtual StatusCode | initialize () override |
| | Initialize the tool. 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, V, H > &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...
|
| |
|
| | JSSTaggerBase (const std::string &name) |
| | Default constructor - to be used in all derived classes. More...
|
| |
| | ~JSSTaggerBase () |
| | Default destructor - to be used in all derived classes. More...
|
| |
| virtual StatusCode | tag (const xAOD::Jet &jet) const =0 |
| | Decorate single jet with tagging info. More...
|
| |
| 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...
|
| |
|
| 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 {Unknown} |
| |
| std::string | m_containerName |
| | Configurable members. More...
|
| |
| bool | m_isSmallRJet = false |
| |
| 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"} |
| |
| Gaudi::Property< bool > | m_suppressInputDependence {this, "SuppressInputDependence", false} |
| |
| Gaudi::Property< bool > | m_suppressOutputDependence {this, "SuppressOutputDependence", false} |
| |
| 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"} |
| |
|
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
Definition at line 38 of file JSSTaggerBase.h.
◆ StoreGateSvc_t
◆ TAGCLASS
TAGTYPE enum.
| Enumerator |
|---|
| Unknown | |
| WBoson | |
| ZBoson | |
| TopQuark | |
Definition at line 97 of file JSSTaggerBase.h.
◆ JSSTaggerBase()
| JSSTaggerBase::JSSTaggerBase |
( |
const std::string & |
name | ) |
|
|
protected |
Default constructor - to be used in all derived classes.
Tagger configuration properties
Jet kinematics properties
Truth labeling properties
Keras properties
TMVA properties
Tagging scale factors
Definition at line 11 of file JSSTaggerBase.cxx.
27 declareProperty(
"WorkingPoint",
m_wkpt =
"",
"If specified, name of working point is added to the variable names" );
37 "Flag to use TRUTH3 containers. If false, TRUTH1 format is used." );
39 "Name of truth-particle container (with UseTRUTH3=false). TruthParticles by default" );
41 "Name of truth-boson container (with UseTRUTH3=true). TruthBosonWithDecayParticles by default" );
43 "Name of truth-top container (with UseTRUTH3=true). TruthTopQuarkWithDecayParticles by default" );
47 "Path to json file to configure ML-taggers (Keras)" );
49 "Name of json file to configure ML-taggers (Keras)" );
51 "Name of output variable by the ML-tagger (Keras)" );
55 "Path to xml file to configure ML-taggers (TMVA)" );
57 "Name of xml file to configure ML-taggers (TMVA)" );
61 "Name of SF variable decorated to xAOD::Jet" );
63 "Name of config ROOT file for SF calculation" );
65 "Name of SF histograms in the ROOT file" );
67 "Name of efficiency histograms in the ROOT file" );
69 "List of jet flavours for which the SF is available. Divided by comma" );
◆ ~JSSTaggerBase()
| JSSTaggerBase::~JSSTaggerBase |
( |
| ) |
|
|
inlineprotected |
◆ calculateJSSRatios()
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 413 of file JSSTaggerBase.cxx.
428 float tau21_wta = -999.0;
429 float tau32_wta = -999.0;
430 float tau42_wta = -999.0;
438 float tau1_wta = readTau1WTA(
jet);
439 float tau2_wta = readTau2WTA(
jet);
440 float tau3_wta = readTau3WTA(
jet);
441 float tau4_wta = readTau4WTA(
jet);
443 if ( tau1_wta > 1
e-8 ) {
444 tau21_wta = tau2_wta / tau1_wta;
448 if ( tau2_wta > 1
e-8 ) {
449 tau32_wta = tau3_wta / tau2_wta;
450 tau42_wta = tau4_wta / tau2_wta;
455 decTau21WTA(
jet) = tau21_wta;
456 decTau32WTA(
jet) = tau32_wta;
457 decTau42WTA(
jet) = tau42_wta;
473 float ECF1 = readECF1(
jet);
474 float ECF2 = readECF2(
jet);
475 float ECF3 = readECF3(
jet);
478 C2 = ECF3 * ECF1 /
std::pow( ECF2, 2.0 );
489 if(readECFG331.isAvailable() && readECFG212.isAvailable()){
490 if(readECFG212(
jet) > 1
e-8){
496 if(readECFG331.isAvailable() && readECFG311.isAvailable()){
497 if(readECFG331(
jet) > 1
e-8){
509 if(!accL2.isAvailable(
jet)) decL2(
jet) =
L2;
512 if(!accL3.isAvailable(
jet)) decL3(
jet) =
L3;
◆ checkKinRange()
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 367 of file JSSTaggerBase.cxx.
401 decValidPtRangeHigh(
jet) = acceptData.
getCutResult(
"ValidPtRangeHigh" );
402 decValidPtRangeLow(
jet) = acceptData.
getCutResult(
"ValidPtRangeLow" );
406 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| 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.
◆ declareProperty() [6/6]
◆ decorate()
◆ decorateJSSRatios()
Create write decor handles
WTA N-subjettiness ratios
ECF ratios
Definition at line 521 of file JSSTaggerBase.cxx.
525 bool decor_available = decTau21WTA.isAvailable();
526 if(decor_available)
return;
537 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau1WTA;
538 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau2WTA;
539 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau3WTA;
540 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readTau4WTA;
542 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECF1;
543 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECF2;
544 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECF3;
546 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECFG331;
547 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECFG311;
548 std::unique_ptr<SG::ReadDecorHandle<xAOD::JetContainer, float>> readECFG212;
551 readTau1WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readTau1WTAKey);
552 readTau2WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readTau2WTAKey);
553 readTau3WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readTau3WTAKey);
554 readTau4WTA = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readTau4WTAKey);
556 readECF1 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readECF1Key);
557 readECF2 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readECF2Key);
558 readECF3 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readECF3Key);
560 readECFG331 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readECFG331Key);
561 readECFG311 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readECFG311Key);
562 readECFG212 = std::make_unique<SG::ReadDecorHandle<xAOD::JetContainer, float> >(
m_readECFG212Key);
567 float tau21_wta = -999.0;
568 float tau32_wta = -999.0;
569 float tau42_wta = -999.0;
581 float tau1_wta = (*readTau1WTA)(*jet);
582 float tau2_wta = (*readTau2WTA)(*jet);
583 float tau3_wta = (*readTau3WTA)(*jet);
584 float tau4_wta = (*readTau4WTA)(*jet);
586 if ( tau1_wta > 1
e-8 ) {
587 tau21_wta = tau2_wta / tau1_wta;
590 if ( tau2_wta > 1
e-8 ) {
591 tau32_wta = tau3_wta / tau2_wta;
592 tau42_wta = tau4_wta / tau2_wta;
596 float ECF1 = (*readECF1)(*jet);
597 float ECF2 = (*readECF2)(*jet);
598 float ECF3 = (*readECF3)(*jet);
601 C2 = ECF3 * ECF1 /
std::pow( ECF2, 2.0 );
608 if((*readECFG331).isAvailable() && (*readECFG212).isAvailable()){
609 if((*readECFG212)(*
jet) > 1
e-8){
610 L2 = (*readECFG331)(*jet) /
std::pow((*readECFG212)(*
jet), 1.5);
614 if((*readECFG331).isAvailable() && (*readECFG311).isAvailable()){
615 if((*readECFG331)(*
jet) > 1
e-8){
616 L3 = (*readECFG311)(*jet) /
std::pow((*readECFG331)(*
jet), 1./3.);
621 decTau21WTA(*
jet) = tau21_wta;
622 decTau32WTA(*
jet) = tau32_wta;
623 decTau42WTA(*
jet) = tau42_wta;
630 if(!accL2.isAvailable(*
jet)) decL2(*
jet) =
L2;
633 if(!accL3.isAvailable(*
jet)) decL3(*
jet) =
L3;
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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 |
|
protected |
Find the PV (to be used for Ntrk)
Definition at line 644 of file JSSTaggerBase.cxx.
650 ATH_MSG_WARNING(
"Unable to retrieve primary vertex container PrimaryVertices" );
654 for (
const auto *vx : *vxCont ) {
656 indexPV = vtx_counter;
◆ getConfigReader()
| StatusCode JSSTaggerBase::getConfigReader |
( |
| ) |
|
|
protected |
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 296 of file JSSTaggerBase.cxx.
301 std::string configPath;
306 else if (
m_calibArea.find(
"eos") != std::string::npos) {
316 int fSuccess = gSystem->GetPathInfo(configPath.c_str(), fStats);
319 return StatusCode::FAILURE;
322 ATH_MSG_DEBUG(
"Recommendations file was found : " << configPath );
325 if (
m_configReader.ReadFile( configPath.c_str(), EEnvLevel(0) ) ) {
326 ATH_MSG_ERROR(
"Error while reading config file : "<< configPath );
327 return StatusCode::FAILURE;
330 return StatusCode::SUCCESS;
◆ getKey()
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
-
| ptr | The 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.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ 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
-
| ptr | The 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.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ 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 |
|
protected |
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 780 of file JSSTaggerBase.cxx.
789 const double WtoZmassShift = 10803;
793 if ( logmOverPt > 0 ) logmOverPt = 0;
810 std::string signal_truthLabel=
"";
812 signal_truthLabel=
"t_qqb";
814 signal_truthLabel=
"V_qq";
816 signal_truthLabel=
"t";
823 return std::make_pair( 1.0,
eff );
827 ATH_MSG_DEBUG(
"(pt, m/pt) (" <<
jet.pt()/1.e3 <<
", " <<
jet.m()/
jet.pt() <<
") is out of range for SF calculation. Returning 1.0" );
828 return std::make_pair( 1.0, 1.0 );
831 return std::make_pair(
SF,
eff );
◆ getTruthLabelStr()
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 838 of file JSSTaggerBase.cxx.
840 std::string truthLabelStr;
851 truthLabelStr =
"t_qqb";
864 truthLabelStr =
"t_";
868 truthLabelStr =
"V_qq_";
872 truthLabelStr =
"q_";
877 truthLabelStr +=
"passMpassD2";
881 truthLabelStr +=
"failMpassD2";
885 truthLabelStr +=
"passMfailD2";
889 truthLabelStr +=
"failMfailD2";
903 truthLabelStr =
"V_qq";
924 return truthLabelStr;
◆ GetUnGroomTracks()
| int JSSTaggerBase::GetUnGroomTracks |
( |
const xAOD::Jet & |
jet, |
|
|
int |
indexPV |
|
) |
| const |
|
protected |
Retrieve Ntrk variable from the ungroomed parent jet.
Retrieve the Ntrk variable from the ungroomed parent jet.
Definition at line 668 of file JSSTaggerBase.cxx.
672 const xAOD::Jet * ungroomedJet =
nullptr;
673 if ( readParent.isAvailable() ) {
675 if ( linkToUngroomed.
isValid() ) {
676 ungroomedJet = *linkToUngroomed;
680 if ( acc_Ntrk.isAvailable(*ungroomedJet) ) {
682 const std::vector<int>& NTrkPt500 = acc_Ntrk(*ungroomedJet);
684 int jet_ntrk = NTrkPt500.at(indexPV);
689 ATH_MSG_ERROR(
"WARNING: Unable to retrieve Ntrk of the ungroomed parent jet. Please make sure this variable is in your derivations!!!");
693 ATH_MSG_ERROR(
"WARNING: Unable to retrieve the parent ungroomed jet. Please make sure this variable is in your derivations!!!");
697 ATH_MSG_ERROR(
"WARNING: Unable to retrieve the link to the parent ungroomed jet. Please make sure this variable is in your derivations!!!");
◆ getWeight()
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 706 of file JSSTaggerBase.cxx.
707 if ( !
m_calcSF )
return StatusCode::SUCCESS;
711 float sigeffSF = 1.0;
721 sigeffSF =
getSF(
jet,
"t_qqb").first;
723 sigeffSF =
getSF(
jet,
"V_qq").first;
772 decEffSF(
jet) = effSF;
773 decSigeffSF(
jet) = sigeffSF;
775 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode JSSTaggerBase::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize the tool.
Make sure jet container is set
Initialize warning counters
Define common tagger states
Initialize decorators
Initialize SFs if they are needed
Get weight config file
Install histograms for tagging SFs
Initialize the TF1 functions
Reimplemented from asg::AsgTool.
Reimplemented in CP::JetQGTagger, CP::JetQGTaggerBDT, JSSWTopTaggerANN, JSSTaggerUtils, JSSWTopTaggerDNN, SmoothedTopTagger, and SmoothedWZTagger.
Definition at line 72 of file JSSTaggerBase.cxx.
77 return StatusCode::FAILURE;
89 m_acceptInfo.
addCut(
"ValidJetContent" ,
"True if the jet is alright technically (e.g. all attributes necessary for tag)" );
90 m_acceptInfo.
addCut(
"ValidEventContent" ,
"True if the event is alright technically (e.g. primary vertices)" );
93 ATH_MSG_INFO(
"Decorators that will be attached to jet :" );
217 #ifndef XAOD_STANDALONE
259 return StatusCode::FAILURE;
265 while ( std::getline(
ss, flavor,
',') ) {
270 ATH_MSG_INFO(
"Tagging SF histogram for " << flavor <<
" is installed." );
280 return StatusCode::SUCCESS;
◆ inputHandles()
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()
|
|
inlinefinaloverridevirtualinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
◆ msgLvl()
◆ outputHandles()
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()
◆ print()
| void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ printCuts()
| void JSSTaggerBase::printCuts |
( |
| ) |
const |
|
protected |
Print configured cuts.
Definition at line 927 of file JSSTaggerBase.cxx.
928 ATH_MSG_INFO(
"After tagging, you will have access to the following cuts as an asg::AcceptData : (<NCut>) <cut> : <description>)" );
930 for (
int iCut=0; iCut < nCuts; iCut++ ) {
931 std::string cut_string =
"";
◆ renounce()
◆ renounceArray()
◆ resetCuts()
Reset cuts.
Reset the AcceptData cut results to false
Initialize common cuts to true by default
Definition at line 335 of file JSSTaggerBase.cxx.
348 return StatusCode::SUCCESS;
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ tag()
◆ updateVHKA()
◆ m_acceptInfo
Object that stores the results for a jet.
Definition at line 66 of file JSSTaggerBase.h.
◆ m_calcSF
| bool JSSTaggerBase::m_calcSF {} |
|
protected |
◆ m_calibArea
| std::string JSSTaggerBase::m_calibArea |
|
protected |
Location where config files live on cvmfs.
Definition at line 113 of file JSSTaggerBase.h.
◆ m_configFile
| std::string JSSTaggerBase::m_configFile |
|
protected |
◆ m_configReader
| TEnv JSSTaggerBase::m_configReader |
|
protected |
◆ m_containerName
| std::string JSSTaggerBase::m_containerName |
|
protected |
◆ m_decC2Key
◆ m_decCutMHighKey
◆ m_decCutMLowKey
◆ m_decD2Key
◆ m_decE3Key
◆ m_decEfficiencyKey
◆ m_decEffSFKey
◆ m_decL2Key
◆ m_decL3Key
◆ m_decorationName
| std::string JSSTaggerBase::m_decorationName |
|
protected |
◆ m_decPassMassKey
◆ m_decPassScoreKey
◆ m_decScoreCutKey
◆ m_decScoreValueKey
◆ m_decSigeffSFKey
◆ m_decTaggedKey
WriteDecorHandle keys for tagging bools.
Definition at line 69 of file JSSTaggerBase.h.
◆ m_decTau21WTAKey
◆ m_decTau32WTAKey
◆ m_decTau42WTAKey
◆ m_decValidEtaRangeKey
◆ m_decValidEventContentKey
◆ m_decValidJetContentKey
◆ m_decValidKinRangeKey
◆ m_decValidPtRangeHighKey
◆ m_decValidPtRangeLowKey
◆ m_decWeightKey
◆ m_detStore
◆ m_efficiencyHistogramName
| std::string JSSTaggerBase::m_efficiencyHistogramName |
|
protected |
◆ m_efficiencyHistograms
| std::map<std::string, std::unique_ptr<TH2D> > JSSTaggerBase::m_efficiencyHistograms |
|
protected |
◆ m_evtStore
◆ m_funcMassCutHigh
| std::unique_ptr<TF1> JSSTaggerBase::m_funcMassCutHigh |
|
protected |
◆ m_funcMassCutLow
| std::unique_ptr<TF1> JSSTaggerBase::m_funcMassCutLow |
|
protected |
◆ m_funcScoreCut
| std::unique_ptr<TF1> JSSTaggerBase::m_funcScoreCut |
|
protected |
◆ m_isMC
| bool JSSTaggerBase::m_isMC {} |
|
protected |
◆ m_isSmallRJet
| bool JSSTaggerBase::m_isSmallRJet = false |
|
protected |
◆ m_jetEtaMax
| float JSSTaggerBase::m_jetEtaMax {} |
|
protected |
◆ m_jetPtMax
| float JSSTaggerBase::m_jetPtMax {} |
|
protected |
◆ m_jetPtMin
| float JSSTaggerBase::m_jetPtMin {} |
|
protected |
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
Definition at line 131 of file JSSTaggerBase.h.
◆ m_kerasCalibArea
| std::string JSSTaggerBase::m_kerasCalibArea |
|
protected |
◆ m_kerasConfigFileName
| std::string JSSTaggerBase::m_kerasConfigFileName |
|
protected |
◆ m_kerasConfigFilePath
| std::string JSSTaggerBase::m_kerasConfigFilePath |
|
protected |
◆ m_kerasConfigOutputName
| std::string JSSTaggerBase::m_kerasConfigOutputName |
|
protected |
◆ m_nWarnMax
| const int JSSTaggerBase::m_nWarnMax = 10 |
|
protected |
◆ m_nWarnVar
| std::atomic<int> JSSTaggerBase::m_nWarnVar |
|
mutableprotected |
◆ m_ptGeV
| bool JSSTaggerBase::m_ptGeV = false |
|
protected |
Flag to indicate units pT is defined in Set to false by default.
Definition at line 88 of file JSSTaggerBase.h.
◆ m_readECF1Key
◆ m_readECF2Key
◆ m_readECF3Key
◆ m_readECFG212Key
◆ m_readECFG311Key
◆ m_readECFG331Key
◆ m_readParentKey
◆ m_readQwKey
◆ m_readSphericityKey
◆ m_readSplit12Key
◆ m_readSplit23Key
◆ m_readTau1WTAKey
◆ m_readTau2WTAKey
◆ m_readTau3WTAKey
◆ m_readTau4WTAKey
◆ m_readThrustMajKey
◆ m_readTruthLabelKey
◆ m_strMassCutHigh
| std::string JSSTaggerBase::m_strMassCutHigh |
|
protected |
◆ m_strMassCutLow
| std::string JSSTaggerBase::m_strMassCutLow |
|
protected |
◆ m_strScoreCut
| std::string JSSTaggerBase::m_strScoreCut |
|
protected |
◆ m_suppressInputDependence
| Gaudi::Property<bool> JSSTaggerBase::m_suppressInputDependence {this, "SuppressInputDependence", false} |
|
protected |
◆ m_suppressOutputDependence
| Gaudi::Property<bool> JSSTaggerBase::m_suppressOutputDependence {this, "SuppressOutputDependence", false} |
|
protected |
◆ m_tagClass
◆ m_tagType
| std::string JSSTaggerBase::m_tagType |
|
protected |
◆ m_tmvaCalibArea
| std::string JSSTaggerBase::m_tmvaCalibArea |
|
protected |
◆ m_tmvaConfigFileName
| std::string JSSTaggerBase::m_tmvaConfigFileName |
|
protected |
◆ m_tmvaConfigFilePath
| std::string JSSTaggerBase::m_tmvaConfigFilePath |
|
protected |
◆ m_truthBosonContainerName
| std::string JSSTaggerBase::m_truthBosonContainerName |
|
protected |
◆ m_truthLabelName
| std::string JSSTaggerBase::m_truthLabelName |
|
protected |
◆ m_truthLabelUseTRUTH3
| bool JSSTaggerBase::m_truthLabelUseTRUTH3 {} |
|
protected |
◆ m_truthParticleContainerName
| std::string JSSTaggerBase::m_truthParticleContainerName |
|
protected |
◆ m_truthTopQuarkContainerName
| std::string JSSTaggerBase::m_truthTopQuarkContainerName |
|
protected |
◆ m_useECFG
| bool JSSTaggerBase::m_useECFG = false |
|
protected |
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 |
|
protected |
◆ m_useMassCut
| bool JSSTaggerBase::m_useMassCut = false |
|
protected |
Flag to indicate if mass window cut is used.
Definition at line 91 of file JSSTaggerBase.h.
◆ m_useScoreCut
| bool JSSTaggerBase::m_useScoreCut = false |
|
protected |
Flag to indicate if a discriminant score is used.
Definition at line 94 of file JSSTaggerBase.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_weightConfig
| std::unique_ptr<TFile> JSSTaggerBase::m_weightConfig |
|
protected |
◆ m_weightConfigPath
| std::string JSSTaggerBase::m_weightConfigPath |
|
protected |
◆ m_weightDecorationName
| std::string JSSTaggerBase::m_weightDecorationName |
|
protected |
◆ m_weightFileName
| std::string JSSTaggerBase::m_weightFileName |
|
protected |
◆ m_weightFlavors
| std::string JSSTaggerBase::m_weightFlavors |
|
protected |
◆ m_weightHistogramName
| std::string JSSTaggerBase::m_weightHistogramName |
|
protected |
◆ m_weightHistograms
| std::map<std::string, std::unique_ptr<TH2D> > JSSTaggerBase::m_weightHistograms |
|
protected |
◆ m_wkpt
| std::string JSSTaggerBase::m_wkpt |
|
protected |
The documentation for this class was generated from the following files:
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readParentKey
def retrieve(aClass, aKey=None)
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau4WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSplit23Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF1Key
std::string getTruthLabelStr(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decScoreCutKey
std::string m_strMassCutLow
Strings for cut functions.
std::unique_ptr< TF1 > m_funcScoreCut
Gaudi::Property< bool > m_suppressInputDependence
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG311Key
std::atomic< int > m_nWarnVar
Warning counters.
Gaudi::Property< bool > m_suppressOutputDependence
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEtaRangeKey
std::string m_kerasCalibArea
std::map< std::string, std::unique_ptr< TH2D > > m_efficiencyHistograms
std::string m_configFile
Configuration file name.
TEnv m_configReader
TEnv instance to read config files.
std::string m_tmvaCalibArea
Int_t FindBin(const TAxis *axis, const double x)
std::string m_weightFileName
virtual StatusCode tag(const xAOD::Jet &jet) const =0
Decorate single jet with tagging info.
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)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassScoreKey
const float SF[NF]
Cross sections for Fluor.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau2WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSplit12Key
float m_jetPtMin
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL3Key
Helper class to provide constant type-safe access to aux data.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutMLowKey
WriteDecorHandle keys for cut values.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decC2Key
std::string m_decorationName
Decoration name.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG331Key
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeHighKey
bool isValid() const
Test to see if the link can be dereferenced.
std::unique_ptr< TF1 > m_funcMassCutHigh
std::string m_weightHistogramName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidJetContentKey
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage)
std::string m_calibArea
Location where config files live on cvmfs.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decWeightKey
WriteDecorHandle keys for SF.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTruthLabelKey
Truth label ReadDecorHandle key.
virtual void setOwner(IDataHandleHolder *o)=0
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decSigeffSFKey
std::string m_truthLabelName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decE3Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutMHighKey
bool m_ptGeV
Flag to indicate units pT is defined in Set to false by default.
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="")
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau32WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readQwKey
Handle class for reading a decoration on an object.
std::pair< double, double > getSF(const xAOD::Jet &jet, const std::string &truthLabelStr) const
Get scale factor and efficiency.
std::unique_ptr< TFile > m_weightConfig
Histograms for scale factors.
std::string m_kerasConfigOutputName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG212Key
std::string m_tmvaConfigFileName
TMVA configurations for BDT taggers.
unsigned int getNCuts() const
Get the number of cuts defined.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Handle class for adding a decoration to an object.
std::string m_efficiencyHistogramName
std::string m_strScoreCut
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau42WTAKey
std::string m_truthBosonContainerName
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEffSFKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::string m_wkpt
Tagger information.
bool m_calcSF
Flag to calculate scale factor.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEventContentKey
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decD2Key
std::string m_truthTopQuarkContainerName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readThrustMajKey
asg::AcceptInfo m_acceptInfo
Object that stores the results for a jet.
std::string to_string(const DetectorType &type)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau21WTAKey
WriteDecorHandle keys for JSS moments.
bool m_truthLabelUseTRUTH3
Truth label options.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decScoreValueKey
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
std::string m_weightDecorationName
String for scale factor decoration names.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidKinRangeKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau1WTAKey
ReadDecorHandle keys for JSS moments.
std::map< std::string, std::unique_ptr< TH2D > > m_weightHistograms
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const =0
Decorate a jet collection without otherwise modifying it.
bool passKinRange(const xAOD::Jet &jet) const
Check if jet passes kinematic constraints.
void clear()
Clear all bits.
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
#define ATH_MSG_WARNING(x)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeLowKey
std::string m_truthParticleContainerName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readSphericityKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau3WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF3Key
TypeEnum intToEnum(const int type)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassMassKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::unique_ptr< TF1 > m_funcMassCutLow
TF1 for cut functions.
std::string m_strMassCutHigh
std::string m_kerasConfigFileName
Keras configurations for ML taggers.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL2Key
std::string m_weightConfigPath
Path to the SF configuration root file.
std::string m_weightFlavors
constexpr int pow(int base, int exp) noexcept
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTaggedKey
WriteDecorHandle keys for tagging bools.
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.
std::string m_containerName
Configurable members.