Main Page
Namespaces
Classes
Package Documentation
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/EDProducer.h
"
12
#include "
FWCore/Framework/interface/ESHandle.h
"
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
FWCore/Framework/interface/EventSetup.h
"
15
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
18
#include "
CondFormats/DataRecord/interface/EcalPedestalsRcd.h
"
19
#include "
CondFormats/EcalObjects/interface/EcalPedestals.h
"
20
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
21
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
22
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
23
24
#include "
SimCalorimetry/EcalZeroSuppressionAlgos/interface/TrivialAmplitudeAlgo.h
"
25
26
#include <vector>
27
28
template
<
class
C>
29
class
EcalZeroSuppressor
{
30
public
:
31
virtual
~EcalZeroSuppressor
(){};
32
33
// the threshold has to be expressed in number of noise sigmas for ADC counts
34
// in the highest gain
35
36
// bool accept(const C& frame, const double & threshold);
37
bool
accept
(
const
C
&
frame
,
const
double
&
threshold
);
38
40
void
setPedestals
(
const
EcalPedestals
*pedestals) {
thePedestals
= pedestals; }
41
42
private
:
43
const
EcalPedestals
*
thePedestals
;
44
45
void
findGain12Pedestal
(
const
DetId
&detId,
double
&
pedestal
,
double
&
width
);
46
47
TrivialAmplitudeAlgo<C>
theEnergy_
;
48
};
49
50
#include "EcalZeroSuppressor.icc"
51
#endif
EcalSubdetector.h
EcalZeroSuppressor::theEnergy_
TrivialAmplitudeAlgo< C > theEnergy_
Definition:
EcalZeroSuppressor.h:47
MessageLogger.h
frame
Definition:
G4muDarkBremsstrahlungModel.h:27
EcalPedestals.h
Event.h
EventSetup.h
EcalZeroSuppressor::setPedestals
void setPedestals(const EcalPedestals *pedestals)
can be fetched every event from the EventSetup
Definition:
EcalZeroSuppressor.h:40
EcalPedestalsRcd.h
ParameterSet.h
EcalZeroSuppressor::accept
bool accept(const C &frame, const double &threshold)
electronIdCutBased_cfi.threshold
threshold
Definition:
electronIdCutBased_cfi.py:6
EcalZeroSuppressor::~EcalZeroSuppressor
virtual ~EcalZeroSuppressor()
Definition:
EcalZeroSuppressor.h:31
TrivialAmplitudeAlgo
Definition:
TrivialAmplitudeAlgo.h:25
patCaloMETCorrections_cff.C
C
Definition:
patCaloMETCorrections_cff.py:45
CaloSubdetectorGeometry.h
EcalZeroSuppressor
Definition:
EcalZeroSuppressor.h:29
ESHandle.h
EcalDigiCollections.h
EDProducer.h
DetId
Definition:
DetId.h:18
ApeEstimator_cff.width
width
Definition:
ApeEstimator_cff.py:24
muonCSCDigis_cfi.pedestal
pedestal
Definition:
muonCSCDigis_cfi.py:12
TrivialAmplitudeAlgo.h
EcalZeroSuppressor::findGain12Pedestal
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
EcalCondObjectContainer< EcalPedestal >
EcalZeroSuppressor::thePedestals
const EcalPedestals * thePedestals
Definition:
EcalZeroSuppressor.h:43
Generated for CMSSW Reference Manual by
1.8.11