CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 7 of file HcalTopologyRestrictionParser.cc.

References HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.

Referenced by HcalTopologyRestrictionParser::parse().

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 }
HcalSubdetector
Definition: HcalAssistant.h:31