ATLAS Offline Software
JetContainerHistoFiller.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef JETMONITORING_JETCONTAINERHISTOFILLER_H
8 #define JETMONITORING_JETCONTAINERHISTOFILLER_H
9 
17 
18 #include "GaudiKernel/ToolHandle.h"
19 #include "AsgTools/AsgTool.h"
20 
23 
24 
25 // temporary, we should define a proper interface
26 static const InterfaceID IID_JetContainerHistoFiller("JetContainerHistoFiller", 1, 0);
27 
30 
31 
32 
33 public:
34 
35  JetContainerHistoFiller(const std::string &t);
37 
38  virtual StatusCode initialize() ;
39 
40  virtual int buildHistos();
41 
42  virtual int fillHistos();
43 
44  virtual int finalizeHistos();
45 
47  virtual void prefixHistoDir(const std::string & preDir);
48 
49 
50  static const InterfaceID& interfaceID( ){return IID_JetContainerHistoFiller;}
51 
52  virtual void setInterval(Interval_t ityp, bool force = false);
53 
54 
55 protected:
56 
57 
59  ToolHandleArray<JetHistoBase> m_histoTools;
62  SG::ReadHandleKey<xAOD::EventInfo> m_EventInfoKey{this, "EventInfoKey", "EventInfo"};
63 
64 };
65 #endif
JetHistoBase.h
JetContainerHistoFiller::fillHistos
virtual int fillHistos()
Definition: JetContainerHistoFiller.cxx:33
calibdata.force
bool force
Definition: calibdata.py:19
HistoGroupBase
Definition: HistoGroupBase.h:27
JetContainerHistoFiller
Definition: JetContainerHistoFiller.h:28
JetContainerHistoFiller::~JetContainerHistoFiller
virtual ~JetContainerHistoFiller()
Definition: JetContainerHistoFiller.h:36
JetContainerHistoFiller::JetContainerHistoFiller
JetContainerHistoFiller(const std::string &t)
Definition: JetContainerHistoFiller.cxx:7
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
JetContainerHistoFiller::interfaceID
static const InterfaceID & interfaceID()
Definition: JetContainerHistoFiller.h:50
JetContainerHistoFiller::buildHistos
virtual int buildHistos()
Definition: JetContainerHistoFiller.cxx:76
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
JetContainerHistoFiller::prefixHistoDir
virtual void prefixHistoDir(const std::string &preDir)
redefine from base class to forward prefix path to sub histos
Definition: JetContainerHistoFiller.cxx:104
JetContainerHistoFiller::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetContainerHistoFiller.cxx:15
JetContainerHistoFiller::m_histoTools
ToolHandleArray< JetHistoBase > m_histoTools
The list of histogramming tools.
Definition: JetContainerHistoFiller.h:59
JetContainerHistoFiller::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Definition: JetContainerHistoFiller.h:62
JetContainerHistoFiller::finalizeHistos
virtual int finalizeHistos()
Definition: JetContainerHistoFiller.cxx:96
HistoGroupBase::Interval_t
Interval_t
Redefinition of fill intervals as in ManagedMonitorToolBase.
Definition: HistoGroupBase.h:37
EventInfo.h
JetContainerHistoFiller::setInterval
virtual void setInterval(Interval_t ityp, bool force=false)
Definition: JetContainerHistoFiller.cxx:68
JetContainerHistoFiller::m_jetContainerName
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerName
the jet container to build histos from
Definition: JetContainerHistoFiller.h:61
AsgTool.h