|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef PROMPT_DECORATEPLIT_H
8 #define PROMPT_DECORATEPLIT_H
20 #include "GaudiKernel/ToolHandle.h"
42 std::shared_ptr<const FlavorTagDiscriminants::OnnxUtil>
m_onnxUtil{};
55 const EventContext& ctx)
const;
60 const EventContext& ctx)
const;
66 bool isUsedForElectron,
75 const EventContext& ctx)
const;
79 this,
"LeptonContainerName",
"",
80 "Container's name of the lepton that you want to decorate. Also need to set ElectronContainerKey or MuonContainerKey accordingly"
82 Gaudi::Property<std::string>
m_configPath {
this,
"ConfigPath",
"",
"Path of the directory containing the onnx files"};
83 Gaudi::Property<std::string>
m_configFileVersion {
this,
"ConfigFileVersion",
"",
"Vector of tagger score files"};
84 Gaudi::Property<std::string>
m_configFileVersion_endcap {
this,
"ConfigFileVersion_endcap",
"",
"Vector of tagger score files for endcap"};
85 Gaudi::Property<std::string>
m_TaggerName {
this,
"TaggerName",
"",
"Tagger name"};
87 this,
"maxLepTrackJetdR", 0.4,
"Maximum distance between lepton and trackjet"};
89 this,
"maxLepTrackdR", 0.4,
"Maximum distance between lepton and track"};
91 this,
"lepCalErelConeSize", 0.15,
"Cone size for relative calo cluster energy sum"};
93 this,
"btagIp_prefix",
"btagIp_",
"Prefix of b-tagging impact parameter variables (w.r.t. primary vertex)"};
97 this,
"ElectronContainerKey",
"Electrons",
98 "Electron container name"
101 this,
"MuonContainerKey",
"Muons",
102 "Muon container name"
105 this,
"TrackJetContainerKey",
"AntiKtVR30Rmax4Rmin02PV0TrackJets",
106 "VR track jet container name"
109 this,
"TracksContainerKey",
"InDetTrackParticles",
110 "Tracks container name"
113 this,
"CaloClusterContainerKey",
"egammaClusters",
114 "Calo cluster container name"
int m_num_lepton_features
const xAOD::Jet * findClosestTrackJet(const xAOD::IParticle &part, const xAOD::JetContainer &jets) const
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_z0SinTheta
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_ptfrac
std::shared_ptr< const FlavorTagDiscriminants::OnnxUtil > m_onnxUtil
DecoratePLIT(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloclustersKey
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsKey
Gaudi::Property< std::string > m_configFileVersion_endcap
virtual StatusCode execute(const EventContext &) const override
SG::WriteDecorHandleKeyArray< xAOD::MuonContainer > m_dec_mu_plit_output
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_z0SinThetaUncertainty
Class providing the definition of the 4-vector interface.
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_muon_track
An algorithm that can be simultaneously executed in multiple threads.
StatusCode initializeAccessors()
SG::ReadDecorHandleKey< xAOD::MuonContainer > m_acc_mu_topoetcone30
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_acc_el_ptvarcone30
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_acc_el_topoetcone30
Gaudi::Property< float > m_maxLepTrackdR
bool passed_r22tracking_cuts(const xAOD::TrackParticle &tp, const EventContext &ctx) const
SG::WriteDecorHandleKeyArray< xAOD::ElectronContainer > m_dec_el_plit_output
Gaudi::Property< float > m_maxLepTrackJetdR
Gaudi::Property< std::string > m_configFileVersion
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_dr_trackjet
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_dr_lepton
std::shared_ptr< const FlavorTagDiscriminants::OnnxUtil > m_onnxUtil_endcap
Gaudi::Property< std::string > m_TaggerName
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsKey
Gaudi::Property< float > m_lepCalErelConeSize
Gaudi::Property< std::string > m_configPath
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_d0
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_electron_track
SG::ReadDecorHandleKey< xAOD::MuonContainer > m_acc_mu_ptvarcone30TTVA
Gaudi::Property< std::string > m_btagIp_prefix
Class describing a TrackParticle.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_acc_trk_d0Uncertainty
StatusCode decorateTrack(const xAOD::TrackParticle &track, float dr_lepton, bool isUsedForElectron, bool isUsedForMuon, const xAOD::Jet *trackJet, const xAOD::TrackParticle *trackLep) const
StatusCode predictMuon(const xAOD::Muon &muon, const xAOD::JetContainer &trackjets, const xAOD::TrackParticleContainer &tracks, std::vector< SG::WriteDecorHandle< xAOD::MuonContainer, float >> &dec_mu_plit_output, const EventContext &ctx) const
StatusCode predictElec(const xAOD::Electron &electron, const xAOD::JetContainer &trackjets, const xAOD::TrackParticleContainer &tracks, const xAOD::CaloClusterContainer &caloclusters, std::vector< SG::WriteDecorHandle< xAOD::ElectronContainer, float >> &dec_el_plit_output, const EventContext &ctx) const
Gaudi::Property< std::string > m_leptonsName
SG::ReadHandleKey< xAOD::JetContainer > m_trackjetsKey
StatusCode fillParticles(std::vector< const xAOD::IParticle * > &parts, const xAOD::IParticle &lepton, const xAOD::TrackParticle *trackLep, const xAOD::Jet *trackJet, const xAOD::TrackParticleContainer &trackContainer, const EventContext &ctx) const