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 74 of file DQMFileSaver.cc.

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

Referenced by DQMFileSaver::DQMFileSaver().

74  {
76  if (value < 1 && value != -1)
77  throw cms::Exception("DQMFileSaver") << "Invalid '" << name << "' parameter '" << value
78  << "'. Must be -1 or >= 1.";
79 }
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 81 of file DQMFileSaver.cc.

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

Referenced by DQMFileSaver::saveForOffline().

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

◆ 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