ATLAS Offline Software
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 
7 namespace PhysVal {
8 EventInfoPlots::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
PhysVal::EventInfoPlots::initializePlots
virtual void initializePlots()
Definition: EventInfoPlots.cxx:11
PhysVal::EventInfoPlots::m_beamPosSigmaZ
TH1 * m_beamPosSigmaZ
Definition: EventInfoPlots.h:24
PlotBase
Definition: PlotBase.h:34
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
PhysVal::EventInfoPlots::m_actualInteractionsPerCrossing
TH1 * m_actualInteractionsPerCrossing
Definition: EventInfoPlots.h:19
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
PhysVal::EventInfoPlots::m_beamPosSigmaX
TH1 * m_beamPosSigmaX
Definition: EventInfoPlots.h:21
PhysVal::EventInfoPlots::EventInfoPlots
EventInfoPlots(PlotBase *pParent, const std::string &sDir)
Definition: EventInfoPlots.cxx:8
EventInfoPlots.h
PhysVal::EventInfoPlots::m_beamSpotWeight
TH1 * m_beamSpotWeight
Definition: EventInfoPlots.h:20
PhysVal
Definition: BTagPlots.cxx:13
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
PhysVal::EventInfoPlots::m_beamPosSigmaY
TH1 * m_beamPosSigmaY
Definition: EventInfoPlots.h:22
PhysVal::EventInfoPlots::m_beamPosSigmaXY
TH1 * m_beamPosSigmaXY
Definition: EventInfoPlots.h:23
PhysVal::EventInfoPlots::fill
void fill(const xAOD::EventInfo *evt)
Definition: EventInfoPlots.cxx:27
PhysVal::EventInfoPlots::m_averageInteractionsPerCrossing
TH1 * m_averageInteractionsPerCrossing
Definition: EventInfoPlots.h:18