CMS 3D CMS Logo

Classes | Typedefs | Functions
l1tpf_calo Namespace Reference

Classes

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

Typedefs

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

Functions

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

Typedef Documentation

◆ EtaPhiCenterGrid

Definition at line 152 of file CaloClusterer.h.

◆ EtGrid

typedef GridData<float> l1tpf_calo::EtGrid

Definition at line 153 of file CaloClusterer.h.

◆ IndexGrid

Definition at line 154 of file CaloClusterer.h.

◆ PreClusterGrid

Definition at line 162 of file CaloClusterer.h.

Function Documentation

◆ getGrid()

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 }

◆ makeCaloLinker()

std::unique_ptr< l1tpf_calo::SimpleCaloLinkerBase > l1tpf_calo::makeCaloLinker ( const edm::ParameterSet pset,
const SingleCaloClusterer ecal,
const SingleCaloClusterer hcal 
)

Definition at line 802 of file CaloClusterer.cc.

References bsc_activity_cfg::ecal, Exception, hltEgammaHLTExtra_cfi::hcal, muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

804  {
805  const std::string &algo = pset.getParameter<std::string>("algo");
806  if (algo == "simple") {
807  return std::make_unique<l1tpf_calo::SimpleCaloLinker>(pset, ecal, hcal);
808  } else if (algo == "flat") {
809  return std::make_unique<l1tpf_calo::FlatCaloLinker>(pset, ecal, hcal);
810  } else if (algo == "combined") {
811  return std::make_unique<l1tpf_calo::CombinedCaloLinker>(pset, ecal, hcal);
812  } else {
813  throw cms::Exception("Configuration") << "Unsupported linker algo '" << algo << "'\n";
814  }
815 }