ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
TrackCaloClusterRec
TrackCaloClusterRecValidation
src
TCCPlotsBase.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRACKCALOCLUSTERREC_TRACKCALOCLUSTERRECVALIDATION_TCCPLOTSBASE_H
6
#define TRACKCALOCLUSTERREC_TRACKCALOCLUSTERRECVALIDATION_TCCPLOTSBASE_H
7
8
#include "
TrkValHistUtils/PlotBase.h
"
9
#include "
xAODBase/IParticle.h
"
10
#include "
AthenaBaseComps/AthMessaging.h
"
11
#include "GaudiKernel/ServiceHandle.h"
12
#include "
InDetPhysValMonitoring/IHistogramDefinitionSvc.h
"
13
14
class
SingleHistogramDefinition
;
15
16
class
TCCPlotsBase
:
public
PlotBase
,
public
AthMessaging
{
17
public
:
18
TCCPlotsBase
(
PlotBase
* pParent,
const
std::string& folder);
19
21
SingleHistogramDefinition
retrieveDefinition
(
const
std::string& histoIdentifier,
22
const
std::string& folder =
"default"
);
23
25
void
book
(TH1*& pHisto,
const
SingleHistogramDefinition
& hd);
27
void
book
(TH1*& pHisto,
const
std::string& histoIdentifier,
const
std::string& folder =
"default"
);
28
30
void
book
(TH2*& pHisto,
const
SingleHistogramDefinition
& hd);
32
void
book
(TH2*& pHisto,
const
std::string& histoIdentifier,
const
std::string& folder =
"default"
);
33
35
void
book
(TH3*& pHisto,
const
SingleHistogramDefinition
& hd);
37
void
book
(TH3*& pHisto,
const
std::string& histoIdentifier,
const
std::string& folder =
"default"
);
38
39
//
40
static
void
fillHisto
(TH1* pTh1,
const
float
value);
41
static
void
fillHisto
(TH1* pTh1,
const
float
value,
const
float
weight);
42
static
void
fillHisto
(TH2* pTh2,
const
float
xval,
const
float
yval);
43
static
void
fillHisto
(TH2* pTh2,
const
float
xval,
const
float
yval,
const
float
weight);
44
static
void
fillHisto
(TH3* pTh3,
const
float
xval,
const
float
yval,
const
float
zval);
45
static
void
fillHisto
(TH3* pTh3,
const
float
xval,
const
float
yval,
const
float
zval,
const
float
weight);
46
47
std::string
m_folder
;
48
49
private
:
50
ServiceHandle<IHistogramDefinitionSvc>
m_histoDefSvc
;
51
52
};
53
54
#endif
// TRACKCALOCLUSTERREC_TRACKCALOCLUSTERRECVALIDATION_TCCPLOTSBASE_H
AthMessaging.h
IParticle.h
IHistogramDefinitionSvc.h
PlotBase.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
ServiceHandle
Definition
ClusterMakerTool.h:36
SingleHistogramDefinition
Almost-a-struct for holding the single histogram definition.
Definition
SingleHistogramDefinition.h:18
TCCPlotsBase::m_folder
std::string m_folder
Definition
TCCPlotsBase.h:47
TCCPlotsBase::fillHisto
static void fillHisto(TH1 *pTh1, const float value)
Definition
TCCPlotsBase.cxx:94
TCCPlotsBase::book
void book(TH1 *&pHisto, const SingleHistogramDefinition &hd)
Book a TH1 histogram.
Definition
TCCPlotsBase.cxx:50
TCCPlotsBase::m_histoDefSvc
ServiceHandle< IHistogramDefinitionSvc > m_histoDefSvc
Definition
TCCPlotsBase.h:50
TCCPlotsBase::TCCPlotsBase
TCCPlotsBase(PlotBase *pParent, const std::string &folder)
Definition
TCCPlotsBase.cxx:35
TCCPlotsBase::retrieveDefinition
SingleHistogramDefinition retrieveDefinition(const std::string &histoIdentifier, const std::string &folder="default")
Retrieve a single histogram definition, given the unique string identifier.
Definition
TCCPlotsBase.cxx:132
Generated on
for ATLAS Offline Software by
1.17.0