ATLAS Offline Software
TrackLeptonDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRACK_LEPTON_DECORATOR_ALG_HH
6 #define TRACK_LEPTON_DECORATOR_ALG_HH
7 
9 #include "GaudiKernel/ToolHandle.h"
13 
16 #include "xAODMuon/MuonContainer.h"
20 
21 
22 
23 
24 namespace FlavorTagDiscriminants {
25 
26 
28  public:
29  TrackLeptonDecoratorAlg(const std::string& name,
30  ISvcLocator* pSvcLocator );
31 
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute(const EventContext& ) const override;
34 
35  private:
36 
37  // electron ID tool
38  ToolHandle<IAsgElectronLikelihoodTool> m_electronID_tool{this, "electronSelectionTool", "", "Applying preselection on electrons"};
39 
40  // muon ID tool
41  ToolHandle<CP::IMuonSelectionTool> m_muonID_tool{this, "muonSelectionTool", "", "Applying preselection on muons"};
42 
43  // Input Containers
45  this, "trackContainer", "InDetTrackParticles",
46  "Key for the input track collection"};
48  this, "electronContainer", "Electrons",
49  "Key for the input electron collection"};
51  this, "muonContainer", "Muons",
52  "Key for the input muon collection"};
53 
54  // Decorators for tracks
56  this, "leptonID", "leptonID", "pdgID of reconstruction lepton "};
58  this, "muon_quality", "muon_quality", "Quality of the reconstructed muon: (0=Tight, 1=Medium, 2=Loose, 3=Veryloose, 4=HighPt, 5=LowPtEfficiency)"};
60  this, "muon_qOverPratio", "muon_qOverPratio", "Ratio between q/p reconstructed by the ID and the MS"};
62  this, "muon_momentumBalanceSignificance", "muon_momentumBalanceSignificance", "Significance of the momentum balance between ID and MS"};
64  this, "muon_scatteringNeighbourSignificance", "muon_scatteringNeighbourSignificance", "Significance of the azimuthal angular difference between the two half tracks ending/starting at each of adjacent hist along the track"};
65 
66  };
67 
68 }
69 
70 #endif
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
AsgElectronLikelihoodTool.h
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::TrackLeptonDecoratorAlg
TrackLeptonDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrackLeptonDecoratorAlg.cxx:19
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_MuonContainerKey
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
Definition: TrackLeptonDecoratorAlg.h:50
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: AssociationEnums.h:11
FlavorTagDiscriminants::TrackLeptonDecoratorAlg
Definition: TrackLeptonDecoratorAlg.h:27
SG::ReadHandleKey< xAOD::TrackParticleContainer >
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_electronID_tool
ToolHandle< IAsgElectronLikelihoodTool > m_electronID_tool
Definition: TrackLeptonDecoratorAlg.h:38
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_ElectronContainerKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Definition: TrackLeptonDecoratorAlg.h:47
IMuonSelectionTool.h
IAsgElectronLikelihoodTool.h
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_dec_muon_qOverPratio
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_muon_qOverPratio
Definition: TrackLeptonDecoratorAlg.h:59
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
ElectronContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_muonID_tool
ToolHandle< CP::IMuonSelectionTool > m_muonID_tool
Definition: TrackLeptonDecoratorAlg.h:41
AthReentrantAlgorithm.h
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_dec_muon_momentumBalanceSignificance
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_muon_momentumBalanceSignificance
Definition: TrackLeptonDecoratorAlg.h:61
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: TrackLeptonDecoratorAlg.cxx:66
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_dec_muon_scatteringNeighbourSignificance
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_muon_scatteringNeighbourSignificance
Definition: TrackLeptonDecoratorAlg.h:63
MuonContainer.h
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_TrackContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackContainerKey
Definition: TrackLeptonDecoratorAlg.h:44
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition: TrackLeptonDecoratorAlg.cxx:23
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_dec_lepton_id
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_lepton_id
Definition: TrackLeptonDecoratorAlg.h:55
TrackParticleContainer.h
AuxElement.h
Base class for elements of a container that can have aux data.
FlavorTagDiscriminants::TrackLeptonDecoratorAlg::m_dec_muon_quality
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_muon_quality
Definition: TrackLeptonDecoratorAlg.h:57