CMS 3D CMS Logo

Classes | Functions
TriggerBxVsOrbitMonitor.cc File Reference
#include <string>
#include <cstring>
#include <boost/regex.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <TH1F.h>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/Registry.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Provenance/interface/ProcessHistory.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/L1TGlobal/interface/GlobalAlgBlk.h"
#include "CondFormats/DataRecord/interface/L1TUtmTriggerMenuRcd.h"
#include "CondFormats/L1TObjects/interface/L1TUtmTriggerMenu.h"
#include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  TriggerBxVsOrbitMonitor
 

Functions

template<typename T >
static const Tget (const edm::Event &event, const edm::EDGetTokenT< T > &token)
 
template<typename R , typename T >
static const Tget (const edm::EventSetup &setup)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< TriggerBxVsOrbitMonitor > > s_filler__LINE__ ("TriggerBxVsOrbitMonitor")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< TriggerBxVsOrbitMonitor > > s_maker__LINE__ ("TriggerBxVsOrbitMonitor")
 

Function Documentation

template<typename T >
static const T& get ( const edm::Event event,
const edm::EDGetTokenT< T > &  token 
)
static

Definition at line 40 of file TriggerBxVsOrbitMonitor.cc.

References cmsBatch::handle, edm::HandleBase::isValid(), edm::Handle< T >::product(), and edm::HandleBase::whyFailed().

40  {
42  event.getByToken(token, handle);
43  if (not handle.isValid())
44  throw * handle.whyFailed();
45  return * handle.product();
46 }
bool isValid() const
Definition: HandleBase.h:74
T const * product() const
Definition: Handle.h:81
std::shared_ptr< cms::Exception > whyFailed() const
Definition: HandleBase.h:106
template<typename R , typename T >
static const T& get ( const edm::EventSetup setup)
static

Definition at line 50 of file TriggerBxVsOrbitMonitor.cc.

References cmsBatch::handle, edm::ESHandle< T >::product(), dttmaxenums::R, and GeneralSetup::setup().

50  {
52  setup.get<R>().get(handle);
53  return * handle.product();
54 }
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< TriggerBxVsOrbitMonitor > > s_filler__LINE__ ( "TriggerBxVsOrbitMonitor"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< TriggerBxVsOrbitMonitor > > s_maker__LINE__ ( "TriggerBxVsOrbitMonitor"  )
static