test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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/Event.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
#include "
FWCore/Framework/interface/ESHandle.h
"
15
#include "
FWCore/Framework/interface/EventSetup.h
"
16
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
17
18
#include "
CondFormats/DataRecord/interface/EcalPedestalsRcd.h
"
19
#include "
CondFormats/EcalObjects/interface/EcalPedestals.h
"
20
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
21
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
22
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
23
24
#include "
SimCalorimetry/EcalZeroSuppressionAlgos/interface/TrivialAmplitudeAlgo.h
"
25
26
#include <vector>
27
28
template
<
class
C>
class
EcalZeroSuppressor
29
{
30
public
:
31
32
virtual
~EcalZeroSuppressor
(){};
33
34
// the threshold has to be expressed in number of noise sigmas for ADC counts 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
44
const
EcalPedestals
*
thePedestals
;
45
46
void
findGain12Pedestal
(
const
DetId
& detId,
47
double
&
pedestal
,
double
&
width
);
48
49
TrivialAmplitudeAlgo<C>
theEnergy_
;
50
51
};
52
53
#include "EcalZeroSuppressor.icc"
54
#endif
EcalSubdetector.h
EcalZeroSuppressor::theEnergy_
TrivialAmplitudeAlgo< C > theEnergy_
Definition:
EcalZeroSuppressor.h:49
MessageLogger.h
create_public_lumi_plots.width
int width
Definition:
create_public_lumi_plots.py:1009
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
EcalCondDBWriter_cfi.pedestal
string pedestal
Definition:
EcalCondDBWriter_cfi.py:48
funct::C
C
Definition:
Factorize.h:141
EcalPedestalsRcd.h
ParameterSet.h
EcalZeroSuppressor::accept
bool accept(const C &frame, const double &threshold)
EcalZeroSuppressor::~EcalZeroSuppressor
virtual ~EcalZeroSuppressor()
Definition:
EcalZeroSuppressor.h:32
TrivialAmplitudeAlgo
Definition:
TrivialAmplitudeAlgo.h:25
CaloSubdetectorGeometry.h
EcalZeroSuppressor
Definition:
EcalZeroSuppressor.h:28
ESHandle.h
dtDQMClient_cfg.threshold
tuple threshold
Definition:
dtDQMClient_cfg.py:16
EcalDigiCollections.h
EDProducer.h
DetId
Definition:
DetId.h:18
TrivialAmplitudeAlgo.h
EcalZeroSuppressor::findGain12Pedestal
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
EcalCondObjectContainer< EcalPedestal >
EcalZeroSuppressor::thePedestals
const EcalPedestals * thePedestals
Definition:
EcalZeroSuppressor.h:44
Generated for CMSSW Reference Manual by
1.8.5