ATLAS Offline Software
Loading...
Searching...
No Matches
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
22
23#include "GaudiKernel/ToolHandle.h"
24
27
28#include "TH1.h"
29#include "TH2.h"
30#include "TProfile.h"
31
32namespace jet {
33 class HistoFiller;
34}
37
38public:
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
49protected:
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
Header file for AthHistogramAlgorithm.
Interval_t
Redefinition of fill intervals as in ManagedMonitorToolBase.
virtual int fillHistosFromJet(const xAOD::Jet &j, float weight)
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
ToolHandle< HistoDefinitionTool > m_histoDef
JetAttributeHisto(const std::string &t)
std::vector< std::string > m_attTypes
std::vector< bool > m_attGeV
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.
ASG_TOOL_CLASS0(JetAttributeHisto)
jet::HistoFiller * m_histoFiller
std::vector< std::string > m_attNames
JetHistoBase(const std::string &t)
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".