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)
 
TH1 * getH1 (const std::string &hist_name) const
 
TH2 * getH2 (const std::string &hist_name) const
 

Private Attributes

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

Detailed Description

Definition at line 29 of file MuonDQAHistMap.h.

Member Function Documentation

◆ addHist() [1/2]

void MuonDQAHistList::addHist ( TH1 *  p)
inline

Definition at line 35 of file MuonDQAHistMap.h.

35  {
36  m_H1s.push_back(p);
37  }

◆ addHist() [2/2]

void MuonDQAHistList::addHist ( TH2 *  p)
inline

Definition at line 38 of file MuonDQAHistMap.h.

38  {
39  m_H2s.push_back(p);
40  }

◆ clear()

void MuonDQAHistList::clear ( )
inline

Definition at line 31 of file MuonDQAHistMap.h.

31  {
32  m_H1s.clear();
33  m_H2s.clear();
34  }

◆ getH1()

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

Definition at line 41 of file MuonDQAHistMap.h.

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

◆ getH2()

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

Definition at line 51 of file MuonDQAHistMap.h.

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

Member Data Documentation

◆ m_H1s

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

Definition at line 63 of file MuonDQAHistMap.h.

◆ m_H2s

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

Definition at line 64 of file MuonDQAHistMap.h.


The documentation for this class was generated from the following file:
skel.it
it
Definition: skel.GENtoEVGEN.py:396
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
MuonDQAHistList::m_H2s
std::vector< TH2 * > m_H2s
Definition: MuonDQAHistMap.h:64
MuonDQAHistList::m_H1s
std::vector< TH1 * > m_H1s
Definition: MuonDQAHistMap.h:63