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

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, hgcalPlots::obj, TauJet, and TechTrig.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

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