test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1GtBoardMapsTrivialProducer.cc File Reference
#include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtBoardMapsTrivialProducer.h"
#include <memory>
#include "boost/shared_ptr.hpp"
#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 37 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().

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