ATLAS Offline Software
HistosForJetSelection.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 
7 #ifndef JETMONITORING_HISTOFORJETSELECTION_H
8 #define JETMONITORING_HISTOFORJETSELECTION_H
9 
20 
21 #include "GaudiKernel/ToolHandle.h"
22 
26 
29 
30 public:
31 
32  HistosForJetSelection(const std::string &t);
34 
35  virtual StatusCode initialize() ;
36  virtual int buildHistos();
37 
38  virtual int fillHistosFromContainer(const xAOD::JetContainer & cont, float weight);
39 
40  virtual int finalizeHistos();
41 
43  virtual void prefixHistoDir(const std::string & preDir);
44 
46  virtual void setInterval(Interval_t ityp, bool force = false);
47 
48  bool m_inverseToolSelection = false;
49 
55  FromTool
56  };
57 
58 protected:
59 
60  virtual void modifyNameAndTitle(TH1* h);
61 
62 
64  ToolHandleArray<JetHistoBase> m_histoTools;
65 
66  ToolHandle<IJetSelector> m_selTool;
67 
69  int m_selType;
70 
72  std::string m_titleSuffix;
74  std::string m_nameSuffix;
75 };
76 #endif
JetHistoBase.h
HistosForJetSelection
Definition: HistosForJetSelection.h:27
HistosForJetSelection::modifyNameAndTitle
virtual void modifyNameAndTitle(TH1 *h)
Definition: HistosForJetSelection.cxx:139
HistoDefinitionTool.h
HistosForJetSelection::m_selTool
ToolHandle< IJetSelector > m_selTool
Definition: HistosForJetSelection.h:66
calibdata.force
bool force
Definition: calibdata.py:19
HistosForJetSelection::m_histoTools
ToolHandleArray< JetHistoBase > m_histoTools
List of histo tools to call on selected jets.
Definition: HistosForJetSelection.h:64
HistosForJetSelection::HistosForJetSelection
HistosForJetSelection(const std::string &t)
Definition: HistosForJetSelection.cxx:9
HistosForJetSelection::setInterval
virtual void setInterval(Interval_t ityp, bool force=false)
redefine to forward to sub histos
Definition: HistosForJetSelection.cxx:159
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HistosForJetSelection::m_selType
int m_selType
used only if m_selType == FromTool
Definition: HistosForJetSelection.h:69
IJetSelector.h
HistosForJetSelection::SelectionType
SelectionType
Describes the selection type : built-in or use of an external type.
Definition: HistosForJetSelection.h:51
HistosForJetSelection::m_titleSuffix
std::string m_titleSuffix
Suffix of the histos titles. If the property is not set and using a built-in type,...
Definition: HistosForJetSelection.h:72
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
JetHistoBase
Definition: JetHistoBase.h:27
HistosForJetSelection::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: HistosForJetSelection.cxx:25
HistosForJetSelection::buildHistos
virtual int buildHistos()
Definition: HistosForJetSelection.cxx:59
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HistosForJetSelection::prefixHistoDir
virtual void prefixHistoDir(const std::string &preDir)
redefine to forward to sub histos
Definition: HistosForJetSelection.cxx:153
HistosForJetSelection::finalizeHistos
virtual int finalizeHistos()
Definition: HistosForJetSelection.cxx:144
HistosForJetSelection::m_nameSuffix
std::string m_nameSuffix
Suffix of the histos names.
Definition: HistosForJetSelection.h:74
HistosForJetSelection::ASG_TOOL_CLASS0
ASG_TOOL_CLASS0(HistosForJetSelection)
HistosForJetSelection::m_inverseToolSelection
bool m_inverseToolSelection
Definition: HistosForJetSelection.h:48
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
HistosForJetSelection::SubLeadingJet
@ SubLeadingJet
Definition: HistosForJetSelection.h:54
HistosForJetSelection::FromTool
@ FromTool
Definition: HistosForJetSelection.h:55
HistoGroupBase::Interval_t
Interval_t
Redefinition of fill intervals as in ManagedMonitorToolBase.
Definition: HistoGroupBase.h:37
HistosForJetSelection::fillHistosFromContainer
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
Definition: HistosForJetSelection.cxx:79
h
TH1
Definition: rootspy.cxx:268
HistosForJetSelection::LeadingJet
@ LeadingJet
Definition: HistosForJetSelection.h:53
HistosForJetSelection::AllJets
@ AllJets
Definition: HistosForJetSelection.h:52
HistosForJetSelection::~HistosForJetSelection
virtual ~HistosForJetSelection()