Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoLocalCalo
HGCalRecAlgos
interface
HGCalUncalibRecHitRecWeightsAlgo.h
Go to the documentation of this file.
1
#ifndef RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH
2
#define RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH
3
13
#include "
RecoLocalCalo/HGCalRecAlgos/interface/HGCalUncalibRecHitRecAbsAlgo.h
"
14
#include <vector>
15
16
template
<
class
C>
class
HGCalUncalibRecHitRecWeightsAlgo
17
{
18
public
:
19
// destructor
20
virtual
~
HGCalUncalibRecHitRecWeightsAlgo<C>
() { };
21
23
virtual
HGCUncalibratedRecHit
makeRecHit
(
const
C
& dataFrame ) {
24
double
amplitude_(-1.), pedestal_(-1.), jitter_(-1.), chi2_(-1.);
25
uint32_t flag = 0;
26
double
energy
= 0;
27
28
for
(
int
iSample = 0 ; iSample < dataFrame.size(); ++iSample) {
29
energy += double(dataFrame.sample(iSample).adc());
30
}
31
32
amplitude_ =
energy
;
// fast-track simhits propagation
33
34
return
HGCUncalibratedRecHit
( dataFrame.id(), amplitude_,
35
pedestal_, jitter_, chi2_, flag);
36
}
37
};
38
#endif
HGCalUncalibRecHitRecAbsAlgo.h
HGCUncalibratedRecHit
Definition:
HGCUncalibratedRecHit.h:7
funct::C
C
Definition:
Factorize.h:141
HGCalUncalibRecHitRecWeightsAlgo::makeRecHit
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame)
Compute parameters.
Definition:
HGCalUncalibRecHitRecWeightsAlgo.h:23
relval_parameters_module.energy
string energy
Definition:
relval_parameters_module.py:29
HGCalUncalibRecHitRecWeightsAlgo
Definition:
HGCalUncalibRecHitRecWeightsAlgo.h:16
Generated for CMSSW Reference Manual by
1.8.5