CMS 3D CMS Logo

Enumerations | Functions | Variables
OnlineBeamMonitor.cc File Reference
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DQM/BeamMonitor/plugins/OnlineBeamMonitor.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Common/interface/View.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/Run.h"
#include "RecoVertex/BeamSpotProducer/interface/BeamFitter.h"
#include "RecoVertex/BeamSpotProducer/interface/PVFitter.h"
#include <memory>
#include <numeric>

Go to the source code of this file.

Enumerations

enum  BSparameters { startTime = 0, endTime = 1, lumiRange = 2, END_OF_TYPES = 3 }
 

Functions

static void print_error (const std::exception &e)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< OnlineBeamMonitor > > s_filler_0__LINE__ ("OnlineBeamMonitor")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< OnlineBeamMonitor > > s_maker__LINE__ ("OnlineBeamMonitor")
 
template<typename T , class Except , class Func , class Response >
T try_ (Func f, Response r)
 

Variables

std::function< std::string(BSparameters, BeamSpotOnlineObjects)> myStringFunctor
 

Enumeration Type Documentation

◆ BSparameters

Enumerator
startTime 
endTime 
lumiRange 
END_OF_TYPES 

Definition at line 151 of file OnlineBeamMonitor.cc.

151  {
152  startTime = 0, // 0 additional std::string parameters
153  endTime = 1, // 1
154  lumiRange = 2, // 2
155  END_OF_TYPES = 3,
156 };

Function Documentation

◆ print_error()

static void print_error ( const std::exception &  e)
static

Definition at line 135 of file OnlineBeamMonitor.cc.

References MillePedeFileConverter_cfg::e.

Referenced by OnlineBeamMonitor::globalBeginLuminosityBlock().

135 { edm::LogError("BeamSpotOnlineParameters") << e.what() << '\n'; }
Log< level::Error, false > LogError

◆ s_filler_0__LINE__()

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

◆ s_maker__LINE__()

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

◆ try_()

template<typename T , class Except , class Func , class Response >
T try_ ( Func  f,
Response  r 
)

Definition at line 139 of file OnlineBeamMonitor.cc.

References MillePedeFileConverter_cfg::e, f, LogDebug, and alignCSCRings::r.

Referenced by pat::DuplicatedElectronCleaner::produce().

139  {
140  try {
141  LogDebug("BeamSpotOnlineParameters") << "I have tried" << std::endl;
142  return f();
143  } catch (Except& e) {
144  LogDebug("BeamSpotOnlineParameters") << "I have caught!" << std::endl;
145  r(e);
146  return static_cast<T>("-999");
147  }
148 }
double f[11][100]
long double T
#define LogDebug(id)

Variable Documentation

◆ myStringFunctor

std::function<std::string(BSparameters, BeamSpotOnlineObjects)> myStringFunctor
Initial value:
= [](BSparameters my_param,
BeamSpotOnlineObjects m_payload) {
switch (my_param) {
case startTime:
return m_payload.startTime();
case endTime:
return m_payload.endTime();
case lumiRange:
return m_payload.lumiRange();
default:
return ret;
}
}
ret
prodAgent to be discontinued
BSparameters

Definition at line 159 of file OnlineBeamMonitor.cc.

Referenced by OnlineBeamMonitor::globalBeginLuminosityBlock().