ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonHistogramming
MuonHistUtils
Root
HLTriggerMuonPlots.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonHistUtils/HLTriggerMuonPlots.h
"
6
7
#include "
xAODMuon/Muon.h
"
8
#include "
xAODMuon/MuonAuxContainer.h
"
9
#include "
xAODMuon/MuonContainer.h
"
10
11
HLTriggerMuonPlots::HLTriggerMuonPlots
(
PlotBase
* pParent,
12
const
std::string& sDir)
13
:
PlotBase
(pParent, sDir),
m_oHLTriggerPlots
(this,
"/"
,
"HLT Muons"
) {}
14
15
void
HLTriggerMuonPlots::fill
(
const
xAOD::Muon
& Trigmu) {
16
// General HL Plots
17
m_oHLTriggerPlots
.fill(Trigmu);
18
}
19
20
void
HLTriggerMuonPlots::fill
(
const
xAOD::Muon
&
/*mu*/
,
21
const
xAOD::Muon
& Trigmu) {
22
// General HL Plots
23
m_oHLTriggerPlots
.fill(Trigmu);
24
}
25
26
void
HLTriggerMuonPlots::fill
(
const
xAOD::L2StandAloneMuon
& L2SAmu) {
27
// General HL Plots
28
xAOD::MuonContainer
* L2SAinMuons =
new
xAOD::MuonContainer
;
29
xAOD::MuonAuxContainer
* L2SAinMuonsAux =
new
xAOD::MuonAuxContainer
;
30
L2SAinMuons->setStore(L2SAinMuonsAux);
31
xAOD::Muon
* myL2SA =
new
xAOD::Muon
();
32
L2SAinMuons->
push_back
(myL2SA);
33
if
(L2SAmu.
pt
() > 0.) {
34
myL2SA->
setP4
(L2SAmu.
pt
() * 1000., L2SAmu.
eta
(), L2SAmu.
phi
());
35
}
36
if
(L2SAmu.
pt
() < 0.) {
37
myL2SA->
setP4
(L2SAmu.
pt
() * (-1000.), L2SAmu.
eta
(), L2SAmu.
phi
());
38
}
39
40
m_oHLTriggerPlots
.fill(*myL2SA);
41
delete
L2SAinMuons;
42
delete
L2SAinMuonsAux;
43
}
44
45
void
HLTriggerMuonPlots::fill
(
const
xAOD::L2CombinedMuon
& L2CBmu) {
46
// General HL Plots
47
m_oHLTriggerPlots
.fill(L2CBmu);
48
}
49
50
void
HLTriggerMuonPlots::fill
(
const
xAOD::L2IsoMuon
& L2Isomu) {
51
// General HL Plots
52
m_oHLTriggerPlots
.fill(L2Isomu);
53
}
MuonContainer.h
Muon.h
HLTriggerMuonPlots.h
MuonAuxContainer.h
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
HLTriggerMuonPlots::HLTriggerMuonPlots
HLTriggerMuonPlots(PlotBase *pParent, const std::string &sDir)
Definition
HLTriggerMuonPlots.cxx:11
HLTriggerMuonPlots::fill
void fill(const xAOD::Muon &Trigmu)
Definition
HLTriggerMuonPlots.cxx:15
HLTriggerMuonPlots::m_oHLTriggerPlots
Trk::ParamPlots m_oHLTriggerPlots
Definition
HLTriggerMuonPlots.h:24
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
xAOD::L2StandAloneMuon_v2::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::L2StandAloneMuon_v2::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
xAOD::L2StandAloneMuon_v2::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
xAOD::Muon_v1::setP4
void setP4(double pt, double eta, double phi)
Set method for IParticle values.
Definition
Muon_v1.cxx:71
xAOD::L2CombinedMuon
L2CombinedMuon_v1 L2CombinedMuon
Define the latest version of the muon CB class.
Definition
L2CombinedMuon.h:15
xAOD::MuonAuxContainer
MuonAuxContainer_v5 MuonAuxContainer
Definition of the current Muon auxiliary container.
Definition
MuonAuxContainer.h:19
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
xAOD::L2StandAloneMuon
L2StandAloneMuon_v2 L2StandAloneMuon
Define the latest version of the muon SA class.
Definition
L2StandAloneMuon.h:17
xAOD::MuonContainer
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonContainer.h:14
xAOD::L2IsoMuon
L2IsoMuon_v1 L2IsoMuon
Define the latest version of the muon Iso class.
Definition
L2IsoMuon.h:15
Generated on
for ATLAS Offline Software by
1.17.0