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 const std::vector<ElementLink<DataVector<xAOD::MuonSegment_v1>>>& Mu_Segments = mu.muonSegmentLinks();
30 fill(Mu_Segments);
31}
32
33//use the link to fill
35
36 for(const auto& Mu_Segment : Mu_Segments){
37 const ElementLink<DataVector<xAOD::MuonSegment_v1>> Mu_seg = Mu_Segment;
38 if(Mu_seg.isValid()){
39 const xAOD::MuonSegment* seg = *Mu_seg;
40 fill(*seg);
41 }
42 }
43}
44
45
47 //General Plots
48 if (Detail) m_oMuonSegmentPlots->fill(muonSeg);
49 else m_oMuonSegmentSlimPlots->fill(muonSeg);
50}
51
53{
54 //initialize temp plots
55}
56
Derived DataVector<T>.
Definition DataVector.h:795
PlotBase(PlotBase *parent, const std::string &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: