![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <JetQGTagger.h>
|
| JetQGTagger (const std::string &name) |
|
virtual | ~JetQGTagger () |
|
virtual StatusCode | initialize () override |
| Initialize the tool. More...
|
|
virtual StatusCode | tag (const xAOD::Jet &jet, const xAOD::Vertex *pv) const override |
|
virtual StatusCode | tag (const xAOD::Jet &jet) const override |
|
virtual bool | isAffectedBySystematic (const SystematicVariation &var) const override |
| returns: whether this tool is affected by the given systematic guarantee: no-fail More...
|
|
virtual SystematicSet | affectingSystematics () const override |
| returns: the list of all systematics this tool can be affected by guarantee: strong failures: out of memory II More...
|
|
virtual SystematicSet | recommendedSystematics () const override |
| returns: the list of all systematics this tool can be affected by guarantee: strong failures: out of memory II More...
|
|
virtual StatusCode | applySystematicVariation (const SystematicSet &set) override |
| effects: configure this tool for the given list of systematic variations. More...
|
|
virtual StatusCode | sysApplySystematicVariation (const SystematicSet &) override |
| effects: configure this tool for the given list of systematic variations. More...
|
|
virtual void | print () const =0 |
| Print the state of 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 > &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...
|
|
const SystematicSet & | appliedSystematics () const |
| returns: the list of systematics that have been applied to this tool. More...
|
|
std::string | appliedSystematicsString () const |
| returns: a string representation of appliedSystematics() guarantee: strong failures: out of memory II rationale: this is meant to be used when printing out the applied systematics for debugging purposes (or when embedding them in a string). More...
|
|
void | testInvariant () const |
| effects: test the invariance of this object guarantee: no-fail 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...
|
|
int | findPV () const |
| Find the PV (to be used for Ntrk) More...
|
|
StatusCode | GetUnGroomTracks (const xAOD::Jet &jet, int indexPV) const |
| Retrieve Ntrk variable from the ungroomed parent jet. More...
|
|
StatusCode | getWeight (const xAOD::Jet &jet, bool passSel, asg::AcceptData &acceptData) const |
| Get SF weight. More...
|
|
std::pair< double, double > | getSF (const xAOD::Jet &jet, const std::string &truthLabelStr) const |
| Get scale factor and efficiency. More...
|
|
std::string | getTruthLabelStr (const xAOD::Jet &jet, asg::AcceptData &acceptData) const |
|
void | printCuts () const |
| Print configured cuts. More...
|
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
|
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. More...
|
|
StatusCode | addAffectingSystematic (const SystematicVariation &systematic, bool recommended) |
| effects: add a systematic to the list of registered systematics. More...
|
|
StatusCode | addRecommendedSystematic (const SystematicVariation &systematic) |
| effects: add a systematic to the list of recommended systematics failures: unsupported systematic More...
|
|
void | addAffectingSystematics (const SystematicSet &systematics) |
| effects: add a SystematicSet to the registered systematics. More...
|
|
StatusCode | addRecommendedSystematics (const SystematicSet &systematics) |
| effects: add a SystematicSet to the recommended systematics. 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::ReadHandleKey< xAOD::JetContainer > | m_jetContainer_key {this, "JetContainer", "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets", "SG key for input jet container"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTaggedKey {this, "TaggedName", "Tagged", "SG key for Tagged"} |
| WriteDecorHandle keys for tagging bools. More...
|
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidPtRangeHighKey {this, "ValidPtRangeHighName", "ValidPtRangeHigh", "SG key for ValidPtRangeHigh"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidPtRangeLowKey {this, "ValidPtRangeLowName", "ValidPtRangeLow", "SG key for ValidPtRangeLow"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidEtaRangeKey {this, "ValidEtaRangeName", "ValidEtaRange", "SG key for ValidEtaRange"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidKinRangeKey {this, "ValidKinRangeName", "ValidKinRange", "SG key for ValidKinRange"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidJetContentKey {this, "ValidJetContentName", "ValidJetContent", "SG key for ValidJetContent"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decValidEventContentKey {this, "ValidEventContentName", "ValidEventContent", "SG key for ValidEventContent"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decPassMassKey {this, "PassMassName", "PassMass", "SG key for PassMass"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decPassScoreKey {this, "PassScoreName", "PassScore", "SG key for PassScore"} |
|
const int | m_nWarnMax = 10 |
| Maximum number of warnings. More...
|
|
std::atomic< int > | m_nWarnVar |
| Warning counters. More...
|
|
bool | m_ptGeV = false |
| Flag to indicate units pT is defined in Set to false by default. More...
|
|
bool | m_useMassCut = false |
| Flag to indicate if mass window cut is used. More...
|
|
bool | m_useScoreCut = false |
| Flag to indicate if a discriminant score is used. More...
|
|
TAGCLASS | m_tagClass |
|
std::string | m_containerName |
| Configurable members. More...
|
|
std::string | m_weightConfigPath |
| Path to the SF configuration root file. More...
|
|
std::string | m_configFile |
| Configuration file name. More...
|
|
std::string | m_calibArea |
| Location where config files live on cvmfs. More...
|
|
std::string | m_kerasConfigFileName |
| Keras configurations for ML taggers. More...
|
|
std::string | m_kerasConfigFilePath |
|
std::string | m_kerasConfigOutputName |
|
std::string | m_kerasCalibArea |
|
std::string | m_tmvaConfigFileName |
| TMVA configurations for BDT taggers. More...
|
|
std::string | m_tmvaConfigFilePath |
|
std::string | m_tmvaCalibArea |
|
std::string | m_wkpt |
| Tagger information. More...
|
|
std::string | m_tagType |
|
float | m_jetPtMin |
| Kinematic bounds for the jet - the units are controlled by m_ptGeV. More...
|
|
float | m_jetPtMax |
|
float | m_jetEtaMax |
|
bool | m_useECFG = false |
| Flags controlling whether generalized ECF moments or L-series ratios are needed TODO: Implement the functionality controlled by these. More...
|
|
bool | m_useLSeries = false |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTau21WTAKey {this, "Tau21WTANameOut", "Tau21_wta", "SG key for Tau21_wta"} |
| WriteDecorHandle keys for JSS moments. More...
|
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTau32WTAKey {this, "Tau32WTANameOut", "Tau32_wta", "SG key for Tau32_wta"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTau42WTAKey {this, "Tau42WTANameOut", "Tau42_wta", "SG key for Tau42_wta"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decC2Key {this, "C2NameOut", "C2", "SG key for C2"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decD2Key {this, "D2NameOut", "D2", "SG key for D2"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decE3Key {this, "e3NameOut", "e3", "SG key for e3"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decL2Key {this, "L2NameOut", "L2", "SG key for L2"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decL3Key {this, "L3NameOut", "L3", "SG key for L3"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau1WTAKey {this, "Tau1WTAName", "Tau1_wta", "SG key for Tau1_wta"} |
| ReadDecorHandle keys for JSS moments. More...
|
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau2WTAKey {this, "Tau2WTAName", "Tau2_wta", "SG key for Tau2_wta"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau3WTAKey {this, "Tau3WTAName", "Tau3_wta", "SG key for Tau3_wta"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau4WTAKey {this, "Tau4WTAName", "Tau4_wta", "SG key for Tau4_wta"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau21WTAKey {this, "Tau21WTAName", "Tau21_wta", "SG key for Tau21_wta"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau32WTAKey {this, "Tau32WTAName", "Tau32_wta", "SG key for Tau32_wta"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTau42WTAKey {this, "Tau42WTAName", "Tau42_wta", "SG key for Tau42_wta"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECF1Key {this, "ECF1Name", "ECF1", "SG key for ECF1"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECF2Key {this, "ECF2Name", "ECF2", "SG key for ECF2"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECF3Key {this, "ECF3Name", "ECF3", "SG key for ECF3"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readC2Key {this, "C2Name", "C2", "SG key for C2"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readD2Key {this, "D2Name", "D2", "SG key for D2"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readE3Key {this, "e3Name", "e3", "SG key for e3"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readSplit12Key {this, "Split12Name", "Split12", "SG key for Split12"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readSplit23Key {this, "Split23Name", "Split23", "SG key for Split23"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readQwKey {this, "QwName", "Qw", "SG key for Qw"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readThrustMajKey {this, "ThrustMajName", "ThrustMaj", "SG key for ThrustMaj"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readSphericityKey {this, "SphericityName", "Sphericity", "SG key for Sphericity"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readL2Key {this, "L2Name", "L2", "SG key for L2"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readL3Key {this, "L3Name", "L3", "SG key for L3"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECFG331Key {this, "ECFG331Name", "ECFG_3_3_1", "SG key for ECFG_3_3_1"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECFG311Key {this, "ECFG311Name", "ECFG_3_1_1", "SG key for ECFG_3_1_1"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readECFG212Key {this, "ECFG212Name", "ECFG_2_1_2", "SG key for ECFG_2_1_2"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readParentKey {this, "ParentName", "Parent", "SG key for Parent"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decNtrk500Key {this, "Ntrk500NameOut", "ParentJetNTrkPt500", "SG key for Ntrk500 from ungroomed jet"} |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readNtrk500Key {this, "Ntrk500Name", "ParentJetNTrkPt500", "SG key for Ntrk500 from ungroomed jet"} |
|
bool | m_suppressOutputDependence |
|
std::string | m_strMassCutLow |
| Strings for cut functions. More...
|
|
std::string | m_strMassCutHigh |
|
std::string | m_strScoreCut |
|
std::unique_ptr< TF1 > | m_funcMassCutLow |
| TF1 for cut functions. More...
|
|
std::unique_ptr< TF1 > | m_funcMassCutHigh |
|
std::unique_ptr< TF1 > | m_funcScoreCut |
|
std::string | m_decorationName |
| Decoration name. More...
|
|
bool | m_calcSF |
| Flag to calculate scale factor. More...
|
|
bool | m_isMC |
|
std::string | m_weightDecorationName |
| String for scale factor decoration names. More...
|
|
std::string | m_weightFileName |
|
std::string | m_weightHistogramName |
|
std::string | m_efficiencyHistogramName |
|
std::string | m_weightFlavors |
|
std::unique_ptr< TFile > | m_weightConfig |
| Histograms for scale factors. More...
|
|
std::map< std::string, std::unique_ptr< TH2D > > | m_weightHistograms |
|
std::map< std::string, std::unique_ptr< TH2D > > | m_efficiencyHistograms |
|
bool | m_truthLabelUseTRUTH3 |
| Truth label options. More...
|
|
std::string | m_truthParticleContainerName |
|
std::string | m_truthBosonContainerName |
|
std::string | m_truthTopQuarkContainerName |
|
std::string | m_truthLabelName |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readTruthLabelKey {this, "truthLabelName", "truthLabel", "SG key for truthLabel"} |
| Truth label ReadDecorHandle key. More...
|
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decCutMLowKey {this, "CutMLowName", "Cut_mlow", "SG key for Cut_mlow"} |
| WriteDecorHandle keys for cut values. More...
|
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decCutMHighKey {this, "CutMHighName", "Cut_mhigh", "SG key for Cut_mhigh"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decScoreCutKey {this, "CutScoreName", "Cut_score", "SG key for Cut_score"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decScoreValueKey {this, "ScoreName", "Score", "SG key for Score"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decWeightKey {this, "weightName", "weight", "SG key for weight"} |
| WriteDecorHandle keys for SF. More...
|
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decEfficiencyKey {this, "efficiencyName", "efficiency", "SG key for efficiency"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decEffSFKey {this, "effSFName", "effSF", "SG key for effSF"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decSigeffSFKey {this, "sigeffSFName", "sigeffSF", "SG key for effSF"} |
|
SystematicSet | m_affectingSystematics |
| description: members directly corresponding to accessors More...
|
|
SystematicSet | m_recommendedSystematics |
|
|
QGSystApplied | m_appliedSystEnum |
|
TH2D * | m_hquark |
|
TH2D * | m_hgluon |
|
TH2D * | m_topo_hquark |
|
TH2D * | m_exp_hquark_up |
|
TH2D * | m_exp_hquark_down |
|
TH2D * | m_exp_hgluon_up |
|
TH2D * | m_exp_hgluon_down |
|
TH2D * | m_me_hquark_up |
|
TH2D * | m_me_hquark_down |
|
TH2D * | m_me_hgluon_up |
|
TH2D * | m_me_hgluon_down |
|
TH2D * | m_pdf_hquark_up |
|
TH2D * | m_pdf_hquark_down |
|
TH2D * | m_pdf_hgluon_up |
|
TH2D * | m_pdf_hgluon_down |
|
TH2D * | m_trackeff_hquark |
|
TH2D * | m_trackeff_hgluon |
|
TH2D * | m_fake_hquark |
|
TH2D * | m_fake_hgluon |
|
std::string | m_taggername |
|
std::string | m_topofile |
|
std::string | m_expfile |
|
std::string | m_mefile |
|
std::string | m_pdffile |
|
std::string | m_trackefffile |
|
std::string | m_fakefile |
|
std::string | m_weight_decoration_name |
|
std::string | m_tagger_decoration_name |
|
int | m_NTrackCut |
|
double | m_slope |
|
double | m_intercept |
|
std::string | m_cuttype |
|
int | m_mode |
|
asg::AnaToolHandle< InDet::IInDetTrackSelectionTool > | m_trkSelectionTool |
|
asg::AnaToolHandle< InDet::IInDetTrackTruthFilterTool > | m_trkTruthFilterTool |
|
asg::AnaToolHandle< InDet::IInDetTrackTruthFilterTool > | m_trkFakeTool |
|
asg::AnaToolHandle< InDet::IJetTrackFilterTool > | m_jetTrackFilterTool |
|
asg::AnaToolHandle< InDet::IInDetTrackTruthOriginTool > | m_originTool |
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readNumTrkPt500PVKey {this, "NumTrkPt500PVName", "NumTrkPt500PV", "SG key for NumTrkPt500PV"} |
| ReadDecorHandle keys. More...
|
|
SG::ReadDecorHandleKey< xAOD::JetContainer > | m_readNtrkKey {this, "NtrkName", "DFCommonJets_QGTagger_NTracks", "SG key for Ntrk"} |
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_decTagKey {this, "TagName", "Tag", "SG key for Tag"} |
| WriteDecorHandle keys. More...
|
|
SG::WriteDecorHandleKey< xAOD::JetContainer > | m_qgDecWeightKey {this, "QGWeightName", "Weight", "SG key for Weight"} |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
SystematicSet * | m_appliedSystematics |
| description: pointer to currenty applied systematics More...
|
|
std::unordered_map< SystematicSet, SystematicSet > | m_systFilterMap |
| map of cached systematics filtering More...
|
|
Definition at line 36 of file JetQGTagger.h.
◆ StoreGateSvc_t
◆ TAGCLASS
TAGTYPE enum.
Enumerator |
---|
Unknown | |
WBoson | |
ZBoson | |
TopQuark | |
Definition at line 99 of file JSSTaggerBase.h.
◆ JetQGTagger() [1/2]
CP::JetQGTagger::JetQGTagger |
( |
const std::string & |
name | ) |
|
◆ ~JetQGTagger()
CP::JetQGTagger::~JetQGTagger |
( |
| ) |
|
|
virtual |
◆ JetQGTagger() [2/2]
CP::JetQGTagger::JetQGTagger |
( |
| ) |
|
|
private |
◆ addAffectingSystematic()
effects: add a systematic to the list of registered systematics.
It will optionally also add this sytematic to the recommended set. side effects: this will add the systematic to the global list of systematics, if not already there guarantee: strong failures: out of memory II
Definition at line 111 of file SystematicsTool.cxx.
117 reg.registerSystematic( systematic );
121 return StatusCode::FAILURE;
124 return StatusCode::SUCCESS;
◆ addAffectingSystematics()
◆ addRecommendedSystematic()
effects: add a systematic to the list of recommended systematics failures: unsupported systematic
Definition at line 127 of file SystematicsTool.cxx.
134 if(
reg.addSystematicToRecommended( systematic ) !=
135 StatusCode::SUCCESS ) {
136 return StatusCode::FAILURE;
138 return StatusCode::SUCCESS;
◆ addRecommendedSystematics()
StatusCode CP::SystematicsTool::addRecommendedSystematics |
( |
const SystematicSet & |
systematics | ) |
|
|
protectedinherited |
effects: add a SystematicSet to the recommended systematics.
Definition at line 151 of file SystematicsTool.cxx.
159 StatusCode::SUCCESS ) {
160 return StatusCode::FAILURE;
162 return StatusCode::SUCCESS;
◆ affectingSystematics()
virtual SystematicSet CP::JetQGTagger::affectingSystematics |
( |
| ) |
const |
|
inlineoverridevirtual |
returns: the list of all systematics this tool can be affected by guarantee: strong failures: out of memory II
Reimplemented from CP::SystematicsTool.
Definition at line 52 of file JetQGTagger.h.
◆ appliedSystematics()
returns: the list of systematics that have been applied to this tool.
this is not including systematics that were applied, but do not affect this tool guarantee: no-fail
Definition at line 54 of file SystematicsTool.cxx.
58 std::cerr <<
"SystematicsTool::appliedSystematics WARNING: "
59 <<
"no systematic configuration has been applied yet. "
60 <<
"Returning NULL" << std::endl;
61 static const SystematicSet
dummy;
◆ appliedSystematicsString()
std::string CP::SystematicsTool::appliedSystematicsString |
( |
| ) |
const |
|
inherited |
returns: a string representation of appliedSystematics() guarantee: strong failures: out of memory II rationale: this is meant to be used when printing out the applied systematics for debugging purposes (or when embedding them in a string).
Definition at line 67 of file SystematicsTool.cxx.
◆ applySystematicVariation()
virtual StatusCode CP::JetQGTagger::applySystematicVariation |
( |
const SystematicSet & |
systConfig | ) |
|
|
inlineoverridevirtual |
effects: configure this tool for the given list of systematic variations.
any requested systematics that are not affecting this tool will be silently ignored (unless they cause other errors). guarantee: basic failures: out of memory II failures: systematic unknown failures: requesting multiple variations on the same systematic (e.g. up & down) failures: requesting an unsupported variation on an otherwise supported systematic (e.g. a 2 sigma variation and the tool only supports 1 sigma variations) failures: unsupported combination of supported systematic failures: other tool specific errors
Reimplemented from CP::SystematicsTool.
Definition at line 54 of file JetQGTagger.h.
◆ 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
Create read decor handles
WTA N-subjettiness ratios
ECF ratios
Definition at line 416 of file JSSTaggerBase.cxx.
449 float tau21_wta = -999.0;
450 float tau32_wta = -999.0;
451 float tau42_wta = -999.0;
453 float tau1_wta = readTau1WTA(
jet);
454 float tau2_wta = readTau2WTA(
jet);
455 float tau3_wta = readTau3WTA(
jet);
456 float tau4_wta = -999.0;
457 if(readTau4WTA.isAvailable()){
458 tau4_wta = readTau4WTA(
jet);
461 if ( tau1_wta > 1
e-8 ) {
462 tau21_wta = tau2_wta / tau1_wta;
466 if ( tau2_wta > 1
e-8 ) {
467 tau32_wta = tau3_wta / tau2_wta;
468 if(readTau4WTA.isAvailable()){
469 tau42_wta = tau4_wta / tau2_wta;
474 decTau21WTA(
jet) = tau21_wta;
475 decTau32WTA(
jet) = tau32_wta;
476 decTau42WTA(
jet) = tau42_wta;
483 float ECF1 = readECF1(
jet);
484 float ECF2 = readECF2(
jet);
485 float ECF3 = readECF3(
jet);
488 C2 = ECF3 * ECF1 /
std::pow( ECF2, 2.0 );
503 if(!readL2.isAvailable()){
504 if(readECFG331.isAvailable() && readECFG212.isAvailable()){
505 if(readECFG212(
jet) > 1
e-8){
506 L2 = readECFG331(
jet) /
pow(readECFG212(
jet), (3.0/2.0));
513 if(!readL3.isAvailable()){
514 if(readECFG331.isAvailable() && readECFG311.isAvailable()){
515 if(readECFG331(
jet) > 1
e-8){
516 L3 = readECFG311(
jet) /
pow(readECFG331(
jet), (1.0/3.0));
◆ 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 370 of file JSSTaggerBase.cxx.
404 decValidPtRangeHigh(
jet) = acceptData.
getCutResult(
"ValidPtRangeHigh" );
405 decValidPtRangeLow(
jet) = acceptData.
getCutResult(
"ValidPtRangeLow" );
409 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);
◆ 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.
◆ 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.
◆ 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()
◆ 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 |
|
protectedinherited |
Find the PV (to be used for Ntrk)
Definition at line 529 of file JSSTaggerBase.cxx.
535 ATH_MSG_WARNING(
"Unable to retrieve primary vertex container PrimaryVertices" );
539 for (
const auto *vx : *vxCont ) {
541 indexPV = vtx_counter;
◆ 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 300 of file JSSTaggerBase.cxx.
305 std::string configPath;
310 else if (
m_calibArea.find(
"eos") != std::string::npos) {
319 int fSuccess = gSystem->GetPathInfo(configPath.c_str(), fStats);
322 return StatusCode::FAILURE;
325 ATH_MSG_DEBUG(
"Recommendations file was found : " << configPath );
328 if (
m_configReader.ReadFile( configPath.c_str(), EEnvLevel(0) ) ) {
329 ATH_MSG_ERROR(
"Error while reading config file : "<< configPath );
330 return StatusCode::FAILURE;
333 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
124 return evtStore()->event()->getKey( ptr );
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
111 return evtStore()->event()->getName( ptr );
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getNTrack()
StatusCode CP::JetQGTagger::getNTrack |
( |
const xAOD::Jet * |
jet, |
|
|
int & |
ntracks |
|
) |
| const |
|
private |
Definition at line 462 of file JetQGTagger.cxx.
468 std::vector<const xAOD::IParticle*> jettracks;
471 ATH_MSG_ERROR(
"This jet has no associated objects, so it will not be tagged. Please check the jet collection you are using.");
476 return StatusCode::FAILURE;
479 for (
size_t i = 0;
i < jettracks.size();
i++) {
484 ATH_MSG_ERROR(
"This jet has null tracks, so it will not be tagged. Please check the jet collection you are using.");
489 return StatusCode::FAILURE;
495 bool acceptSyst =
true;
520 return StatusCode::SUCCESS;
◆ getNTrackWeight()
StatusCode CP::JetQGTagger::getNTrackWeight |
( |
const xAOD::Jet * |
jet, |
|
|
double & |
weight |
|
) |
| const |
|
private |
Definition at line 525 of file JetQGTagger.cxx.
542 return StatusCode::SUCCESS;
544 int pdgid =
jet->getAttribute<
int>(
"PartonTruthLabelID");
547 return StatusCode::SUCCESS;
554 GhostTruthAssociationLinkAcc(
"GhostTruthAssociationLink");
555 if(GhostTruthAssociationLinkAcc.isAvailable(*
jet)) {
556 ATH_MSG_DEBUG(
"Accessing GhostTruthAssociationLink: is available");
559 ATH_MSG_DEBUG(
"Accessing GhostTruthAssociationLink: is valid");
564 return StatusCode::SUCCESS;
569 return StatusCode::SUCCESS;
574 return StatusCode::SUCCESS;
579 double tjetpt = tjet->
pt()*0.001;
580 double tjeteta = tjet->
eta();
582 ATH_MSG_DEBUG(
"Outside of fiducial region: setting weight to 1");
583 return StatusCode::SUCCESS;
598 if( ! (
part->pt()>500.) )
continue;
600 if( !(
part->isCharged()) )
continue;
604 if(
pt>500 ) tntrk++;
610 int ptbin = std::as_const(*m_hgluon).GetXaxis()->FindFixBin(tjetpt);
611 int ntrkbin = std::as_const(*m_hgluon).GetYaxis()->FindFixBin(tntrk);
615 int ptbin = std::as_const(*m_hquark).GetXaxis()->FindFixBin(tjetpt);
616 int ntrkbin = std::as_const(*m_hquark).GetYaxis()->FindFixBin(tntrk);
620 ATH_MSG_DEBUG(
"Neither quark nor gluon jet: setting weight to 1");
623 return StatusCode::SUCCESS;
◆ 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 670 of file JSSTaggerBase.cxx.
679 const double WtoZmassShift = 10803;
683 if ( logmOverPt > 0 ) logmOverPt = 0;
700 std::string signal_truthLabel=
"";
702 signal_truthLabel=
"t_qqb";
704 signal_truthLabel=
"V_qq";
706 signal_truthLabel=
"t";
713 return std::make_pair( 1.0,
eff );
717 ATH_MSG_DEBUG(
"(pt, m/pt) (" <<
jet.pt()/1.e3 <<
", " <<
jet.m()/
jet.pt() <<
") is out of range for SF calculation. Returning 1.0" );
718 return std::make_pair( 1.0, 1.0 );
721 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 728 of file JSSTaggerBase.cxx.
730 std::string truthLabelStr;
741 truthLabelStr =
"t_qqb";
754 truthLabelStr =
"t_";
758 truthLabelStr =
"V_qq_";
762 truthLabelStr =
"q_";
767 truthLabelStr +=
"passMpassD2";
771 truthLabelStr +=
"failMpassD2";
775 truthLabelStr +=
"passMfailD2";
779 truthLabelStr +=
"failMfailD2";
793 truthLabelStr =
"V_qq";
814 return truthLabelStr;
◆ GetUnGroomTracks()
StatusCode 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 553 of file JSSTaggerBase.cxx.
559 const xAOD::Jet * ungroomedJet =
nullptr;
560 if ( readParent.isAvailable() ) {
562 if ( linkToUngroomed.
isValid() ) {
563 ungroomedJet = *linkToUngroomed;
567 if ( acc_Ntrk.isAvailable(*ungroomedJet) ) {
569 const std::vector<int>& NTrkPt500 = acc_Ntrk(*ungroomedJet);
571 int jet_ntrk = NTrkPt500.at(indexPV);
572 decNtrk500(
jet) = jet_ntrk;
576 ATH_MSG_ERROR(
"WARNING: Unable to retrieve Ntrk of the ungroomed parent jet. Please make sure this variable is in your derivations!!!");
577 return StatusCode::FAILURE;
581 ATH_MSG_ERROR(
"WARNING: Unable to retrieve the parent ungroomed jet. Please make sure this variable is in your derivations!!!");
582 return StatusCode::FAILURE;
586 ATH_MSG_ERROR(
"WARNING: Unable to retrieve the link to the parent ungroomed jet. Please make sure this variable is in your derivations!!!");
587 return StatusCode::FAILURE;
590 return StatusCode::SUCCESS;
◆ 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 596 of file JSSTaggerBase.cxx.
597 if ( !
m_calcSF )
return StatusCode::SUCCESS;
601 float sigeffSF = 1.0;
611 sigeffSF =
getSF(
jet,
"t_qqb").first;
613 sigeffSF =
getSF(
jet,
"V_qq").first;
662 decEffSF(
jet) = effSF;
663 decSigeffSF(
jet) = sigeffSF;
665 return StatusCode::SUCCESS;
◆ initialize()
StatusCode CP::JetQGTagger::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize the tool.
Get configReader
ReadDecorHandles for Ntrk variables
Initialize the tagger states
Call base class initialize
Loop over and print out the cuts that have been configured
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 JSSTaggerBase.
Definition at line 73 of file JetQGTagger.cxx.
96 ATH_MSG_WARNING(
"No config file provided AND no NTrackCut specified." ) ;
101 ATH_MSG_ERROR(
"Cuttype invalid. Must use 'linear_pt', 'log_pt', or 'threshold'");
102 return StatusCode::FAILURE;
108 ATH_MSG_INFO(
"Decorators that will be attached to jet :" );
181 return StatusCode::FAILURE;
210 m_acceptInfo.
addCut(
"QuarkJetTag",
"True if the jet is deemed a quark jet because NTrack<NCut, False if jet deemed gluon jet because NTrack<NCut" );
218 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.
◆ isAffectedBySystematic()
◆ loadHist()
StatusCode CP::JetQGTagger::loadHist |
( |
TH2D *& |
hist, |
|
|
const std::string & |
filename, |
|
|
const std::string & |
histname |
|
) |
| |
|
private |
Definition at line 703 of file JetQGTagger.cxx.
709 return StatusCode::FAILURE;
716 hist->SetDirectory(
nullptr);
717 return StatusCode::SUCCESS;
◆ 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() [1/2]
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, top::TopObjectSelection, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, top::TopObjectSelection, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ printCuts()
void JSSTaggerBase::printCuts |
( |
| ) |
const |
|
protectedinherited |
Print configured cuts.
Definition at line 817 of file JSSTaggerBase.cxx.
818 ATH_MSG_INFO(
"After tagging, you will have access to the following cuts as an asg::AcceptData : (<NCut>) <cut> : <description>)" );
820 for (
int iCut=0; iCut < nCuts; iCut++ ) {
821 std::string cut_string =
"";
◆ recommendedSystematics()
virtual SystematicSet CP::JetQGTagger::recommendedSystematics |
( |
| ) |
const |
|
inlineoverridevirtual |
returns: the list of all systematics this tool can be affected by guarantee: strong failures: out of memory II
Reimplemented from CP::SystematicsTool.
Definition at line 53 of file JetQGTagger.h.
◆ renounce()
◆ renounceArray()
◆ resetCuts()
Reset cuts.
Reset the AcceptData cut results to false
Initialize common cuts to true by default
Definition at line 338 of file JSSTaggerBase.cxx.
351 return StatusCode::SUCCESS;
◆ simplegetNTrackWeight()
StatusCode CP::JetQGTagger::simplegetNTrackWeight |
( |
const xAOD::Jet * |
jet, |
|
|
double & |
weight |
|
) |
| const |
|
private |
Definition at line 363 of file JetQGTagger.cxx.
384 return StatusCode::SUCCESS;
392 int pdgid =
jet->getAttribute<
int>(
"PartonTruthLabelID");
394 int tntrk =
jet->getAttribute<
int>(
"DFCommonJets_QGTagger_truthjet_nCharged");
395 float tjetpt =
jet->getAttribute<
float>(
"DFCommonJets_QGTagger_truthjet_pt")*0.001;
396 float tjeteta =
jet->getAttribute<
float>(
"DFCommonJets_QGTagger_truthjet_eta");
397 ATH_MSG_DEBUG(
"truth jet pdgid: " << pdgid <<
" pt: " << tjetpt);
400 return StatusCode::SUCCESS;
406 ATH_MSG_DEBUG(
"Outside of fiducial region: setting weight to 1" );
407 return StatusCode::SUCCESS;
411 ptbin = std::as_const(*m_hgluon).GetXaxis()->FindFixBin(tjetpt);
412 ntrkbin = std::as_const(*m_hgluon).GetYaxis()->FindFixBin(tntrk);
416 ptbin = std::as_const(*m_hquark).GetXaxis()->FindFixBin(tjetpt);
417 ntrkbin = std::as_const(*m_hquark).GetYaxis()->FindFixBin(tntrk);
421 ATH_MSG_INFO(
"Neither quark nor gluon jet: setting weight to 1" );
431 if ( readNtrk.isAvailable() ) ntrk = readNtrk(*
jet);
432 else if ( readNumTrkPt500PV.isAvailable() ) ntrk = readNumTrkPt500PV(*
jet);
433 else ATH_MSG_ERROR(
"Neither NumTrkPt500PV nor DFCommonJets_QGTagger_NTracks is available for your jet. Please add it before running mode 1 JetQGTagger.");
435 float rjetpt =
jet->pt()*1
e-3;
436 float rjeteta =
jet->eta();
438 ATH_MSG_DEBUG(
"reco jet Pt: " << rjetpt <<
" eta: " << rjeteta);
440 ATH_MSG_DEBUG(
"Outside of fiducial region: setting weight to 1");
441 return StatusCode::SUCCESS;
445 ptbin = std::as_const(*m_hquark).GetXaxis()->FindFixBin(rjetpt);
446 ntrkbin = std::as_const(*m_hquark).GetYaxis()->FindFixBin(ntrk);
450 ptbin = std::as_const(*m_hgluon).GetXaxis()->FindFixBin(rjetpt);
451 ntrkbin = std::as_const(*m_hgluon).GetYaxis()->FindFixBin(ntrk);
458 return StatusCode::SUCCESS;
◆ sysApplySystematicVariation()
StatusCode CP::JetQGTagger::sysApplySystematicVariation |
( |
const SystematicSet & |
systConfig | ) |
|
|
overridevirtual |
effects: configure this tool for the given list of systematic variations.
systConfig is guaranteed to contain only supported systematics. guarantee: basic failures: out of memory II failures: unsupported combination of supported systematics failures: other tool specific errors
Implements CP::SystematicsTool.
Definition at line 626 of file JetQGTagger.cxx.
634 if (systSet.empty()) {
636 return StatusCode::SUCCESS;
638 else if (systSet.size()>1) {
639 ATH_MSG_WARNING(
"Tool does not support multiple systematics, returning unsupported" );
640 return StatusCode::FAILURE;
642 SystematicVariation systVar = *systSet.begin();
643 if (systVar == SystematicVariation(
""))
645 else if (systVar == QGntrackSyst::nchargedtopo){
649 else if (systVar == QGntrackSyst::trackefficiency)
651 else if (systVar == QGntrackSyst::trackfakes)
653 else if (systVar == QGntrackSyst::nchargedexp_up){
658 else if (systVar == QGntrackSyst::nchargedme_up){
663 else if (systVar == QGntrackSyst::nchargedpdf_up){
668 else if (systVar == QGntrackSyst::nchargedexp_down){
673 else if (systVar == QGntrackSyst::nchargedme_down){
678 else if (systVar == QGntrackSyst::nchargedpdf_down){
683 else if (systVar == QGntrackSyst::trackeff){
688 else if (systVar == QGntrackSyst::fake){
696 return StatusCode::FAILURE;
700 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() [1/2]
virtual StatusCode CP::JetQGTagger::tag |
( |
const xAOD::Jet & |
jet | ) |
const |
|
inlineoverridevirtual |
◆ tag() [2/2]
Create asg::AcceptData object
Reset the AcceptData cut results
Check basic kinematic selection
Create WriteDecorHandles
If the jet isn't valid there's no point applying the remaining cuts TODO: Is this actually needed?
Implements CP::IJetQGTagger.
Definition at line 244 of file JetQGTagger.cxx.
248 double jetWeight = -1;
267 decTagged(
jet) =
false;
268 return StatusCode::SUCCESS;
273 if (
pv )
ATH_MSG_DEBUG(
"Obtaining JetQGTagger decision with user specific primary vertex" );
274 else ATH_MSG_DEBUG(
"Obtaining JetQGTagger decision default" );
280 ATH_MSG_WARNING(
"Unable to retrieve primary vertex container PrimaryVertices");
281 acceptData.setCutResult(
"ValidEventContent",
false);
284 else if ( vxCont->
empty() ) {
286 acceptData.setCutResult(
"ValidEventContent",
false);
290 for (
const auto *vx : *vxCont ) {
302 acceptData.setCutResult(
"ValidEventContent",
false);
308 if ( !
isValid )
return StatusCode::SUCCESS;
322 if ( readNtrk.isAvailable() ) jetNTrack = readNtrk(
jet);
323 else if ( readNumTrkPt500PV.isAvailable() ) jetNTrack = readNumTrkPt500PV(
jet);
325 ATH_MSG_ERROR(
"Neither NumTrkPt500PV nor DFCommonJets_QGTagger_NTracks is available for your jet. Please add it before running in mode 1 of the JetQGTagger.");
326 return StatusCode::FAILURE;
331 decWeight(
jet) = jetWeight;
334 decValidEventContent(
jet) = acceptData.getCutResult(
"ValidEventContent" );
340 decTag(
jet) = jetNTrack;
341 decWeight(
jet) = jetWeight;
346 double variable_nTrk = -999.0;
349 if(jetNTrack<variable_nTrk) acceptData.setCutResult(
"QuarkJetTag",
true);
353 if(jetNTrack<variable_nTrk) acceptData.setCutResult(
"QuarkJetTag",
true);
355 else if(
m_cuttype==
"threshold" && jetNTrack<
m_NTrackCut) acceptData.setCutResult(
"QuarkJetTag",
true);
357 decTagged(
jet) = acceptData.getCutResult(
"QuarkJetTag" );
359 return StatusCode::SUCCESS;
◆ testInvariant()
void CP::SystematicsTool::testInvariant |
( |
| ) |
const |
|
inherited |
effects: test the invariance of this object guarantee: no-fail
Definition at line 165 of file SystematicsTool.cxx.
◆ updateVHKA()
◆ m_acceptInfo
Object that stores the results for a jet.
Definition at line 65 of file JSSTaggerBase.h.
◆ m_affectingSystematics
description: members directly corresponding to accessors
Definition at line 146 of file SystematicsTool.h.
◆ m_appliedSystematics
description: pointer to currenty applied systematics
Definition at line 151 of file SystematicsTool.h.
◆ m_appliedSystEnum
◆ m_calcSF
bool JSSTaggerBase::m_calcSF |
|
protectedinherited |
◆ m_calibArea
std::string JSSTaggerBase::m_calibArea |
|
protectedinherited |
Location where config files live on cvmfs.
Definition at line 114 of file JSSTaggerBase.h.
◆ m_configFile
std::string JSSTaggerBase::m_configFile |
|
protectedinherited |
◆ m_configReader
TEnv JSSTaggerBase::m_configReader |
|
protectedinherited |
◆ m_containerName
std::string JSSTaggerBase::m_containerName |
|
protectedinherited |
◆ m_cuttype
std::string CP::JetQGTagger::m_cuttype |
|
private |
◆ m_decC2Key
◆ m_decCutMHighKey
◆ m_decCutMLowKey
◆ m_decD2Key
◆ m_decE3Key
◆ m_decEfficiencyKey
◆ m_decEffSFKey
◆ m_decL2Key
◆ m_decL3Key
◆ m_decNtrk500Key
◆ m_decorationName
std::string JSSTaggerBase::m_decorationName |
|
protectedinherited |
◆ m_decPassMassKey
◆ m_decPassScoreKey
◆ m_decScoreCutKey
◆ m_decScoreValueKey
◆ m_decSigeffSFKey
◆ m_decTaggedKey
WriteDecorHandle keys for tagging bools.
Definition at line 71 of file JSSTaggerBase.h.
◆ m_decTagKey
◆ 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 |
|
protectedinherited |
◆ m_efficiencyHistograms
std::map<std::string, std::unique_ptr<TH2D> > JSSTaggerBase::m_efficiencyHistograms |
|
protectedinherited |
◆ m_evtStore
◆ m_exp_hgluon_down
TH2D* CP::JetQGTagger::m_exp_hgluon_down |
|
private |
◆ m_exp_hgluon_up
TH2D* CP::JetQGTagger::m_exp_hgluon_up |
|
private |
◆ m_exp_hquark_down
TH2D* CP::JetQGTagger::m_exp_hquark_down |
|
private |
◆ m_exp_hquark_up
TH2D* CP::JetQGTagger::m_exp_hquark_up |
|
private |
◆ m_expfile
std::string CP::JetQGTagger::m_expfile |
|
private |
◆ m_fake_hgluon
TH2D* CP::JetQGTagger::m_fake_hgluon |
|
private |
◆ m_fake_hquark
TH2D* CP::JetQGTagger::m_fake_hquark |
|
private |
◆ m_fakefile
std::string CP::JetQGTagger::m_fakefile |
|
private |
◆ m_funcMassCutHigh
std::unique_ptr<TF1> JSSTaggerBase::m_funcMassCutHigh |
|
protectedinherited |
◆ m_funcMassCutLow
std::unique_ptr<TF1> JSSTaggerBase::m_funcMassCutLow |
|
protectedinherited |
◆ m_funcScoreCut
std::unique_ptr<TF1> JSSTaggerBase::m_funcScoreCut |
|
protectedinherited |
◆ m_hgluon
TH2D* CP::JetQGTagger::m_hgluon |
|
private |
◆ m_hquark
TH2D* CP::JetQGTagger::m_hquark |
|
private |
◆ m_intercept
double CP::JetQGTagger::m_intercept |
|
private |
◆ m_isMC
bool JSSTaggerBase::m_isMC |
|
protectedinherited |
◆ m_jetContainer_key
◆ m_jetEtaMax
float JSSTaggerBase::m_jetEtaMax |
|
protectedinherited |
◆ m_jetPtMax
float JSSTaggerBase::m_jetPtMax |
|
protectedinherited |
◆ m_jetPtMin
float JSSTaggerBase::m_jetPtMin |
|
protectedinherited |
Kinematic bounds for the jet - the units are controlled by m_ptGeV.
Definition at line 132 of file JSSTaggerBase.h.
◆ m_jetTrackFilterTool
◆ m_kerasCalibArea
std::string JSSTaggerBase::m_kerasCalibArea |
|
protectedinherited |
◆ m_kerasConfigFileName
std::string JSSTaggerBase::m_kerasConfigFileName |
|
protectedinherited |
◆ m_kerasConfigFilePath
std::string JSSTaggerBase::m_kerasConfigFilePath |
|
protectedinherited |
◆ m_kerasConfigOutputName
std::string JSSTaggerBase::m_kerasConfigOutputName |
|
protectedinherited |
◆ m_me_hgluon_down
TH2D* CP::JetQGTagger::m_me_hgluon_down |
|
private |
◆ m_me_hgluon_up
TH2D* CP::JetQGTagger::m_me_hgluon_up |
|
private |
◆ m_me_hquark_down
TH2D* CP::JetQGTagger::m_me_hquark_down |
|
private |
◆ m_me_hquark_up
TH2D* CP::JetQGTagger::m_me_hquark_up |
|
private |
◆ m_mefile
std::string CP::JetQGTagger::m_mefile |
|
private |
◆ m_mode
int CP::JetQGTagger::m_mode |
|
private |
◆ m_NTrackCut
int CP::JetQGTagger::m_NTrackCut |
|
private |
◆ m_nWarnMax
const int JSSTaggerBase::m_nWarnMax = 10 |
|
protectedinherited |
◆ m_nWarnVar
std::atomic<int> JSSTaggerBase::m_nWarnVar |
|
mutableprotectedinherited |
◆ m_originTool
◆ m_pdf_hgluon_down
TH2D* CP::JetQGTagger::m_pdf_hgluon_down |
|
private |
◆ m_pdf_hgluon_up
TH2D* CP::JetQGTagger::m_pdf_hgluon_up |
|
private |
◆ m_pdf_hquark_down
TH2D* CP::JetQGTagger::m_pdf_hquark_down |
|
private |
◆ m_pdf_hquark_up
TH2D* CP::JetQGTagger::m_pdf_hquark_up |
|
private |
◆ m_pdffile
std::string CP::JetQGTagger::m_pdffile |
|
private |
◆ m_ptGeV
bool JSSTaggerBase::m_ptGeV = false |
|
protectedinherited |
Flag to indicate units pT is defined in Set to false by default.
Definition at line 90 of file JSSTaggerBase.h.
◆ m_qgDecWeightKey
◆ m_readC2Key
◆ m_readD2Key
◆ m_readE3Key
◆ m_readECF1Key
◆ m_readECF2Key
◆ m_readECF3Key
◆ m_readECFG212Key
◆ m_readECFG311Key
◆ m_readECFG331Key
◆ m_readL2Key
◆ m_readL3Key
◆ m_readNtrk500Key
◆ m_readNtrkKey
◆ m_readNumTrkPt500PVKey
◆ m_readParentKey
◆ m_readQwKey
◆ m_readSphericityKey
◆ m_readSplit12Key
◆ m_readSplit23Key
◆ m_readTau1WTAKey
◆ m_readTau21WTAKey
◆ m_readTau2WTAKey
◆ m_readTau32WTAKey
◆ m_readTau3WTAKey
◆ m_readTau42WTAKey
◆ m_readTau4WTAKey
◆ m_readThrustMajKey
◆ m_readTruthLabelKey
◆ m_recommendedSystematics
◆ m_slope
double CP::JetQGTagger::m_slope |
|
private |
◆ m_strMassCutHigh
std::string JSSTaggerBase::m_strMassCutHigh |
|
protectedinherited |
◆ m_strMassCutLow
std::string JSSTaggerBase::m_strMassCutLow |
|
protectedinherited |
◆ m_strScoreCut
std::string JSSTaggerBase::m_strScoreCut |
|
protectedinherited |
◆ m_suppressOutputDependence
bool JSSTaggerBase::m_suppressOutputDependence |
|
protectedinherited |
◆ m_systFilterMap
◆ m_tagClass
◆ m_tagger_decoration_name
std::string CP::JetQGTagger::m_tagger_decoration_name |
|
private |
◆ m_taggername
std::string CP::JetQGTagger::m_taggername |
|
private |
◆ m_tagType
std::string JSSTaggerBase::m_tagType |
|
protectedinherited |
◆ m_tmvaCalibArea
std::string JSSTaggerBase::m_tmvaCalibArea |
|
protectedinherited |
◆ m_tmvaConfigFileName
std::string JSSTaggerBase::m_tmvaConfigFileName |
|
protectedinherited |
◆ m_tmvaConfigFilePath
std::string JSSTaggerBase::m_tmvaConfigFilePath |
|
protectedinherited |
◆ m_topo_hquark
TH2D* CP::JetQGTagger::m_topo_hquark |
|
private |
◆ m_topofile
std::string CP::JetQGTagger::m_topofile |
|
private |
◆ m_trackeff_hgluon
TH2D* CP::JetQGTagger::m_trackeff_hgluon |
|
private |
◆ m_trackeff_hquark
TH2D* CP::JetQGTagger::m_trackeff_hquark |
|
private |
◆ m_trackefffile
std::string CP::JetQGTagger::m_trackefffile |
|
private |
◆ m_trkFakeTool
◆ m_trkSelectionTool
◆ m_trkTruthFilterTool
◆ m_truthBosonContainerName
std::string JSSTaggerBase::m_truthBosonContainerName |
|
protectedinherited |
◆ m_truthLabelName
std::string JSSTaggerBase::m_truthLabelName |
|
protectedinherited |
◆ m_truthLabelUseTRUTH3
bool JSSTaggerBase::m_truthLabelUseTRUTH3 |
|
protectedinherited |
◆ m_truthParticleContainerName
std::string JSSTaggerBase::m_truthParticleContainerName |
|
protectedinherited |
◆ m_truthTopQuarkContainerName
std::string JSSTaggerBase::m_truthTopQuarkContainerName |
|
protectedinherited |
◆ 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 138 of file JSSTaggerBase.h.
◆ m_useLSeries
bool JSSTaggerBase::m_useLSeries = false |
|
protectedinherited |
◆ m_useMassCut
bool JSSTaggerBase::m_useMassCut = false |
|
protectedinherited |
Flag to indicate if mass window cut is used.
Definition at line 93 of file JSSTaggerBase.h.
◆ m_useScoreCut
bool JSSTaggerBase::m_useScoreCut = false |
|
protectedinherited |
Flag to indicate if a discriminant score is used.
Definition at line 96 of file JSSTaggerBase.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_weight_decoration_name
std::string CP::JetQGTagger::m_weight_decoration_name |
|
private |
◆ m_weightConfig
std::unique_ptr<TFile> JSSTaggerBase::m_weightConfig |
|
protectedinherited |
◆ m_weightConfigPath
std::string JSSTaggerBase::m_weightConfigPath |
|
protectedinherited |
◆ m_weightDecorationName
std::string JSSTaggerBase::m_weightDecorationName |
|
protectedinherited |
◆ m_weightFileName
std::string JSSTaggerBase::m_weightFileName |
|
protectedinherited |
◆ m_weightFlavors
std::string JSSTaggerBase::m_weightFlavors |
|
protectedinherited |
◆ m_weightHistogramName
std::string JSSTaggerBase::m_weightHistogramName |
|
protectedinherited |
◆ m_weightHistograms
std::map<std::string, std::unique_ptr<TH2D> > JSSTaggerBase::m_weightHistograms |
|
protectedinherited |
◆ m_wkpt
std::string JSSTaggerBase::m_wkpt |
|
protectedinherited |
The documentation for this class was generated from the following files:
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readParentKey
virtual StatusCode applySystematicVariation(const SystematicSet &set) override
effects: configure this tool for the given list of systematic variations.
def retrieve(aClass, aKey=None)
virtual double pt() const override final
The transverse momentum ( ) of the particle.
double GetBinContent(int) const
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau4WTAKey
std::string m_trackefffile
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF1Key
std::string getTruthLabelStr(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
StatusCode resetCuts(asg::AcceptData &acceptData) const
Reset cuts.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTagKey
WriteDecorHandle keys.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG311Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEtaRangeKey
std::map< std::string, std::unique_ptr< TH2D > > m_efficiencyHistograms
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_configFile
Configuration file name.
TEnv m_configReader
TEnv instance to read config files.
Int_t FindBin(const TAxis *axis, const double x)
StatusCode accept(const xAOD::Muon *mu)
virtual StatusCode tag(const xAOD::Jet &jet) const =0
Decorate single jet with tagging info.
const float SF[NF]
Cross sections for Fluor.
Class to wrap a set of SystematicVariations.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::string m_tagger_decoration_name
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau2WTAKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_qgDecWeightKey
std::string name() const
returns: the systematics joined into a single string.
StatusCode simplegetNTrackWeight(const xAOD::Jet *jet, double &weight) const
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_decC2Key
std::string m_decorationName
Decoration name.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG331Key
#define ATH_MSG_VERBOSE(x)
Class providing the definition of the 4-vector interface.
reg
globals -----------------------------------------------------------------—
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidPtRangeHighKey
bool isValid() const
Test to see if the link can be dereferenced.
StatusCode loadHist(TH2D *&hist, const std::string &filename, const std::string &histname)
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
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readNtrkKey
QGSystApplied m_appliedSystEnum
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decE3Key
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
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.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
asg::AnaToolHandle< InDet::IInDetTrackTruthFilterTool > m_trkFakeTool
static const std::unordered_map< InDet::TrackSystematic, CP::SystematicVariation, std::hash< int > > TrackSystematicMap
StatusCode getNTrack(const xAOD::Jet *jet, int &ntracks) const
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECFG212Key
@ TRK_EFF_LOOSE_PHYSMODEL
unsigned int getNCuts() const
Get the number of cuts defined.
Class describing a truth particle in the MC record.
StatusCode checkKinRange(const xAOD::Jet &jet, asg::AcceptData &acceptData) const
Check and record if jet passes kinematic constraints.
Handle class for adding a decoration to an object.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readL3Key
std::string m_efficiencyHistogramName
asg::AnaToolHandle< InDet::IInDetTrackSelectionTool > m_trkSelectionTool
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decTau42WTAKey
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEffSFKey
asg::AnaToolHandle< InDet::IInDetTrackTruthFilterTool > m_trkTruthFilterTool
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decNtrk500Key
bool m_calcSF
Flag to calculate scale factor.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidEventContentKey
virtual double eta() const
The pseudorapidity ( ) of the particle.
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
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_weight_decoration_name
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
virtual StatusCode initialize() override
Initialize the tool.
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.
asg::AnaToolHandle< InDet::IInDetTrackTruthOriginTool > m_originTool
virtual StatusCode tag(const xAOD::Jet &jet, const xAOD::Vertex *pv) const override
const IParticle * rawConstituent(size_t i) const
Direct access to constituents. WARNING expert use only.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readNumTrkPt500PVKey
ReadDecorHandle keys.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
void printCuts() const
Print configured cuts.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decValidKinRangeKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau1WTAKey
ReadDecorHandle keys for JSS moments.
bool isStable(const T &p)
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)
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
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readTau3WTAKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF2Key
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readECF3Key
StatusCode getConfigReader()
Get configReader StatusCode.
TypeEnum intToEnum(const int type)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
JSSTaggerBase(const std::string &name)
Default constructor - to be used in all derived classes.
Class describing a TrackParticle.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decL2Key
std::string m_weightFlavors
StatusCode getNTrackWeight(const xAOD::Jet *jet, double &weight) const
size_t numConstituents() const
Number of constituents in this jets (this is valid even when reading a file where the constituents ha...
virtual double pt() const
The transverse momentum ( ) of the particle.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_readL2Key
#define RCU_READ_INVARIANT(x)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool empty() const noexcept
Returns true if the collection is empty.
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.
static SystematicRegistry & getInstance()
Get the singleton instance of the registry for the curren thread.
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.
asg::AnaToolHandle< InDet::IJetTrackFilterTool > m_jetTrackFilterTool