CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TriggerRatesMonitor.cc File Reference
#include <string>
#include <cstring>
#include <boost/regex.hpp>
#include <boost/format.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/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/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
#include "CondFormats/DataRecord/interface/L1GtTriggerMenuRcd.h"
#include "CondFormats/DataRecord/interface/L1GtTriggerMaskAlgoTrigRcd.h"
#include "CondFormats/DataRecord/interface/L1GtTriggerMaskTechTrigRcd.h"
#include "CondFormats/L1TObjects/interface/L1GtTriggerMenu.h"
#include "CondFormats/L1TObjects/interface/L1GtTriggerMask.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

struct  TriggerRatesMonitor::HLTIndices
 
struct  TriggerRatesMonitor::HLTRatesPlots
 
class  TriggerRatesMonitor
 

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
< TriggerRatesMonitor > > 
s_filler__LINE__ ("TriggerRatesMonitor")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< TriggerRatesMonitor > > 
s_maker__LINE__ ("TriggerRatesMonitor")
 

Function Documentation

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

Definition at line 46 of file TriggerRatesMonitor.cc.

References patZpeak::handle, edm::HandleBase::isValid(), edm::Handle< T >::product(), unpackBuffers-CaloStage2::token, and edm::HandleBase::whyFailed().

46  {
48  event.getByToken(token, handle);
49  if (not handle.isValid())
50  throw * handle.whyFailed();
51  return handle.product();
52 }
tuple handle
Definition: patZpeak.py:22
bool isValid() const
Definition: HandleBase.h:75
T const * product() const
Definition: Handle.h:81
std::shared_ptr< cms::Exception > whyFailed() const
Definition: HandleBase.h:110
template<typename R , typename T >
static const T* get ( const edm::EventSetup setup)
static

Definition at line 56 of file TriggerRatesMonitor.cc.

References patZpeak::handle, edm::ESHandle< class >::product(), dttmaxenums::R, and HcalObjRepresent::setup().

56  {
58  setup.get<R>().get(handle);
59  return handle.product();
60 }
tuple handle
Definition: patZpeak.py:22
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< TriggerRatesMonitor > > s_filler__LINE__ ( "TriggerRatesMonitor"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< TriggerRatesMonitor > > s_maker__LINE__ ( "TriggerRatesMonitor"  )
static