CMS 3D CMS Logo

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< SimpleCaloLinkerBasemakeCaloLinker (const edm::ParameterSet &pset, const SingleCaloClusterer &ecal, const SingleCaloClusterer &hcal)
 

Typedef Documentation

◆ EtGrid

typedef GridData<float> l1tpf_calo::EtGrid

Definition at line 149 of file CaloClusterer.h.

◆ IndexGrid

Definition at line 150 of file CaloClusterer.h.

◆ PreClusterGrid

Definition at line 158 of file CaloClusterer.h.

Function Documentation

◆ getGrid()

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

Definition at line 153 of file CaloClusterer.cc.

153  {
154  static const Phase1Grid _phase1Grid;
155  static const Phase2Grid _phase2Grid;
156  if (type == "phase1")
157  return &_phase1Grid;
158  else if (type == "phase2")
159  return &_phase2Grid;
160  else
161  throw cms::Exception("Configuration") << "Unsupported grid type '" << type << "'\n";
162 }

References Exception.

◆ makeCaloLinker()

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

Definition at line 625 of file CaloClusterer.cc.

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

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

hcal
Definition: ConfigurationDatabase.cc:13
cmsdt::algo
algo
Definition: constants.h:164
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
type
type
Definition: HCALResponse.h:21
Exception
Definition: hltDiff.cc:246
bsc_activity_cfg.ecal
ecal
Definition: bsc_activity_cfg.py:25
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27