ATLAS Offline Software
JetAttributeHisto.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_JETATTRIBUTEHISTOS_H
8 #define JETMONITORING_JETATTRIBUTEHISTOS_H
9 
23 #include "GaudiKernel/ToolHandle.h"
24 
27 
28 #include "TH1.h"
29 #include "TH2.h"
30 #include "TProfile.h"
31 
32 namespace jet {
33  class HistoFiller;
34 }
37 
38 public:
39  //typedef SG::AuxElement::Accessor< T > accessor_t;
40 
41  JetAttributeHisto(const std::string &t);
42  virtual ~JetAttributeHisto();
43 
44  virtual StatusCode initialize() ;
45  virtual int buildHistos();
46  virtual int fillHistosFromJet(const xAOD::Jet &j, float weight);
47  virtual int fillHistosFromContainer(const xAOD::JetContainer & cont, float weight);
48 
49 protected:
51  virtual void renameAndRegister(TH1* h, const std::string & subD="", Interval_t i=all);
52 
53  ToolHandle<HistoDefinitionTool> m_histoDef;
54  std::vector<std::string> m_attTypes;
55  std::vector<std::string> m_attNames;
56  std::vector<bool> m_attGeV;
57 
61 };
62 
63 
64 
65 #endif
JetHistoBase.h
JetAttributeHisto::buildHistos
virtual int buildHistos()
Definition: JetAttributeHisto.cxx:201
HistoDefinitionTool.h
HistoGroupBase::all
@ all
Definition: HistoGroupBase.h:39
JetAttributeHisto::renameAndRegister
virtual void renameAndRegister(TH1 *h, const std::string &subD="", Interval_t i=all)
Rename an histo according to the tool's path. redefine here to take m_selectedIndex into account.
Definition: JetAttributeHisto.cxx:314
JetAttributeHisto::JetAttributeHisto
JetAttributeHisto(const std::string &t)
Definition: JetAttributeHisto.cxx:162
JetAttributeHisto::ASG_TOOL_CLASS0
ASG_TOOL_CLASS0(JetAttributeHisto)
JetAttributeHisto::m_attGeV
std::vector< bool > m_attGeV
Definition: JetAttributeHisto.h:56
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
JetAttributeHisto::m_attNames
std::vector< std::string > m_attNames
Definition: JetAttributeHisto.h:55
JetAttributeHisto::fillHistosFromContainer
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
Definition: JetAttributeHisto.cxx:304
JetAttributeHisto::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetAttributeHisto.cxx:181
JetAttributeHisto::m_attTypes
std::vector< std::string > m_attTypes
Definition: JetAttributeHisto.h:54
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
JetHistoBase
Definition: JetHistoBase.h:27
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetAttributeHisto::m_doTProfile
bool m_doTProfile
Definition: JetAttributeHisto.h:59
JetAttributeHisto
A histo building tool (JetHistoBase) using attributes to fill histograms.
Definition: JetAttributeHisto.h:35
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
JetAttributeHisto::fillHistosFromJet
virtual int fillHistosFromJet(const xAOD::Jet &j, float weight)
Definition: JetAttributeHisto.cxx:299
HistoGroupBase::Interval_t
Interval_t
Redefinition of fill intervals as in ManagedMonitorToolBase.
Definition: HistoGroupBase.h:37
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
h
JetAttributeHisto::m_histoFiller
jet::HistoFiller * m_histoFiller
Definition: JetAttributeHisto.h:60
JetAttributeHisto::~JetAttributeHisto
virtual ~JetAttributeHisto()
Definition: JetAttributeHisto.cxx:178
JetAttributeHisto::m_selectedIndex
int m_selectedIndex
Definition: JetAttributeHisto.h:58
jet::HistoFiller
Definition: JetAttributeHisto.cxx:12
JetAttributeHisto::m_histoDef
ToolHandle< HistoDefinitionTool > m_histoDef
Definition: JetAttributeHisto.h:53