CMS 3D CMS Logo

Functions
L1GtBoardMapsTrivialProducer.cc File Reference
#include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtBoardMapsTrivialProducer.h"
#include <memory>
#include <string>
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "CondFormats/L1TObjects/interface/L1GtFwd.h"

Go to the source code of this file.

Functions

std::vector< L1GtObjectchInputObjects (const std::vector< std::string > &chInputStrings)
 

Function Documentation

◆ chInputObjects()

std::vector<L1GtObject> chInputObjects ( const std::vector< std::string > &  chInputStrings)

Definition at line 36 of file L1GtBoardMapsTrivialProducer.cc.

36  {
37  std::vector<L1GtObject> chInputObjectsV;
38  chInputObjectsV.reserve(chInputStrings.size());
39 
41 
42  for (std::vector<std::string>::const_iterator itObj = chInputStrings.begin(); itObj != chInputStrings.end();
43  ++itObj) {
44  if ((*itObj) == "Mu") {
45  obj = Mu;
46  } else if ((*itObj) == "NoIsoEG") {
47  obj = NoIsoEG;
48  } else if ((*itObj) == "IsoEG") {
49  obj = IsoEG;
50  } else if ((*itObj) == "CenJet") {
51  obj = CenJet;
52  } else if ((*itObj) == "ForJet") {
53  obj = ForJet;
54  } else if ((*itObj) == "TauJet") {
55  obj = TauJet;
56  } else if ((*itObj) == "ETM") {
57  obj = ETM;
58  } else if ((*itObj) == "ETT") {
59  obj = ETT;
60  } else if ((*itObj) == "HTT") {
61  obj = HTT;
62  } else if ((*itObj) == "HTM") {
63  obj = HTM;
64  } else if ((*itObj) == "JetCounts") {
65  obj = JetCounts;
66  } else if ((*itObj) == "HfBitCounts") {
67  obj = HfBitCounts;
68  } else if ((*itObj) == "HfRingEtSums") {
69  obj = HfRingEtSums;
70  } else if ((*itObj) == "TechTrig") {
71  obj = TechTrig;
72  } else if ((*itObj) == "BPTX") {
73  obj = BPTX;
74  } else if ((*itObj) == "GtExternal") {
75  obj = GtExternal;
76  } else {
77  throw cms::Exception("Configuration") << "\nError: no such L1 GT object: " << (*itObj) << "\n"
78  << "\n Can not define the mapping of the L1 GT boards. \n"
79  << std::endl;
80  }
81 
82  chInputObjectsV.push_back(obj);
83  }
84 
85  return chInputObjectsV;
86 }

References BPTX, CenJet, ETM, ETT, Exception, ForJet, GtExternal, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, JetCounts, Mu, NoIsoEG, getGTfromDQMFile::obj, TauJet, and TechTrig.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

HTM
Definition: L1GtObject.h:38
GtExternal
Definition: L1GtObject.h:45
ETM
Definition: L1GtObject.h:35
NoIsoEG
Definition: L1GtObject.h:30
IsoEG
Definition: L1GtObject.h:31
HTT
Definition: L1GtObject.h:37
HfBitCounts
Definition: L1GtObject.h:40
HfRingEtSums
Definition: L1GtObject.h:41
CenJet
Definition: L1GtObject.h:32
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
TechTrig
Definition: L1GtObject.h:42
TauJet
Definition: L1GtObject.h:34
ETT
Definition: L1GtObject.h:36
Mu
Definition: L1GtObject.h:29
Exception
Definition: hltDiff.cc:246
ForJet
Definition: L1GtObject.h:33
JetCounts
Definition: L1GtObject.h:39
BPTX
Definition: L1GtObject.h:44
L1GtObject