ATLAS Offline Software
Loading...
Searching...
No Matches
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 26 of file MuonDQAHistMap.h.

Member Function Documentation

◆ addHist() [1/2]

void MuonDQAHistList::addHist ( TH1 * p)
inline

Definition at line 32 of file MuonDQAHistMap.h.

32 {
33 m_H1s.push_back(p);
34 }
std::vector< TH1 * > m_H1s

◆ addHist() [2/2]

void MuonDQAHistList::addHist ( TH2 * p)
inline

Definition at line 35 of file MuonDQAHistMap.h.

35 {
36 m_H2s.push_back(p);
37 }
std::vector< TH2 * > m_H2s

◆ clear()

void MuonDQAHistList::clear ( )
inline

Definition at line 28 of file MuonDQAHistMap.h.

28 {
29 m_H1s.clear();
30 m_H2s.clear();
31 }

◆ getH1()

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

Definition at line 38 of file MuonDQAHistMap.h.

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

◆ getH2()

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

Definition at line 48 of file MuonDQAHistMap.h.

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

Member Data Documentation

◆ m_H1s

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

Definition at line 60 of file MuonDQAHistMap.h.

◆ m_H2s

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

Definition at line 61 of file MuonDQAHistMap.h.


The documentation for this class was generated from the following file: