CMS 3D CMS Logo

Classes | Functions
DQMStoreStats.cc File Reference
#include <string>
#include <sstream>
#include <utility>
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include "TFile.h"
#include "TTree.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/MessageLogger/interface/JobReport.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  DQMStoreStats
 
class  DQMStoreStatsSubfolder
 
class  DQMStoreStatsSubsystem
 
class  DQMStoreStatsTopLevel
 
class  Folder
 
class  Iterator< Item >
 
class  VIterator< Item >
 

Functions

template<class T >
static unsigned int getEmptyMetric (T *array, int lenx, int leny, int lenz)
 
static unsigned int getId ()
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< DQMStoreStats > > s_filler__LINE__ ("DQMStoreStats")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DQMStoreStats > > s_maker__LINE__ ("DQMStoreStats")
 

Function Documentation

◆ getEmptyMetric()

template<class T >
static unsigned int getEmptyMetric ( T array,
int  lenx,
int  leny,
int  lenz 
)
static

Definition at line 383 of file DQMStoreStats.cc.

References mps_check::array, mps_fire::i, and mps_fire::result.

Referenced by DQMStoreStats::calcstats().

383  {
384  // len{x,y,z} MUST include under/overflow bins.
385  unsigned int len = lenx + leny + lenz;
386  unsigned int result = 0;
387  // start from 1 to exclude underflow bin. The comparison is accurate
388  // since it takes properly into account under/overflow bins, for all
389  // kind of histograms.
390  for (unsigned int i = 1; i < len; ++i) {
391  // get rid of under/overflow bins for x,y,z axis, to have a correct statistics.
392  if (i % (lenx - 1) == 0)
393  continue;
394  if (i % lenx == 0)
395  continue;
396  if (i % (lenx + leny - 1) == 0)
397  continue;
398  if (i % (lenx + leny) == 0)
399  continue;
400  if (i % (lenx + leny + lenz - 1) == 0)
401  continue;
402 
403  if (array[i] == 0)
404  result += 1;
405  }
406 
407  return result;
408 }

◆ getId()

static unsigned int getId ( )
static

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< DQMStoreStats > > s_filler__LINE__ ( "DQMStoreStats"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DQMStoreStats > > s_maker__LINE__ ( "DQMStoreStats"  )
static