src
L1Trigger
L1THGCal
interface
HGCalProcessorBaseT.h
Go to the documentation of this file.
1
#ifndef __L1Trigger_L1THGCal_HGCalProcessorBaseT_h__
2
#define __L1Trigger_L1THGCal_HGCalProcessorBaseT_h__
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
DataFormats/Common/interface/Handle.h
"
6
7
#include "
L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h
"
8
9
template
<
typename
InputCollection,
typename
OutputCollection>
10
class
HGCalProcessorBaseT
{
11
public
:
12
HGCalProcessorBaseT
(
const
edm::ParameterSet
& conf)
13
:
geometry_
(nullptr),
name_
(conf.getParameter<
std
::
string
>(
"ProcessorName"
)) {}
14
15
virtual
~HGCalProcessorBaseT
() {}
16
17
const
std::string
&
name
()
const
{
return
name_
; }
18
19
virtual
void
setGeometry
(
const
HGCalTriggerGeometryBase
*
const
geom
) {
geometry_
=
geom
; }
20
21
virtual
void
run
(
const
InputCollection
&
inputColl
,
OutputCollection
&
outColl
) = 0;
22
23
protected
:
24
const
HGCalTriggerGeometryBase
*
geometry
()
const
{
25
if
(!
geometry_
)
26
throw
cms::Exception
(
"HGCTriggerSetupError"
) <<
"The geometry has not been set in processor "
<<
name_
;
27
return
geometry_
;
28
}
29
30
private
:
31
const
HGCalTriggerGeometryBase
*
geometry_
;
32
const
std::string
name_
;
33
};
34
35
#endif
HGCalTriggerGeometryBase
Definition:
HGCalTriggerGeometryBase.h:16
Exception
Definition:
hltDiff.cc:245
ecalCompactTrigPrim_cfi.outColl
outColl
Definition:
ecalCompactTrigPrim_cfi.py:6
HGCalProcessorBaseT::geometry_
const HGCalTriggerGeometryBase * geometry_
Definition:
HGCalProcessorBaseT.h:31
std
Definition:
JetResolutionObject.h:76
HGCalProcessorBaseT
Definition:
HGCalProcessorBaseT.h:10
HGCalProcessorBaseT::name
const std::string & name() const
Definition:
HGCalProcessorBaseT.h:17
HGCalProcessorBaseT::name_
const std::string name_
Definition:
HGCalProcessorBaseT.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
HLT_2023v12_cff.inputColl
inputColl
Definition:
HLT_2023v12_cff.py:17578
HGCalProcessorBaseT::~HGCalProcessorBaseT
virtual ~HGCalProcessorBaseT()
Definition:
HGCalProcessorBaseT.h:15
SimL1EmulatorRepack_Full_cff.InputCollection
InputCollection
Definition:
SimL1EmulatorRepack_Full_cff.py:101
HGCalProcessorBaseT::geometry
const HGCalTriggerGeometryBase * geometry() const
Definition:
HGCalProcessorBaseT.h:24
relativeConstraints.geom
geom
Definition:
relativeConstraints.py:72
HGCalProcessorBaseT::HGCalProcessorBaseT
HGCalProcessorBaseT(const edm::ParameterSet &conf)
Definition:
HGCalProcessorBaseT.h:12
HGCalProcessorBaseT::run
virtual void run(const InputCollection &inputColl, OutputCollection &outColl)=0
HGCalProcessorBaseT::setGeometry
virtual void setGeometry(const HGCalTriggerGeometryBase *const geom)
Definition:
HGCalProcessorBaseT.h:19
edm::ParameterSet
Definition:
ParameterSet.h:47
HGCalTriggerGeometryBase.h
HLTTauReferences_cfi.OutputCollection
OutputCollection
Definition:
HLTTauReferences_cfi.py:92
Handle.h
Generated for CMSSW Reference Manual by
1.8.14