ATLAS Offline Software
Loading...
Searching...
No Matches
MuonValidationPlots.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONPHYSVALMONITORING_MUONVALIDATIONPLOTS_H
6#define MUONPHYSVALMONITORING_MUONVALIDATIONPLOTS_H
7
13#include "xAODMuon/Muon.h"
16
18public:
19 MuonValidationPlots(PlotBase* pParent, const std::string& sDir, std::vector<int> wps, std::vector<unsigned int> authors, bool isData,
20 bool doBinnedResolutionPlots, bool doSplitSAFMuons, bool doMuonTree = false);
21
23 void fill(const xAOD::Muon& mu, float weight = 1.0);
24 bool isGoodTruthTrack(const xAOD::TruthParticle& truthMu);
25 void fill(const xAOD::TruthParticle& truthMu, float weight = 1.0);
26 void fill(const xAOD::TruthParticle* truthMu, const xAOD::Muon* mu, const xAOD::TrackParticleContainer* MSTracks, float weight = 1.0);
28 void fillTreeBranches(const xAOD::Muon& mu);
29 void fillTreeBranches(const xAOD::TruthParticle& truthMu);
30 void fillTreeBranches(const xAOD::TruthParticle* truthMu, const xAOD::Muon* mu, const xAOD::TrackParticleContainer* MSTracks);
31 void fillTree(const xAOD::EventInfo* eventInfo, bool isData);
32
33 std::vector<int> m_selectedWPs;
34 std::vector<unsigned int> m_selectedAuthors;
35 std::vector<std::string> m_truthSelections;
36
37 std::unique_ptr<Muon::RecoMuonPlotOrganizer> m_oRecoMuonPlots;
38 std::unique_ptr<Muon::TruthRelatedMuonPlotOrganizer> m_oTruthRelatedMuonPlots;
39 std::vector<std::unique_ptr<Muon::RecoMuonPlotOrganizer>> m_oRecoMuonPlots_perQuality;
40 std::vector<std::unique_ptr<Muon::RecoMuonPlotOrganizer>> m_oRecoMuonPlots_perAuthor;
41 std::vector<std::unique_ptr<Muon::TruthRelatedMuonPlotOrganizer>> m_oTruthRelatedMuonPlots_perQuality;
42 std::vector<std::unique_ptr<Muon::TruthRelatedMuonPlotOrganizer>> m_oTruthRelatedMuonPlots_perAuthor;
43 std::vector<std::unique_ptr<Muon::TruthMuonPlotOrganizer>> m_oTruthMuonPlots;
44
45 std::vector<std::unique_ptr<Muon::TruthRelatedMuonPlotOrganizer>> m_oTruthRelatedMuonPlots_SiAssocFwrdMu;
46 std::vector<std::unique_ptr<Muon::RecoMuonPlotOrganizer>> m_oRecoMuonPlots_SiAssocFwrdMu;
47
48private:
49 void fillRecoMuonPlots(const xAOD::Muon& mu, float weight = 1.0);
50 void fillTruthMuonPlots(const xAOD::TruthParticle& truthMu, float weight = 1.0);
51
54
55 std::unique_ptr<Muon::MuonTree> m_MuonTree;
56};
57
58#endif
bool isGoodTruthTrack(const xAOD::TruthParticle &truthMu)
void fill(const xAOD::Muon &mu, float weight=1.0)
std::unique_ptr< Muon::MuonTree > m_MuonTree
std::unique_ptr< Muon::RecoMuonPlotOrganizer > m_oRecoMuonPlots
void fillTreeBranches(const xAOD::Muon &mu)
std::vector< int > m_selectedWPs
std::vector< std::unique_ptr< Muon::TruthMuonPlotOrganizer > > m_oTruthMuonPlots
void fillRecoMuonPlots(const xAOD::Muon &mu, float weight=1.0)
std::unique_ptr< Muon::TruthRelatedMuonPlotOrganizer > m_oTruthRelatedMuonPlots
void fillTree(const xAOD::EventInfo *eventInfo, bool isData)
std::vector< std::unique_ptr< Muon::RecoMuonPlotOrganizer > > m_oRecoMuonPlots_perAuthor
std::vector< std::string > m_truthSelections
std::vector< std::unique_ptr< Muon::TruthRelatedMuonPlotOrganizer > > m_oTruthRelatedMuonPlots_perAuthor
virtual ~MuonValidationPlots()
std::vector< std::unique_ptr< Muon::TruthRelatedMuonPlotOrganizer > > m_oTruthRelatedMuonPlots_perQuality
Muon::MuonTree * getMuonTree()
std::vector< unsigned int > m_selectedAuthors
std::vector< std::unique_ptr< Muon::RecoMuonPlotOrganizer > > m_oRecoMuonPlots_SiAssocFwrdMu
std::vector< std::unique_ptr< Muon::RecoMuonPlotOrganizer > > m_oRecoMuonPlots_perQuality
void fillTruthMuonPlots(const xAOD::TruthParticle &truthMu, float weight=1.0)
MuonValidationPlots(PlotBase *pParent, const std::string &sDir, std::vector< int > wps, std::vector< unsigned int > authors, bool isData, bool doBinnedResolutionPlots, bool doSplitSAFMuons, bool doMuonTree=false)
std::vector< std::unique_ptr< Muon::TruthRelatedMuonPlotOrganizer > > m_oTruthRelatedMuonPlots_SiAssocFwrdMu
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
EventInfo_v1 EventInfo
Definition of the latest event info version.
TruthParticle_v1 TruthParticle
Typedef to implementation.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
Muon_v1 Muon
Reference the current persistent version: