SimCalorimetry
HcalZeroSuppressionProducers
src
HcalZeroSuppressionAlgo.h
Go to the documentation of this file.
1
#ifndef SimCalorimetry_HcalZeroSuppressionAlgos_HCALZEROSUPPESSIONALGO_H
2
#define SimCalorimetry_HcalZeroSuppressionAlgos_HCALZEROSUPPESSIONALGO_H 1
3
4
#include "
CalibFormats/HcalObjects/interface/HcalDbRecord.h
"
5
#include "
CalibFormats/HcalObjects/interface/HcalDbService.h
"
6
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
7
13
class
HcalDbService
;
14
15
class
HcalZeroSuppressionAlgo
{
16
public
:
17
virtual
~HcalZeroSuppressionAlgo
() =
default
;
18
void
suppress
(
const
HBHEDigiCollection
&
input
,
HBHEDigiCollection
&
output
);
19
void
suppress
(
const
HODigiCollection
&
input
,
HODigiCollection
&
output
);
20
void
suppress
(
const
HFDigiCollection
&
input
,
HFDigiCollection
&
output
);
21
void
suppress
(
const
QIE10DigiCollection
&
input
,
QIE10DigiCollection
&
output
);
22
void
suppress
(
const
QIE11DigiCollection
&
input
,
QIE11DigiCollection
&
output
);
23
virtual
bool
shouldKeep
(
const
HBHEDataFrame
&digi)
const
= 0;
24
virtual
bool
shouldKeep
(
const
HODataFrame
&digi)
const
= 0;
25
virtual
bool
shouldKeep
(
const
HFDataFrame
&digi)
const
= 0;
26
virtual
bool
shouldKeep
(
const
QIE10DataFrame
&digi)
const
= 0;
27
virtual
bool
shouldKeep
(
const
QIE11DataFrame
&digi)
const
= 0;
28
void
setDbService
(
const
HcalDbService
*
db
) {
m_dbService
=
db
; }
29
void
clearDbService
() {
m_dbService
=
nullptr
; }
30
// template <class DIGI> bool keepMe(const DIGI& inp, int threshold);
31
32
protected
:
33
HcalZeroSuppressionAlgo
(
bool
markAndPass
);
34
const
HcalDbService
*
m_dbService
;
35
36
private
:
37
bool
m_markAndPass
;
38
};
39
40
#endif
HcalZeroSuppressionAlgo::shouldKeep
virtual bool shouldKeep(const HBHEDataFrame &digi) const =0
input
static const std::string input
Definition:
EdmProvDump.cc:48
HcalDataFrameContainer
Definition:
HcalDigiCollections.h:35
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:32
edm::SortedCollection
Definition:
SortedCollection.h:49
HcalZeroSuppressionAlgo
Definition:
HcalZeroSuppressionAlgo.h:15
dqmiodatasetharvest.db
db
Definition:
dqmiodatasetharvest.py:119
HcalDigiCollections.h
DigiNZS_cff.markAndPass
markAndPass
Definition:
DigiNZS_cff.py:6
HcalDbRecord.h
HBHEDataFrame
Definition:
HBHEDataFrame.h:14
HFDataFrame
Definition:
HFDataFrame.h:14
HcalZeroSuppressionAlgo::clearDbService
void clearDbService()
Definition:
HcalZeroSuppressionAlgo.h:29
HcalZeroSuppressionAlgo::m_markAndPass
bool m_markAndPass
Definition:
HcalZeroSuppressionAlgo.h:37
HcalZeroSuppressionAlgo::HcalZeroSuppressionAlgo
HcalZeroSuppressionAlgo(bool markAndPass)
Definition:
HcalZeroSuppressionAlgo.cc:3
HcalDbService
Definition:
HcalDbService.h:26
QIE10DataFrame
Definition:
QIE10DataFrame.h:11
HODataFrame
Definition:
HODataFrame.h:14
QIE11DataFrame
Definition:
QIE11DataFrame.h:11
HcalZeroSuppressionAlgo::~HcalZeroSuppressionAlgo
virtual ~HcalZeroSuppressionAlgo()=default
HcalDbService.h
HcalZeroSuppressionAlgo::setDbService
void setDbService(const HcalDbService *db)
Definition:
HcalZeroSuppressionAlgo.h:28
HcalZeroSuppressionAlgo::m_dbService
const HcalDbService * m_dbService
Definition:
HcalZeroSuppressionAlgo.h:34
HcalZeroSuppressionAlgo::suppress
void suppress(const HBHEDigiCollection &input, HBHEDigiCollection &output)
Definition:
HcalZeroSuppressionAlgo.cc:5
Generated for CMSSW Reference Manual by
1.8.16