CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/L1TriggerConfig/L1GtConfigProducers/src/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 39 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().

{
    std::vector<L1GtObject> chInputObjectsV;
    chInputObjectsV.reserve(chInputStrings.size());

    L1GtObject obj;

    for (std::vector<std::string>::const_iterator itObj =
            chInputStrings.begin(); itObj != chInputStrings.end(); ++itObj) {

        if ((*itObj) == "Mu") {
            obj = Mu;
        }
        else if ((*itObj) == "NoIsoEG") {
            obj = NoIsoEG;
        }
        else if ((*itObj) == "IsoEG") {
            obj = IsoEG;
        }
        else if ((*itObj) == "CenJet") {
            obj = CenJet;
        }
        else if ((*itObj) == "ForJet") {
            obj = ForJet;
        }
        else if ((*itObj) == "TauJet") {
            obj = TauJet;
        }
        else if ((*itObj) == "ETM") {
            obj = ETM;
        }
        else if ((*itObj) == "ETT") {
            obj = ETT;
        }
        else if ((*itObj) == "HTT") {
            obj = HTT;
        }
        else if ((*itObj) == "HTM") {
            obj = HTM;
        }
        else if ((*itObj) == "JetCounts") {
            obj = JetCounts;
        }
        else if ((*itObj) == "HfBitCounts") {
            obj = HfBitCounts;
        }
        else if ((*itObj) == "HfRingEtSums") {
            obj = HfRingEtSums;
        }
        else if ((*itObj) == "TechTrig") {
            obj = TechTrig;
        }
        else if ((*itObj) == "BPTX") {
            obj = BPTX;
        }
        else if ((*itObj) == "GtExternal") {
            obj = GtExternal;
        }
        else {
            throw cms::Exception("Configuration")
                    << "\nError: no such L1 GT object: " << (*itObj) << "\n"
                    << "\n       Can not define the mapping of the L1 GT boards.     \n"
                    << std::endl;

        }

        chInputObjectsV.push_back(obj);
    }

    return chInputObjectsV;
}