ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
PhysicsValidation
PhysValMonitoring
src
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
11
using
CLHEP::GeV;
12
13
namespace
PhysVal
{
14
15
METPlots::METPlots
(
PlotBase
* pParent,
const
std::string& sDir, std::string sParticleType):
PlotBase
(pParent, sDir),
16
m_sParticleType
(
std
::move(sParticleType))
17
{}
18
19
void
METPlots::initializePlots
(){
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
26
void
METPlots::fill
(
const
xAOD::MissingET
*
met
,
const
xAOD::EventInfo
* evt) {
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.h
GeV
#define GeV
Definition
PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
PhysVal::METPlots::met_et
TH1 * met_et
Definition
METPlots.h:24
PhysVal::METPlots::METPlots
METPlots(PlotBase *pParent, const std::string &sDir, std::string sParticleType="RefFinal")
Definition
METPlots.cxx:15
PhysVal::METPlots::met_sumet
TH1 * met_sumet
Definition
METPlots.h:25
PhysVal::METPlots::m_sParticleType
std::string m_sParticleType
Definition
METPlots.h:21
PhysVal::METPlots::met_ex
TH1 * met_ex
Definition
METPlots.h:22
PhysVal::METPlots::met_ey
TH1 * met_ey
Definition
METPlots.h:23
PhysVal::METPlots::initializePlots
virtual void initializePlots()
Definition
METPlots.cxx:19
PhysVal::METPlots::fill
void fill(const xAOD::MissingET *met, const xAOD::EventInfo *evt)
Definition
METPlots.cxx:26
PlotBase::Book1D
TH1D * Book1D(std::string_view name, std::string_view labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
Definition
PlotBase.cxx:94
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
PhysVal
Definition
BTagPlots.cxx:13
met
Definition
IMETSignificance.h:24
std
STL namespace.
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
xAOD::MissingET
MissingET_v1 MissingET
Version control by type defintion.
Definition
Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h:15
Generated on
for ATLAS Offline Software by
1.17.0