CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions
l1tpf_calo Namespace Reference

Classes

struct  Cluster
 
struct  CombinedCluster
 
class  FlatCaloLinker
 
class  Grid
 
class  GridData
 
class  Phase1Grid
 
class  Phase1GridBase
 
class  Phase2Grid
 
struct  PreCluster
 
class  SimpleCaloLinker
 
class  SimpleCaloLinkerBase
 
class  SingleCaloClusterer
 

Typedefs

typedef GridData< float > EtGrid
 
typedef GridData< int > IndexGrid
 
typedef GridData< PreClusterPreClusterGrid
 

Functions

const GridgetGrid (const std::string &type)
 
std::unique_ptr
< SimpleCaloLinkerBase
makeCaloLinker (const edm::ParameterSet &pset, const SingleCaloClusterer &ecal, const SingleCaloClusterer &hcal)
 

Typedef Documentation

typedef GridData<float> l1tpf_calo::EtGrid

Definition at line 149 of file CaloClusterer.h.

Definition at line 150 of file CaloClusterer.h.

Definition at line 158 of file CaloClusterer.h.

Function Documentation

const l1tpf_calo::Grid * l1tpf_calo::getGrid ( const std::string &  type)

Definition at line 155 of file CaloClusterer.cc.

References Exception.

155  {
156  static const Phase1Grid _phase1Grid;
157  static const Phase2Grid _phase2Grid;
158  if (type == "phase1")
159  return &_phase1Grid;
160  else if (type == "phase2")
161  return &_phase2Grid;
162  else
163  throw cms::Exception("Configuration") << "Unsupported grid type '" << type << "'\n";
164 }
std::unique_ptr< l1tpf_calo::SimpleCaloLinkerBase > l1tpf_calo::makeCaloLinker ( const edm::ParameterSet pset,
const SingleCaloClusterer &  ecal,
const SingleCaloClusterer &  hcal 
)

Definition at line 627 of file CaloClusterer.cc.

References digitizers_cfi::ecal, Exception, edm::ParameterSet::getParameter(), digitizers_cfi::hcal, TrackValidation_cff::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

629  {
630  const std::string &algo = pset.getParameter<std::string>("algo");
631  if (algo == "simple") {
632  return std::make_unique<l1tpf_calo::SimpleCaloLinker>(pset, ecal, hcal);
633  } else if (algo == "flat") {
634  return std::make_unique<l1tpf_calo::FlatCaloLinker>(pset, ecal, hcal);
635  } else {
636  throw cms::Exception("Configuration") << "Unsupported linker algo '" << algo << "'\n";
637  }
638 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303