ATLAS Offline Software
Loading...
Searching...
No Matches
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"
8
9namespace Tau{
10
11EventPlots::EventPlots(PlotBase* pParent, const std::string& sDir):
12 PlotBase(pParent, sDir)
13{
14}
15
19
21
22 m_avgmu = Book1D("AverageMu","Average Interaction per bunch crossing; <mu>; # Events", 16, 0.0, 80.0);
23}
24
25void EventPlots::fill(float avg_mu, float weight) {
26
27 m_avgmu->Fill(avg_mu,weight);
28
29}
30
31
32}
Wrapper to avoid constant divisions when using units.
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 *parent, const std::string &sDir)
Definition PlotBase.cxx:29
EventPlots(PlotBase *pParent, const std::string &sDir)
void initializePlots()
virtual ~EventPlots()
void fill(float avg_mu, float weight)