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.

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().

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 }
Definition: L1GtObject.h:38
Definition: L1GtObject.h:35
Definition: L1GtObject.h:37
Definition: L1GtObject.h:29
Definition: L1GtObject.h:36