CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_4/src/Geometry/CaloTopology/src/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().

                                                              {
  if (item=="HB") return HcalBarrel;
  if (item=="HE") return HcalEndcap;
  if (item=="HF") return HcalForward;
  if (item=="HO") return HcalOuter;
  return (HcalSubdetector)0;
}