L1Trigger
L1THGCal
plugins
geometries
TrivialGeometry.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1THGCal/interface/HGCalTriggerGeometryGenericMapping.h
"
2
3
class
TrivialGeometry
:
public
HGCalTriggerGeometryGenericMapping
{
4
public
:
5
TrivialGeometry
(
const
edm::ParameterSet
& conf) :
HGCalTriggerGeometryGenericMapping
(conf) {}
6
7
void
initialize
(
const
CaloGeometry
*)
final
{
8
constexpr
unsigned
nmodules = 6;
9
for
(
unsigned
i
= 0;
i
< nmodules; ++
i
) {
10
trigger_cells_to_modules_
[
i
] =
i
;
11
12
HGCalTriggerGeometry::TriggerCell::list_type
tc_empty;
13
trigger_cells_
[
i
] = std::make_unique<HGCalTriggerGeometry::TriggerCell>(
i
,
i
,
GlobalPoint
(), tc_empty, tc_empty);
14
15
HGCalTriggerGeometry::Module::list_type
mod_empty;
16
HGCalTriggerGeometry::Module::list_type
mod_comps = {
i
};
17
HGCalTriggerGeometry::Module::tc_map_type
map_empty;
18
modules_
[
i
] = std::make_unique<HGCalTriggerGeometry::Module>(
i
,
GlobalPoint
(), mod_empty, mod_comps, map_empty);
19
}
20
}
21
22
void
initialize
(
const
HGCalGeometry
*,
const
HGCalGeometry
*,
const
HGCalGeometry
*)
final
{}
23
void
initialize
(
const
HGCalGeometry
*,
const
HGCalGeometry
*,
const
HGCalGeometry
*,
const
HGCalGeometry
*)
final
{}
24
};
25
26
DEFINE_EDM_PLUGIN
(
HGCalTriggerGeometryFactory
,
TrivialGeometry
,
"TrivialGeometry"
);
TrivialGeometry::TrivialGeometry
TrivialGeometry(const edm::ParameterSet &conf)
Definition:
TrivialGeometry.cc:5
mps_fire.i
i
Definition:
mps_fire.py:355
HGCalTriggerGeometryGenericMapping.h
HGCalTriggerGeometryGenericMapping::trigger_cells_to_modules_
geom_map trigger_cells_to_modules_
Definition:
HGCalTriggerGeometryGenericMapping.h:139
HGCalTriggerGeometry::Module::tc_map_type
std::unordered_multimap< unsigned, unsigned > tc_map_type
Definition:
HGCalTriggerGeometryGenericMapping.h:61
CaloGeometry
Definition:
CaloGeometry.h:21
GlobalPoint
Global3DPoint GlobalPoint
Definition:
GlobalPoint.h:10
HGCalGeometry
Definition:
HGCalGeometry.h:30
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
HGCalTriggerGeometryGenericMapping
Definition:
HGCalTriggerGeometryGenericMapping.h:101
HGCalTriggerGeometry::Module::list_type
std::unordered_set< unsigned > list_type
Definition:
HGCalTriggerGeometryGenericMapping.h:60
edm::ParameterSet
Definition:
ParameterSet.h:36
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
TrivialGeometry
Definition:
TrivialGeometry.cc:3
HGCalTriggerGeometryGenericMapping::trigger_cells_
trigger_cell_map trigger_cells_
Definition:
HGCalTriggerGeometryGenericMapping.h:142
TrivialGeometry::initialize
void initialize(const CaloGeometry *) final
Definition:
TrivialGeometry.cc:7
TrivialGeometry::initialize
void initialize(const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *) final
Definition:
TrivialGeometry.cc:22
TrivialGeometry::initialize
void initialize(const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *) final
Definition:
TrivialGeometry.cc:23
HGCalTriggerGeometry::TriggerCell::list_type
std::unordered_set< unsigned > list_type
Definition:
HGCalTriggerGeometryGenericMapping.h:33
HGCalTriggerGeometryGenericMapping::modules_
module_map modules_
Definition:
HGCalTriggerGeometryGenericMapping.h:141
Generated for CMSSW Reference Manual by
1.8.16