ATLAS Offline Software
Loading...
Searching...
No Matches
RecoMuonTrackPlotOrganizer.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
7namespace Muon{
8
9RecoMuonTrackPlotOrganizer::RecoMuonTrackPlotOrganizer(PlotBase* pParent, const std::string& sDir, std::vector<int> selPlots):
10 PlotBase(pParent, sDir) {
11
12 if (selPlots.empty()) {
13 m_selPlots.clear();
14 for (unsigned int i=0; i<MAX_RECOTRKPLOTCLASS; i++) m_selPlots.push_back(i);
15 }
16 else m_selPlots = std::move(selPlots);
17
18 for (int p: m_selPlots) {
19 switch (p) {
20 case TRK_PARAM:
21 m_oTrkParamPlots = std::make_unique<Trk::ParamPlots>(this, "/kinematics/", "RecoMuon");
22 break;
23 case TRK_RECOINFO:
24 m_oTrkRecoInfoPlots = std::make_unique< Trk::RecoInfoPlots>(this, "/parameters/", "RecoMuon");
25 break;
26 case TRK_IMPACT:
27 m_oImpactPlots = std::make_unique<Trk::ImpactPlots>(this, "/parameters/");
28 break;
29 case TRK_MSHITS:
30 m_oMSHitPlots = std::make_unique<Trk::MSHitPlots>(this,"/hits/");
31 break;
32 case TRK_IDHITS:
33 m_oIDHitPlots = std::make_unique<Muon::IDHitSummaryPlots>(this,"/hits/");
34 break;
35 }
36 }
37}
38
40
42 if (m_oTrkParamPlots) m_oTrkParamPlots->fill(tp, weight);
43 if (m_oTrkRecoInfoPlots) m_oTrkRecoInfoPlots->fill(tp,weight);
44 if (m_oImpactPlots) m_oImpactPlots->fill(tp,weight);
45 if (m_oMSHitPlots) m_oMSHitPlots->fill(tp,weight);
46 if (m_oIDHitPlots) m_oIDHitPlots->fill(tp,weight);
47}
48
49}
std::unique_ptr< Trk::MSHitPlots > m_oMSHitPlots
std::unique_ptr< Trk::RecoInfoPlots > m_oTrkRecoInfoPlots
std::unique_ptr< Trk::ImpactPlots > m_oImpactPlots
std::unique_ptr< Muon::IDHitSummaryPlots > m_oIDHitPlots
void fill(const xAOD::TrackParticle &tp, float weight=1.0)
std::unique_ptr< Trk::ParamPlots > m_oTrkParamPlots
RecoMuonTrackPlotOrganizer(PlotBase *pParent, const std::string &sDir, std::vector< int > selPlots={})
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
TrackParticle_v1 TrackParticle
Reference the current persistent version: