|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef IsoCloseByCorrectionTrkSelAlg_H
6 #define IsoCloseByCorrectionTrkSelAlg_H
14 #include "GaudiKernel/SystemOfUnits.h"
47 template <
class CONT_TYPE>
58 "Optional char decorator flag that the leptons have to pass in order to be selected"};
65 ToolHandle<CP::IMuonSelectionTool>
m_muonSelTool{
this,
"MuonSelectionTool",
""};
66 ToolHandle<IAsgElectronLikelihoodTool>
m_elecSelTool{
this,
"ElectronSelectionTool",
""};
67 ToolHandle<IAsgPhotonIsEMSelector>
m_photSelTool{
this,
"PhotonSelectionTool",
""};
70 ToolHandle<CP::IIsolationCloseByCorrectionTool>
m_closeByCorrTool{
this,
"IsoCloseByCorrectionTool",
"",
71 "The isolation close by correction tool."};
75 "Minimum pt cut that the electron needs to pass in order to be selected"};
77 "Minimum pt cut that the muon needs to pass in order to be selected"};
79 "Minimum pt cut that the photon needs to pass in order to be selected"};
84 Gaudi::Property<std::string>
m_stream{
this,
"OutputStream",
"",
"Stream"};
86 "Apply the thinning decision to. Decision is set to OR"};
89 "The associated track particles can be written to an outpt container"};
Property holding a SG store/key/clid from which a ReadHandle is made.
std::array< std::atomic< Long64_t >, 3 > m_selected_obj ATLAS_THREAD_SAFE
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
StatusCode finalize() override
ToolHandle< IAsgPhotonIsEMSelector > m_photSelTool
SG::ReadHandleKey< xAOD::PhotonContainer > m_photKey
Gaudi::Property< float > m_minMuonPt
ToolHandle< CP::IIsolationCloseByCorrectionTool > m_closeByCorrTool
These tools shall be configured to pick up the same Inner detector tracks as for the isolation buildi...
HandleKey object for adding thinning to an object.
DataVector adapter that acts like it holds const pointers.
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_elecSelKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_thinKey
std::set< TrackPtr > TrackSet
std::atomic< Long64_t > m_tot_trks
Total track counter.
Gaudi::Property< std::string > m_stream
Output stream to be used for the thinning decision.
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Optionally the user can also parse the elec / muon / photon selection tools.
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelTool
StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.
std::set< const xAOD::IParticle * > LepContainer
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
Input containers to retrieve from the storegate.
Property holding a SG store/key/clid from which a WriteHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
StatusCode execute(const EventContext &ctx) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
bool passSelection(const EventContext &ctx, const xAOD::Electron *elec) const
std::array< std::atomic< Long64_t >, 3 > m_accepted_trks ATLAS_THREAD_SAFE
Array counting the number of accepted tracks per object type muon[0], electron[1],...
Property holding a SG store/key/clid from which a WriteHandle is made.
IsoCloseByCorrectionTrkSelAlg(const std::string &name, ISvcLocator *svcLoc)
StatusCode loadTracks(const EventContext &ctx, const SG::ReadHandleKey< CONT_TYPE > &key, TrackSet &tracks, LepContainer &prim_objs) const
SG::WriteHandleKey< ConstDataVector< xAOD::TrackParticleContainer > > m_trkKey
Optionally the user can also dump a TrackParticleContainer containing all the tracks entring the cone...
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photSelKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_elecKey
Gaudi::Property< float > m_minPhotPt
Gaudi::Property< float > m_minElecPt
Kinematic cuts. The selection tools do not support kinematic cut selection unfortunately.
HandleKey object for adding thinning to an object.
SG::ReadDecorHandleKey< xAOD::MuonContainer > m_mounSelKey
The keys serve to declare the data dependency on the optional selection decorator properly.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Define macros for attributes used to control the static checker.
Gaudi::Property< std::string > m_selDecoration
External selection criteria.
Gaudi::Property< float > m_maxConeSize