ATLAS Offline Software
Loading...
Searching...
No Matches
RecoMuonSegmentPlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7RecoMuonSegmentPlots::RecoMuonSegmentPlots(PlotBase* pParent, const std::string& sDir, bool detail):PlotBase(pParent, sDir)
8 , m_oMuonSegmentPlots(nullptr)
10 //declare the histograms
11{
12 Detail = detail;
15}
16
17//when the plot function called with a Muon Container
18//loop through each muon, get the corresponding link and fill it
20 for (const auto mu : muContainer) {
21 fill(*mu);
22 }
23}
24
25//when the plot function called with a Muon
26//get's the corresponding link and fill it
27//Tony 2015.9.21: fix to go around the segment link problem for now
29 for (unsigned int seg = 0 ; seg < mu.nMuonSegments(); ++seg) {
30 assert(mu.muonSegment(seg) != nullptr);
31 fill(*mu.muonSegment(seg));
32 }
33}
34
35
36
38 //General Plots
39 if (Detail) m_oMuonSegmentPlots->fill(muonSeg);
40 else m_oMuonSegmentSlimPlots->fill(muonSeg);
41}
42
44{
45 //initialize temp plots
46}
47
PlotBase(PlotBase *parent, std::string_view sDir)
Definition PlotBase.cxx:29
Muon::MuonSegmentPlots * m_oMuonSegmentPlots
Muon::MuonSegmentSlimPlots * m_oMuonSegmentSlimPlots
void fill(const xAOD::MuonContainer &muContainer)
RecoMuonSegmentPlots(PlotBase *pParent, const std::string &sDir, bool detail=false)
Muon_v1 Muon
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
MuonSegment_v1 MuonSegment
Reference the current persistent version: