SimCalorimetry
EcalZeroSuppressionAlgos
interface
TrivialAmplitudeAlgo.h
Go to the documentation of this file.
1
#ifndef EcalZeroSuppressionAlgos_TrivialAmplitudeAlgo_h
2
#define EcalZeroSuppressionAlgos_TrivialAmplitudeAlgo_h
3
4
/*
5
* \file TrivialAmplitudeAlgo.h
6
*
7
* \author F. Cossutti
8
*
9
* simple weights algorithm for energy and pedestal reconstruction
10
*
11
*/
12
13
#include "
FWCore/Framework/interface/EDProducer.h
"
14
#include "
FWCore/Framework/interface/ESHandle.h
"
15
#include "
FWCore/Framework/interface/Event.h
"
16
#include "
FWCore/Framework/interface/EventSetup.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
19
20
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
21
22
#include <vector>
23
24
template
<
class
C>
25
class
TrivialAmplitudeAlgo
{
26
public
:
27
explicit
TrivialAmplitudeAlgo
();
28
virtual
~TrivialAmplitudeAlgo
(){};
29
30
double
energy
(
const
C
&
frame
);
31
32
double
pedestal
(
const
C
&
frame
);
33
34
private
:
35
std::vector<double>
theWeights
;
36
std::vector<double>
theGainFactors
;
37
};
38
39
#include "TrivialAmplitudeAlgo.icc"
40
#endif
MessageLogger.h
EDProducer.h
ESHandle.h
TrivialAmplitudeAlgo::energy
double energy(const C &frame)
TrivialAmplitudeAlgo::theWeights
std::vector< double > theWeights
Definition:
TrivialAmplitudeAlgo.h:35
EcalDigiCollections.h
TrivialAmplitudeAlgo::theGainFactors
std::vector< double > theGainFactors
Definition:
TrivialAmplitudeAlgo.h:36
TrivialAmplitudeAlgo::TrivialAmplitudeAlgo
TrivialAmplitudeAlgo()
TrivialAmplitudeAlgo
Definition:
TrivialAmplitudeAlgo.h:25
Event.h
TrivialAmplitudeAlgo::pedestal
double pedestal(const C &frame)
TrivialAmplitudeAlgo::~TrivialAmplitudeAlgo
virtual ~TrivialAmplitudeAlgo()
Definition:
TrivialAmplitudeAlgo.h:28
gen::C
C
Definition:
PomwigHadronizer.cc:76
amptDefault_cfi.frame
frame
Definition:
amptDefault_cfi.py:12
EventSetup.h
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16