ATLAS Offline Software
Loading...
Searching...
No Matches
JetInputElRemovalTool.h
Go to the documentation of this file.
1//-*- C++ -*-
2
3/*
4 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5*/
6
8// Author: Clement Camincher (ccaminch@cern.ch)
10#ifndef JETRECTOOLS_JETINPUTELREMOVALTOOL_H
11#define JETRECTOOLS_JETINPUTELREMOVALTOOL_H
12
13
14#include "AsgTools/AsgTool.h"
17
19
23
24#include "xAODEgamma/Electron.h"
26
27
28#include "JetRec/JetRecTool.h"
29
31
32
38
39
40
42 ,virtual public IJetExecuteTool
43{
44public:
45
47 JetInputElRemovalTool(const std::string & t);
49
50 StatusCode initialize();
51
52 int execute() const;
53
54 StatusCode finalize();
55
56
57
58
71 int fillSelectedClusters(std::vector<const xAOD::Electron*>&selected_el, ConstDataVector<xAOD::CaloClusterContainer> & selected_cl) const ;
72 int fillSelectedClustersInJets(std::vector<const xAOD::Electron*>&selected_el, ConstDataVector<xAOD::CaloClusterContainer> & selected_cl) const ;
73
74 int fillSelectedTracks(std::vector<const xAOD::Electron*> & selected_el, ConstDataVector<xAOD::TrackParticleContainer> & selected_trk) const ;
75
76
77private:
78
90 std::vector<const xAOD::Electron*> selectElectron() const;
91
92
93 // std::string m_elInputContainer = "Electrons" ; // input name for electrons
94 std::string m_elIDname = "DFCommonElectronsLHTight" ; // remove electrons passing this ID. Ex :DFCommonElectronsLHTight
95 float m_elPt = 25000 ;
96 bool m_useOnlyclInJets=false; //Use only clusters from jets
97
98 float m_clRemovRadius =0.15; // remove clusters within this radius around electron
99 float m_clEMFrac = 0.8; // remove clusters having EM frac lower than this
100
105
108
110
113
115
116};
117
118#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector adapter that acts like it holds const pointers.
DataVector adapter that acts like it holds const pointers.
IJetExecuteTool is a dual-use tool interface for generic tools, i.e. those that behave like algorithm...
SG::WriteHandleKey< ConstDataVector< xAOD::CaloClusterContainer > > ClOutHandleKey
ClOutHandleKey m_clOutputContainer_key
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clInputContainer_key
int fillSelectedClusters(std::vector< const xAOD::Electron * > &selected_el, ConstDataVector< xAOD::CaloClusterContainer > &selected_cl) const
: Select TopoClusters away of the electrons may select :
StatusCode initialize()
Dummy implementation of the initialisation function.
SG::ReadHandleKey< xAOD::EgammaContainer > m_elInputContainer_key
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkInputContainer_key
int fillSelectedClustersInJets(std::vector< const xAOD::Electron * > &selected_el, ConstDataVector< xAOD::CaloClusterContainer > &selected_cl) const
JetInputElRemovalTool(const std::string &t)
std::vector< const xAOD::Electron * > selectElectron() const
Select the electron of the event My select :
SG::WriteHandleKey< ConstDataVector< xAOD::TrackParticleContainer > > TrkOutHandleKey
int execute() const
Method to be called for each event.
TrkOutHandleKey m_trkOutputContainer_key
int fillSelectedTracks(std::vector< const xAOD::Electron * > &selected_el, ConstDataVector< xAOD::TrackParticleContainer > &selected_trk) const
SG::ReadHandleKey< xAOD::JetContainer > m_jetInputContainer_key
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47