CMS 3D CMS Logo

Functions
HcalTopologyRestrictionParser.cc File Reference
#include "Geometry/CaloTopology/interface/HcalTopologyRestrictionParser.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <boost/tokenizer.hpp>
#include <sstream>
#include <iostream>

Go to the source code of this file.

Functions

static HcalSubdetector determineSubdet (const std::string &item)
 

Function Documentation

◆ determineSubdet()

static HcalSubdetector determineSubdet ( const std::string &  item)
static

Definition at line 8 of file HcalTopologyRestrictionParser.cc.

References HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and B2GTnPMonitor_cfi::item.

Referenced by HcalTopologyRestrictionParser::parse().

8  {
9  if (item == "HB")
10  return HcalBarrel;
11  if (item == "HE")
12  return HcalEndcap;
13  if (item == "HF")
14  return HcalForward;
15  if (item == "HO")
16  return HcalOuter;
17  return (HcalSubdetector)0;
18 }
HcalSubdetector
Definition: HcalAssistant.h:31