ATLAS Offline Software
Loading...
Searching...
No Matches
EventInfoPlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "EventInfoPlots.h"
6
7namespace PhysVal {
8EventInfoPlots::EventInfoPlots(PlotBase* pParent, const std::string& sDir)
9 : PlotBase(pParent, sDir) {}
10
12 m_beamSpotWeight = Book1D("beamSpotWeight", "beamSpotWeight; weight ;Events", 100, 0., 10.);
13
15 "averageInteractionsPerCrossing",
16 "averageInteractionsPerCrossing; average-#mu ;Events", 350, 0., 350);
18 Book1D("actualInteractionsPerCrossing",
19 "actualInteractionsPerCrossing; actual-#mu ;Events", 350, 0., 350);
20 m_beamPosSigmaX = Book1D("beamPosSigmaX", "beamPosSigmaX; #sigma_{x} [mm] ;Events", 100, 0., 0.1);
21 m_beamPosSigmaY = Book1D("beamPosSigmaY", "beamPosSigmaY; #sigma_{y} [mm] ;Events", 100, 0., 0.1);
23 Book1D("beamPosSigmaXY", "beamPosSigmaXY; #sigma_{xy} [mm] ;Events", 100, 0., 0.1);
24 m_beamPosSigmaZ = Book1D("beamPosSigmaZ", "beamPosSigmaZ; #sigma_{z} [mm] ;Events", 100, 0., 100.);
25}
26
28 const auto beam_spot_weight = evt->beamSpotWeight();
29 m_beamSpotWeight->Fill(beam_spot_weight);
30 m_averageInteractionsPerCrossing->Fill(evt->averageInteractionsPerCrossing(),
31 beam_spot_weight);
32 m_actualInteractionsPerCrossing->Fill(evt->actualInteractionsPerCrossing(),
33 beam_spot_weight);
34 m_beamPosSigmaX->Fill(evt->beamPosSigmaX(), beam_spot_weight);
35 m_beamPosSigmaY->Fill(evt->beamPosSigmaY(), beam_spot_weight);
36 m_beamPosSigmaXY->Fill(evt->beamPosSigmaXY(), beam_spot_weight);
37 m_beamPosSigmaZ->Fill(evt->beamPosSigmaZ(), beam_spot_weight);
38}
39} // namespace PhysVal
void fill(const xAOD::EventInfo *evt)
EventInfoPlots(PlotBase *pParent, const std::string &sDir)
virtual void initializePlots()
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
EventInfo_v1 EventInfo
Definition of the latest event info version.