ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include "xAODMuon/Muon.h"
9
10HLTriggerMuonPlots::HLTriggerMuonPlots(PlotBase* pParent, const std::string& sDir):PlotBase(pParent, sDir),
11m_oHLTriggerPlots(this, "/", "HLT Muons")
12{}
13
15 //General HL Plots
16 m_oHLTriggerPlots.fill(Trigmu);
17}
18
19void HLTriggerMuonPlots::fill(const xAOD::Muon& /*mu*/,const xAOD::Muon& Trigmu){
20 //General HL Plots
21 m_oHLTriggerPlots.fill(Trigmu);
22}
23
25 //General HL Plots
28 L2SAinMuons->setStore( L2SAinMuonsAux );
29 xAOD::Muon* myL2SA=new xAOD::Muon();
30 L2SAinMuons->push_back(myL2SA);
31 if (L2SAmu.pt()>0.) myL2SA->setP4(L2SAmu.pt()*1000.,L2SAmu.eta(),L2SAmu.phi());
32 if (L2SAmu.pt()<0.) myL2SA->setP4(L2SAmu.pt()*(-1000.),L2SAmu.eta(),L2SAmu.phi());
33
34 m_oHLTriggerPlots.fill(*myL2SA);
35 delete L2SAinMuons;
36 delete L2SAinMuonsAux;
37
38
39}
40
42 //General HL Plots
43 m_oHLTriggerPlots.fill(L2CBmu);
44}
45
47 //General HL Plots
48 m_oHLTriggerPlots.fill(L2Isomu);
49}
value_type push_back(value_type pElem)
Add an element to the end of the collection.
HLTriggerMuonPlots(PlotBase *pParent, const std::string &sDir)
void fill(const xAOD::Muon &Trigmu)
Trk::ParamPlots m_oHLTriggerPlots
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
void setP4(double pt, double eta, double phi)
Set method for IParticle values.
Definition Muon_v1.cxx:58
L2CombinedMuon_v1 L2CombinedMuon
Define the latest version of the muon CB class.
Muon_v1 Muon
Reference the current persistent version:
MuonAuxContainer_v5 MuonAuxContainer
Definition of the current Muon auxiliary container.
L2StandAloneMuon_v2 L2StandAloneMuon
Define the latest version of the muon SA class.
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
L2IsoMuon_v1 L2IsoMuon
Define the latest version of the muon Iso class.
Definition L2IsoMuon.h:15