CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/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;
}