CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DQMStoreStatsSubfolder Class Reference

#include <DQMStoreStats.h>

Public Member Functions

void AddBinsD (unsigned int nBins, unsigned int nEmptyBins)
 
void AddBinsF (unsigned int nBins, unsigned int nEmptyBins)
 
void AddBinsS (unsigned int nBins, unsigned int nEmptyBins)
 
 DQMStoreStatsSubfolder ()
 

Public Attributes

std::string subfolderName_
 
unsigned int totalBins_
 
unsigned int totalEmptyBins_
 
unsigned int totalHistos_
 
unsigned int totalMemory_
 

Detailed Description

DQMStoreStats helper class for storing subsystem results

Definition at line 41 of file DQMStoreStats.h.

Constructor & Destructor Documentation

◆ DQMStoreStatsSubfolder()

DQMStoreStatsSubfolder::DQMStoreStatsSubfolder ( )
inline

Definition at line 43 of file DQMStoreStats.h.

43  {
44  totalHistos_ = 0;
45  totalBins_ = 0;
46  totalMemory_ = 0;
47  totalEmptyBins_ = 0;
48  }

References totalBins_, totalEmptyBins_, totalHistos_, and totalMemory_.

Member Function Documentation

◆ AddBinsD()

void DQMStoreStatsSubfolder::AddBinsD ( unsigned int  nBins,
unsigned int  nEmptyBins 
)
inline

Definition at line 66 of file DQMStoreStats.h.

66  {
67  ++totalHistos_;
68  totalBins_ += nBins;
69  totalEmptyBins_ += nEmptyBins;
70  totalMemory_ += (nBins *= sizeof(double));
71  }

References seedmultiplicitymonitor_newtracking_cfi::nBins, totalBins_, totalEmptyBins_, totalHistos_, and totalMemory_.

Referenced by DQMStoreStats::calcstats().

◆ AddBinsF()

void DQMStoreStatsSubfolder::AddBinsF ( unsigned int  nBins,
unsigned int  nEmptyBins 
)
inline

Definition at line 54 of file DQMStoreStats.h.

54  {
55  ++totalHistos_;
56  totalBins_ += nBins;
57  totalEmptyBins_ += nEmptyBins;
58  totalMemory_ += (nBins *= sizeof(float));
59  }

References dqmMemoryStats::float, seedmultiplicitymonitor_newtracking_cfi::nBins, totalBins_, totalEmptyBins_, totalHistos_, and totalMemory_.

Referenced by DQMStoreStats::calcstats().

◆ AddBinsS()

void DQMStoreStatsSubfolder::AddBinsS ( unsigned int  nBins,
unsigned int  nEmptyBins 
)
inline

Definition at line 60 of file DQMStoreStats.h.

60  {
61  ++totalHistos_;
62  totalBins_ += nBins;
63  totalEmptyBins_ += nEmptyBins;
64  totalMemory_ += (nBins *= sizeof(short));
65  }

References seedmultiplicitymonitor_newtracking_cfi::nBins, totalBins_, totalEmptyBins_, totalHistos_, and totalMemory_.

Referenced by DQMStoreStats::calcstats().

Member Data Documentation

◆ subfolderName_

std::string DQMStoreStatsSubfolder::subfolderName_

Definition at line 49 of file DQMStoreStats.h.

Referenced by DQMStoreStats::calcstats().

◆ totalBins_

unsigned int DQMStoreStatsSubfolder::totalBins_

Definition at line 51 of file DQMStoreStats.h.

Referenced by AddBinsD(), AddBinsF(), AddBinsS(), and DQMStoreStatsSubfolder().

◆ totalEmptyBins_

unsigned int DQMStoreStatsSubfolder::totalEmptyBins_

Definition at line 52 of file DQMStoreStats.h.

Referenced by AddBinsD(), AddBinsF(), AddBinsS(), and DQMStoreStatsSubfolder().

◆ totalHistos_

unsigned int DQMStoreStatsSubfolder::totalHistos_

Definition at line 50 of file DQMStoreStats.h.

Referenced by AddBinsD(), AddBinsF(), AddBinsS(), and DQMStoreStatsSubfolder().

◆ totalMemory_

unsigned int DQMStoreStatsSubfolder::totalMemory_

Definition at line 53 of file DQMStoreStats.h.

Referenced by AddBinsD(), AddBinsF(), AddBinsS(), and DQMStoreStatsSubfolder().

dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
DQMStoreStatsSubfolder::totalMemory_
unsigned int totalMemory_
Definition: DQMStoreStats.h:53
DQMStoreStatsSubfolder::totalHistos_
unsigned int totalHistos_
Definition: DQMStoreStats.h:50
seedmultiplicitymonitor_newtracking_cfi.nBins
nBins
Definition: seedmultiplicitymonitor_newtracking_cfi.py:8
DQMStoreStatsSubfolder::totalBins_
unsigned int totalBins_
Definition: DQMStoreStats.h:51
DQMStoreStatsSubfolder::totalEmptyBins_
unsigned int totalEmptyBins_
Definition: DQMStoreStats.h:52