CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 8 of file HcalTopologyRestrictionParser.cc.

References HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.

Referenced by HcalTopologyRestrictionParser::parse().

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