ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonDQAHistList Class Reference

#include <MuonDQAHistMap.h>

Collaboration diagram for MuonDQAHistList:

Public Member Functions

void clear ()
 
void addHist (TH1 *p)
 
void addHist (TH2 *p)
 
TH1getH1 (const std::string &hist_name) const
 
TH2getH2 (const std::string &hist_name) const
 

Private Attributes

std::vector< TH1 * > m_H1s
 
std::vector< TH2 * > m_H2s
 

Detailed Description

Definition at line 31 of file MuonDQAHistMap.h.

Member Function Documentation

◆ addHist() [1/2]

void MuonDQAHistList::addHist ( TH1 p)
inline

Definition at line 37 of file MuonDQAHistMap.h.

37  {
38  m_H1s.push_back(p);
39  }

◆ addHist() [2/2]

void MuonDQAHistList::addHist ( TH2 p)
inline

Definition at line 40 of file MuonDQAHistMap.h.

40  {
41  m_H2s.push_back(p);
42  }

◆ clear()

void MuonDQAHistList::clear ( )
inline

Definition at line 33 of file MuonDQAHistMap.h.

33  {
34  m_H1s.clear();
35  m_H2s.clear();
36  }

◆ getH1()

TH1* MuonDQAHistList::getH1 ( const std::string &  hist_name) const
inline

Definition at line 43 of file MuonDQAHistMap.h.

43  {
44  std::vector<TH1*>::const_iterator it = m_H1s.begin(),
45  itEnd = m_H1s.end();
46  for ( ; it != itEnd; ++it ) {
47  if ( (*it)->GetName() == hist_name ) {
48  return *it;
49  }
50  }
51  return 0;
52  }

◆ getH2()

TH2* MuonDQAHistList::getH2 ( const std::string &  hist_name) const
inline

Definition at line 53 of file MuonDQAHistMap.h.

53  {
54  std::vector<TH2*>::const_iterator it = m_H2s.begin(),
55  itEnd = m_H2s.end();
56  for ( ; it != itEnd; ++it ) {
57  if ( (*it)->GetName() == hist_name ) {
58  return *it;
59  }
60  }
61  return 0;
62  }

Member Data Documentation

◆ m_H1s

std::vector<TH1*> MuonDQAHistList::m_H1s
private

Definition at line 65 of file MuonDQAHistMap.h.

◆ m_H2s

std::vector<TH2*> MuonDQAHistList::m_H2s
private

Definition at line 66 of file MuonDQAHistMap.h.


The documentation for this class was generated from the following file:
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
skel.it
it
Definition: skel.GENtoEVGEN.py:423
MuonDQAHistList::m_H2s
std::vector< TH2 * > m_H2s
Definition: MuonDQAHistMap.h:66
MuonDQAHistList::m_H1s
std::vector< TH1 * > m_H1s
Definition: MuonDQAHistMap.h:65