Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
* $Date: 2007/03/07 10:12:43 $
8
* $Revision: 1.3 $
9
* \author F. Cossutti
10
*
11
*/
12
13
#include "
FWCore/Framework/interface/EDProducer.h
"
14
#include "
DataFormats/Common/interface/EDProduct.h
"
15
#include "
FWCore/Framework/interface/Event.h
"
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
#include "
FWCore/Framework/interface/ESHandle.h
"
18
#include "
FWCore/Framework/interface/EventSetup.h
"
19
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
20
21
#include "
CondFormats/DataRecord/interface/EcalPedestalsRcd.h
"
22
#include "
CondFormats/EcalObjects/interface/EcalPedestals.h
"
23
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
24
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
25
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
26
27
#include "
SimCalorimetry/EcalZeroSuppressionAlgos/interface/TrivialAmplitudeAlgo.h
"
28
29
#include <vector>
30
31
template
<
class
C>
class
EcalZeroSuppressor
32
{
33
public
:
34
35
virtual
~EcalZeroSuppressor
(){};
36
37
// the threshold has to be expressed in number of noise sigmas for ADC counts in the highest gain
38
39
// bool accept(const C& frame, const double & threshold);
40
bool
accept
(
const
C
& frame,
const
double
&
threshold
);
41
43
void
setPedestals
(
const
EcalPedestals
* pedestals) {
thePedestals
= pedestals;}
44
45
private
:
46
47
const
EcalPedestals
*
thePedestals
;
48
49
void
findGain12Pedestal
(
const
DetId
& detId,
50
double
& pedestal,
double
&
width
);
51
52
TrivialAmplitudeAlgo<C>
theEnergy_
;
53
54
};
55
56
#include "EcalZeroSuppressor.icc"
57
#endif
EcalSubdetector.h
EcalZeroSuppressor::theEnergy_
TrivialAmplitudeAlgo< C > theEnergy_
Definition:
EcalZeroSuppressor.h:52
MessageLogger.h
EcalPedestals.h
Event.h
EventSetup.h
EcalZeroSuppressor::setPedestals
void setPedestals(const EcalPedestals *pedestals)
can be fetched every event from the EventSetup
Definition:
EcalZeroSuppressor.h:43
tablePrinter.width
int width
Definition:
tablePrinter.py:59
funct::C
C
Definition:
Factorize.h:141
EDProduct.h
EcalPedestalsRcd.h
ParameterSet.h
EcalZeroSuppressor::accept
bool accept(const C &frame, const double &threshold)
EcalZeroSuppressor::~EcalZeroSuppressor
virtual ~EcalZeroSuppressor()
Definition:
EcalZeroSuppressor.h:35
TrivialAmplitudeAlgo
Definition:
TrivialAmplitudeAlgo.h:28
CaloSubdetectorGeometry.h
EcalZeroSuppressor
Definition:
EcalZeroSuppressor.h:31
ESHandle.h
EcalDigiCollections.h
EDProducer.h
DetId
Definition:
DetId.h:20
TrivialAmplitudeAlgo.h
EcalZeroSuppressor::findGain12Pedestal
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:9
EcalZeroSuppressor::thePedestals
const EcalPedestals * thePedestals
Definition:
EcalZeroSuppressor.h:47
dtT0WireCalibration_cfg.threshold
tuple threshold
Definition:
dtT0WireCalibration_cfg.py:10
Generated for CMSSW Reference Manual by
1.8.5