ATLAS Offline Software
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
IParticle.h
PlotBase
Definition:
PlotBase.h:34
TCCPlotsBase
Definition:
TCCPlotsBase.h:16
athena.value
value
Definition:
athena.py:124
TCCPlotsBase::m_histoDefSvc
ServiceHandle< IHistogramDefinitionSvc > m_histoDefSvc
Definition:
TCCPlotsBase.h:50
dqt_zlumi_pandas.weight
int weight
Definition:
dqt_zlumi_pandas.py:189
TCCPlotsBase::fillHisto
static void fillHisto(TH1 *pTh1, const float value)
Definition:
TCCPlotsBase.cxx:94
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
TCCPlotsBase::m_folder
std::string m_folder
Definition:
TCCPlotsBase.h:47
plotting.yearwise_efficiency_vs_mu.xval
float xval
Definition:
yearwise_efficiency_vs_mu.py:35
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition:
AthMessaging.h:55
SingleHistogramDefinition
Almost-a-struct for holding the single histogram definition.
Definition:
SingleHistogramDefinition.h:17
plotting.yearwise_efficiency_vs_mu.yval
float yval
Definition:
yearwise_efficiency_vs_mu.py:36
IHistogramDefinitionSvc.h
TCCPlotsBase::TCCPlotsBase
TCCPlotsBase(PlotBase *pParent, const std::string &folder)
Definition:
TCCPlotsBase.cxx:35
AthMessaging.h
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:56
PlotBase.h
TCCPlotsBase::book
void book(TH1 *&pHisto, const SingleHistogramDefinition &hd)
Book a TH1 histogram.
Definition:
TCCPlotsBase.cxx:50
ServiceHandle< IHistogramDefinitionSvc >
Generated on Thu Nov 7 2024 21:27:17 for ATLAS Offline Software by
1.8.18