CMS 3D CMS Logo

Classes | Namespaces | Functions
DQMFileSaver.cc File Reference
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/LegacyIOHelper.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/GetterOfProducts.h"
#include "FWCore/Framework/interface/ProcessMatch.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Version/interface/GetReleaseVersion.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/MessageLogger/interface/JobReport.h"
#include "DataFormats/Histograms/interface/DQMToken.h"
#include <sys/stat.h>
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  DQMFileSaver
 
struct  saverDetails::NoCache
 

Namespaces

 saverDetails
 

Functions

static void getAnInt (const edm::ParameterSet &ps, int &value, const std::string &name)
 
static std::string onlineOfflineFileName (const std::string &fileBaseName, const std::string &suffix, const std::string &workflow, const std::string &child)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< DQMFileSaver > > s_filler_0__LINE__ ("DQMFileSaver")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DQMFileSaver > > s_maker__LINE__ ("DQMFileSaver")
 

Function Documentation

◆ getAnInt()

static void getAnInt ( const edm::ParameterSet ps,
int &  value,
const std::string &  name 
)
static

Definition at line 72 of file DQMFileSaver.cc.

References Exception, edm::ParameterSet::getUntrackedParameter(), Skims_PA_cff::name, and relativeConstraints::value.

Referenced by DQMFileSaver::DQMFileSaver().

72  {
74  if (value < 1 && value != -1)
75  throw cms::Exception("DQMFileSaver") << "Invalid '" << name << "' parameter '" << value
76  << "'. Must be -1 or >= 1.";
77 }
T getUntrackedParameter(std::string const &, T const &) const
Definition: value.py:1

◆ onlineOfflineFileName()

static std::string onlineOfflineFileName ( const std::string &  fileBaseName,
const std::string &  suffix,
const std::string &  workflow,
const std::string &  child 
)
static

Definition at line 79 of file DQMFileSaver.cc.

References corrVsCorr::filename, AlCaHLTBitMon_QueryRunRegistry::string, ticlDumper_cff::suffix, and AlCaHarvesting_cff::workflow.

Referenced by DQMFileSaver::saveForOffline().

82  {
83  size_t pos = 0;
84  std::string wflow;
85  wflow.reserve(workflow.size() + 3);
86  wflow = workflow;
87  while ((pos = wflow.find('/', pos)) != std::string::npos)
88  wflow.replace(pos++, 1, "__");
89 
90  std::string filename = fileBaseName + suffix + wflow + child + ".root";
91  return filename;
92 }

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< DQMFileSaver > > s_filler_0__LINE__ ( "DQMFileSaver"  )
static

◆ s_maker__LINE__()

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