ATLAS Offline Software
Loading...
Searching...
No Matches
METPlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <utility>
6
7
8
9#include "METPlots.h"
10
11using CLHEP::GeV;
12
13namespace PhysVal{
14
15 METPlots::METPlots(PlotBase* pParent, const std::string& sDir, std::string sParticleType):PlotBase(pParent, sDir),
16m_sParticleType(std::move(sParticleType))
17{}
18
20 met_ex = Book1D("Ex", "MET " + m_sParticleType + " Ex; E_{x}^{miss} ;Events", 100, 0., 400);
21 met_ey = Book1D("Ey", "MET " + m_sParticleType + " Ey; E_{y}^{miss} ;Events", 100, 0., 400);
22 met_et = Book1D("Et", "MET " + m_sParticleType + " Et; E_{t}^{miss} ;Events", 100, 0., 400);
23 met_sumet = Book1D("SumEt", "MET " + m_sParticleType + " Ex; #Sum E_{t} ;Events", 100, 0., 2000);
24}
25
27
28 met_ex->Fill(met->mpx()/GeV,evt->beamSpotWeight());
29 met_ey->Fill(met->mpy()/GeV,evt->beamSpotWeight());
30 met_et->Fill(met->met()/GeV,evt->beamSpotWeight());
31 met_sumet->Fill(met->sumet()/GeV,evt->beamSpotWeight());
32
33}
34}
METPlots(PlotBase *pParent, const std::string &sDir, std::string sParticleType="RefFinal")
Definition METPlots.cxx:15
std::string m_sParticleType
Definition METPlots.h:21
virtual void initializePlots()
Definition METPlots.cxx:19
void fill(const xAOD::MissingET *met, const xAOD::EventInfo *evt)
Definition METPlots.cxx:26
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
STL namespace.
EventInfo_v1 EventInfo
Definition of the latest event info version.
MissingET_v1 MissingET
Version control by type defintion.