ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
TauID
TauDQA
src
EventPlots.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
EventPlots.h
"
7
#include "
AthenaKernel/Units.h
"
8
9
namespace
Tau
{
10
11
EventPlots::EventPlots
(
PlotBase
* pParent,
const
std::string& sDir):
12
PlotBase
(pParent, sDir)
13
{
14
}
15
16
EventPlots::~EventPlots
()
17
{
18
}
19
20
void
EventPlots::initializePlots
(){
21
22
m_avgmu
=
Book1D
(
"AverageMu"
,
"Average Interaction per bunch crossing; <mu>; # Events"
, 16, 0.0, 80.0);
23
}
24
25
void
EventPlots::fill
(
float
avg_mu,
float
weight) {
26
27
m_avgmu
->Fill(avg_mu,weight);
28
29
}
30
31
32
}
EventPlots.h
Units.h
Wrapper to avoid constant divisions when using units.
PlotBase::Book1D
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
Definition
PlotBase.cxx:94
PlotBase::PlotBase
PlotBase(PlotBase *parent, const std::string &sDir)
Definition
PlotBase.cxx:29
Tau::EventPlots::EventPlots
EventPlots(PlotBase *pParent, const std::string &sDir)
Definition
EventPlots.cxx:11
Tau::EventPlots::m_avgmu
TH1 * m_avgmu
Definition
EventPlots.h:22
Tau::EventPlots::initializePlots
void initializePlots()
Definition
EventPlots.cxx:20
Tau::EventPlots::~EventPlots
virtual ~EventPlots()
Definition
EventPlots.cxx:16
Tau::EventPlots::fill
void fill(float avg_mu, float weight)
Definition
EventPlots.cxx:25
Tau
Definition
TauDQA/src/CorePlots.cxx:8
Generated on
for ATLAS Offline Software by
1.14.0