CMS 3D CMS Logo

Classes | Functions
L1GTAlgoBoardWriter.cc File Reference
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "L1Trigger/DemonstratorTools/interface/BoardDataWriter.h"
#include "L1Trigger/DemonstratorTools/interface/utilities.h"
#include "FWCore/Utilities/interface/EDGetToken.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "DataFormats/L1Trigger/interface/P2GTAlgoBlock.h"
#include "ap_int.h"
#include <vector>
#include <algorithm>
#include <string>
#include <array>

Go to the source code of this file.

Classes

class  L1GTAlgoBoardWriter
 

Functions

template<typename T , std::size_t N>
static std::array< T, Nconvert (std::vector< T > vec, const char *name)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< L1GTAlgoBoardWriter > > s_filler_0__LINE__ ("L1GTAlgoBoardWriter")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1GTAlgoBoardWriter > > s_maker__LINE__ ("L1GTAlgoBoardWriter")
 

Function Documentation

◆ convert()

template<typename T , std::size_t N>
static std::array<T, N> convert ( std::vector< T vec,
const char *  name 
)
static

Definition at line 55 of file L1GTAlgoBoardWriter.cc.

References a, edm::errors::Configuration, Exception, N, and mergeVDriftHistosByStation::name.

55  {
56  if (vec.size() != N) {
58  << "The parameter '" << name << "' should have " << N << " elements, but has " << vec.size()
59  << " elements in the configuration.\n";
60  }
61  std::array<T, N> a;
62  std::copy_n(std::make_move_iterator(vec.begin()), N, a.begin());
63  return a;
64 }
#define N
Definition: blowfish.cc:9
double a
Definition: hdecay.h:121

◆ s_filler_0__LINE__()

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

◆ s_maker__LINE__()

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