ATLAS Offline Software
SmoothedWZTagger.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BOOSTEDJETSTAGGERS_SMOOTHEDWZTAGGER_H_
6 #define BOOSTEDJETSTAGGERS_SMOOTHEDWZTAGGER_H_
7 
9 
11  public JSSTaggerBase {
13 
14  public:
15 
17  SmoothedWZTagger( const std::string& name );
18 
20  virtual StatusCode initialize() override;
21 
23  virtual StatusCode tag( const xAOD::Jet& jet ) const override;
24 
25  private:
26 
28  bool m_useNtrk;
29 
31  std::string m_strD2Cut;
32  std::string m_strNtrkCut;
33 
35  std::unique_ptr<TF1> m_funcD2Cut;
36  std::unique_ptr<TF1> m_funcNtrkCut;
37 
39  SG::WriteDecorHandleKey<xAOD::JetContainer> m_decPassD2Key{this, "PassD2Name", "PassD2", "SG key for PassD2"};
40  SG::WriteDecorHandleKey<xAOD::JetContainer> m_decPassNtrkKey{this, "PassNtrkName", "PassNtrk", "SG key for PassNtrk"};
41 
42  SG::WriteDecorHandleKey<xAOD::JetContainer> m_decCutD2Key{this, "CutD2Name", "Cut_D2", "SG key for Cut_D2"};
43  SG::WriteDecorHandleKey<xAOD::JetContainer> m_decCutNtrkKey{this, "CutNtrkName", "Cut_Ntrk", "SG key for Cut_Ntrk"};
44  SG::WriteDecorHandleKey<xAOD::JetContainer> m_decAcceptKey{this, "acceptName", "accept", "SG key for accept"};
45 
46 
47  };
48 
49 #endif
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
SmoothedWZTagger::m_useNtrk
bool m_useNtrk
Flag to indicate if Ntrk is used.
Definition: SmoothedWZTagger.h:28
SmoothedWZTagger::m_decPassD2Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassD2Key
WriteDecorHandle keys.
Definition: SmoothedWZTagger.h:39
SmoothedWZTagger::m_decPassNtrkKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decPassNtrkKey
Definition: SmoothedWZTagger.h:40
SmoothedWZTagger::m_funcD2Cut
std::unique_ptr< TF1 > m_funcD2Cut
Functions that are configurable for specific cut values.
Definition: SmoothedWZTagger.h:35
SmoothedWZTagger::SmoothedWZTagger
SmoothedWZTagger(const std::string &name)
Constructor.
Definition: SmoothedWZTagger.cxx:9
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition: AsgToolMacros.h:62
SmoothedWZTagger
Definition: SmoothedWZTagger.h:11
SmoothedWZTagger::m_funcNtrkCut
std::unique_ptr< TF1 > m_funcNtrkCut
Definition: SmoothedWZTagger.h:36
JSSTaggerBase
Definition: JSSTaggerBase.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SmoothedWZTagger::tag
virtual StatusCode tag(const xAOD::Jet &jet) const override
Decorate single jet with tagging info.
Definition: SmoothedWZTagger.cxx:177
SmoothedWZTagger::initialize
virtual StatusCode initialize() override
Run once at the start of the job to setup everything.
Definition: SmoothedWZTagger.cxx:21
SmoothedWZTagger::m_strNtrkCut
std::string m_strNtrkCut
Definition: SmoothedWZTagger.h:32
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
SmoothedWZTagger::m_decCutNtrkKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutNtrkKey
Definition: SmoothedWZTagger.h:43
SmoothedWZTagger::m_decCutD2Key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decCutD2Key
Definition: SmoothedWZTagger.h:42
SmoothedWZTagger::m_decAcceptKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decAcceptKey
Definition: SmoothedWZTagger.h:44
SmoothedWZTagger::m_strD2Cut
std::string m_strD2Cut
Store functional form of cuts.
Definition: SmoothedWZTagger.h:31
JSSTaggerBase.h