ATLAS Offline Software
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 
10 HLTriggerMuonPlots::HLTriggerMuonPlots(PlotBase* pParent, const std::string& sDir):PlotBase(pParent, sDir),
11 m_oHLTriggerPlots(this, "/", "HLT Muons")
12 {}
13 
15  //General HL Plots
16  m_oHLTriggerPlots.fill(Trigmu);
17 }
18 
19 void 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
26  xAOD::MuonContainer* L2SAinMuons = new xAOD::MuonContainer;
27  xAOD::MuonAuxContainer* L2SAinMuonsAux = new xAOD::MuonAuxContainer;
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 }
Trk::ParamPlots::fill
void fill(const xAOD::IParticle &prt, float weight=1.0)
Definition: Tracking/TrkValidation/TrkValHistUtils/Root/ParamPlots.cxx:40
PlotBase
Definition: PlotBase.h:33
xAOD::MuonContainer
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Definition: Event/xAOD/xAODMuon/xAODMuon/MuonContainer.h:14
Muon.h
xAOD::L2StandAloneMuon_v2
Class describing standalone muons reconstructed in the LVL2 trigger.
Definition: L2StandAloneMuon_v2.h:36
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
xAOD::Muon_v1::setP4
void setP4(double pt, double eta, double phi)
Set method for IParticle values.
Definition: Muon_v1.cxx:66
HLTriggerMuonPlots::fill
void fill(const xAOD::Muon &Trigmu)
Definition: HLTriggerMuonPlots.cxx:14
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
xAOD::L2StandAloneMuon_v2::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
HLTriggerMuonPlots.h
xAOD::L2CombinedMuon_v1
Class describing combined muon reconstructed in the LVL2 trigger.
Definition: L2CombinedMuon_v1.h:41
MuonAuxContainer.h
xAOD::MuonAuxContainer_v5
Temporary container used until we have I/O for AuxStoreInternal.
Definition: MuonAuxContainer_v5.h:31
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition: Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
HLTriggerMuonPlots::m_oHLTriggerPlots
Trk::ParamPlots m_oHLTriggerPlots
Definition: HLTriggerMuonPlots.h:26
xAOD::L2IsoMuon_v1
Class describing isolation info for muons reconstructed in the LVL2 trigger.
Definition: L2IsoMuon_v1.h:33
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
xAOD::L2StandAloneMuon_v2::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
MuonContainer.h
xAOD::L2StandAloneMuon_v2::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::MuonAuxContainer
MuonAuxContainer_v5 MuonAuxContainer
Definition of the current Muon auxiliary container.
Definition: MuonAuxContainer.h:19
HLTriggerMuonPlots::HLTriggerMuonPlots
HLTriggerMuonPlots(PlotBase *pParent, const std::string &sDir)
Definition: HLTriggerMuonPlots.cxx:10