CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
L1TGlobalPrescaler.cc File Reference
#include <array>
#include <cassert>
#include <cstring>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#include <fmt/printf.h>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/one/EDFilter.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "CondFormats/DataRecord/interface/L1TGlobalPrescalesVetosRcd.h"
#include "CondFormats/L1TObjects/interface/L1TGlobalPrescalesVetos.h"
#include "DataFormats/L1TGlobal/interface/GlobalAlgBlk.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  L1TGlobalPrescaler
 

Functions

 m_l1tPrescaleColumn (m_mode==Mode::ApplyColumnValues or m_mode==Mode::ApplyColumnRatios or m_mode==Mode::ForceColumnValues?config.getParameter< uint32_t >("l1tPrescaleColumn"):0)
 
 m_oldIndex (-1)
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< L1TGlobalPrescaler > > 
s_filler__LINE__ ("L1TGlobalPrescaler")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< L1TGlobalPrescaler > > 
s_maker__LINE__ ("L1TGlobalPrescaler")
 

Function Documentation

m_l1tPrescaleColumn ( m_mode  = = Mode::ApplyColumnValues or m_mode == Mode::ApplyColumnRatios or m_mode == Mode::ForceColumnValues ? config.getParameter<uint32_t>("l1tPrescaleColumn") : 0)
m_oldIndex ( 1)

Definition at line 147 of file L1TGlobalPrescaler.cc.

References submitPVResolutionJobs::config, edm::errors::Configuration, Exception, Invalid, and AlCaHLTBitMon_QueryRunRegistry::string.

147  {
148  switch (m_mode) {
149  // if the mode is "applyPrescaleValues", use the given values
150  case Mode::ApplyPrescaleValues:
151  case Mode::ForcePrescaleValues:
152  m_prescales = m_l1tPrescales;
153  break;
154 
155  // otherwise we need to read the prescale values from the EventSetup
156  case Mode::ApplyColumnValues:
157  case Mode::ApplyPrescaleRatios:
158  case Mode::ApplyColumnRatios:
159  case Mode::ForceColumnValues:
160  m_l1tGtPrescalesVetosToken = esConsumes<L1TGlobalPrescalesVetos, L1TGlobalPrescalesVetosRcd>();
161  break;
162 
163  // this should never happen
164  case Mode::Invalid:
166  << "invalid mode \"" << config.getParameter<std::string>("mode") << "\"";
167  }
168 
169  m_counters.fill(0);
170  produces<GlobalAlgBlkBxCollection>();
171 }
tuple config
parse the configuration file
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< L1TGlobalPrescaler > > s_filler__LINE__ ( "L1TGlobalPrescaler"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1TGlobalPrescaler > > s_maker__LINE__ ( "L1TGlobalPrescaler"  )
static