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 155 of file CaloClusterer.cc.

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 }

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 627 of file CaloClusterer.cc.

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 }

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