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__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.

74  {
76  if (value < 1 && value != -1)
77  throw cms::Exception("DQMFileSaver") << "Invalid '" << name << "' parameter '" << value
78  << "'. Must be -1 or >= 1.";
79 }

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

Referenced by DQMFileSaver::DQMFileSaver().

◆ 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.

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 }

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

Referenced by DQMFileSaver::saveForOffline().

◆ s_filler__LINE__()

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

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DQMFileSaver > > s_maker__LINE__ ( "DQMFileSaver"  )
static
pos
Definition: PixelAliasList.h:18
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
createPayload.suffix
suffix
Definition: createPayload.py:281
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
value
Definition: value.py:1
AlCaHarvesting_cff.workflow
workflow
Definition: AlCaHarvesting_cff.py:30
relativeConstraints.value
value
Definition: relativeConstraints.py:53
Exception
Definition: hltDiff.cc:246
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
child
Definition: simpleInheritance.h:11