CMS 3D CMS Logo

Functions
HcalTopologyRestrictionParser.cc File Reference
#include "Geometry/CaloTopology/interface/HcalTopologyRestrictionParser.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 7 of file HcalTopologyRestrictionParser.cc.

7  {
8  if (item == "HB")
9  return HcalBarrel;
10  if (item == "HE")
11  return HcalEndcap;
12  if (item == "HF")
13  return HcalForward;
14  if (item == "HO")
15  return HcalOuter;
16  return (HcalSubdetector)0;
17 }

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

Referenced by HcalTopologyRestrictionParser::parse().

HcalBarrel
Definition: HcalAssistant.h:33
HcalOuter
Definition: HcalAssistant.h:35
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
HcalForward
Definition: HcalAssistant.h:36
HcalEndcap
Definition: HcalAssistant.h:34