src
SimCalorimetry
EcalZeroSuppressionAlgos
interface
EcalZeroSuppressor.h
Go to the documentation of this file.
1
#ifndef EcalZeroSuppressionAlgos_EcalZeroSuppressor_h
2
#define EcalZeroSuppressionAlgos_EcalZeroSuppressor_h
3
4
/*
5
* \file EcalZeroSuppressor.h
6
*
7
* \author F. Cossutti
8
*
9
*/
10
11
#include "
FWCore/Framework/interface/ESHandle.h
"
12
#include "
FWCore/Framework/interface/Event.h
"
13
#include "
FWCore/Framework/interface/EventSetup.h
"
14
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
15
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
16
17
#include "
CondFormats/DataRecord/interface/EcalPedestalsRcd.h
"
18
#include "
CondFormats/EcalObjects/interface/EcalPedestals.h
"
19
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
20
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
21
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
22
23
#include "
SimCalorimetry/EcalZeroSuppressionAlgos/interface/TrivialAmplitudeAlgo.h
"
24
25
#include <vector>
26
27
template
<
class
C>
28
class
EcalZeroSuppressor
{
29
public
:
30
virtual
~EcalZeroSuppressor
(){};
31
32
// the threshold has to be expressed in number of noise sigmas for ADC counts
33
// in the highest gain
34
35
// bool accept(const C& frame, const double & threshold);
36
bool
accept
(
const
C
&
frame
,
const
double
&
threshold
);
37
39
void
setPedestals
(
const
EcalPedestals
*pedestals) {
thePedestals
= pedestals; }
40
41
private
:
42
const
EcalPedestals
*
thePedestals
;
43
44
void
findGain12Pedestal
(
const
DetId
&detId,
double
&
pedestal
,
double
&
width
);
45
46
TrivialAmplitudeAlgo<C>
theEnergy_
;
47
};
48
49
#include "EcalZeroSuppressor.icc"
50
#endif
EcalSubdetector.h
EcalZeroSuppressor::theEnergy_
TrivialAmplitudeAlgo< C > theEnergy_
Definition:
EcalZeroSuppressor.h:46
frame
Definition:
G4muDarkBremsstrahlungModel.h:27
MessageLogger.h
remoteMonitoring_LASER_era2018_cfg.threshold
threshold
Definition:
remoteMonitoring_LASER_era2018_cfg.py:582
EcalPedestals.h
Event.h
EventSetup.h
EcalZeroSuppressor::setPedestals
void setPedestals(const EcalPedestals *pedestals)
can be fetched every event from the EventSetup
Definition:
EcalZeroSuppressor.h:39
EcalPedestalsRcd.h
EcalCondDBWriter_cfi.pedestal
pedestal
Definition:
EcalCondDBWriter_cfi.py:49
ParameterSet.h
EcalZeroSuppressor::accept
bool accept(const C &frame, const double &threshold)
EcalZeroSuppressor::~EcalZeroSuppressor
virtual ~EcalZeroSuppressor()
Definition:
EcalZeroSuppressor.h:30
TrivialAmplitudeAlgo
Definition:
TrivialAmplitudeAlgo.h:24
CaloSubdetectorGeometry.h
EcalZeroSuppressor
Definition:
EcalZeroSuppressor.h:28
ESHandle.h
EcalDigiCollections.h
correctionTermsCaloMet_cff.C
C
Definition:
correctionTermsCaloMet_cff.py:34
DetId
Definition:
DetId.h:17
ApeEstimator_cff.width
width
Definition:
ApeEstimator_cff.py:24
TrivialAmplitudeAlgo.h
EcalZeroSuppressor::findGain12Pedestal
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
EcalZeroSuppressor::thePedestals
const EcalPedestals * thePedestals
Definition:
EcalZeroSuppressor.h:42
Generated for CMSSW Reference Manual by
1.8.14