Main Page
Namespaces
Classes
Package Documentation
CalibCalorimetry
HcalAlgos
interface
HcalPulseContainmentCorrection.h
Go to the documentation of this file.
1
#ifndef CALIBCALORIMETRY_HCALALGOS_HCALPULSECONTAINMENTCORRECTION_H
2
#define CALIBCALORIMETRY_HCALALGOS_HCALPULSECONTAINMENTCORRECTION_H 1
3
4
#include <map>
5
class
HcalPulseShape
;
6
class
HcalTimeSlew
;
7
15
class
HcalPulseContainmentCorrection
{
16
public
:
17
HcalPulseContainmentCorrection
(
int
num_samples,
18
float
fixedphase_ns,
19
float
max_fracerror,
20
const
HcalTimeSlew
* hcalTimeSlew_delay);
21
HcalPulseContainmentCorrection
(
const
HcalPulseShape
* shape,
22
int
num_samples,
23
float
fixedphase_ns,
24
float
max_fracerror,
25
const
HcalTimeSlew
* hcalTimeSlew_delay);
26
double
getCorrection
(
double
fc_ampl)
const
;
27
double
fractionContained
(
double
fc_ampl)
const
{
return
1.0/this->
getCorrection
(fc_ampl); }
28
29
private
:
30
std::map<double,double>
mCorFactors_
;
31
};
32
33
#endif
HcalPulseContainmentCorrection::getCorrection
double getCorrection(double fc_ampl) const
Definition:
HcalPulseContainmentCorrection.cc:52
HcalPulseShape
Definition:
HcalPulseShape.h:6
HcalPulseContainmentCorrection
Definition:
HcalPulseContainmentCorrection.h:15
HcalTimeSlew
Definition:
HcalTimeSlew.h:19
HcalPulseContainmentCorrection::HcalPulseContainmentCorrection
HcalPulseContainmentCorrection(int num_samples, float fixedphase_ns, float max_fracerror, const HcalTimeSlew *hcalTimeSlew_delay)
Generate energy correction factors based on a predetermined phase of the hit + time slew...
Definition:
HcalPulseContainmentCorrection.cc:17
HcalPulseContainmentCorrection::mCorFactors_
std::map< double, double > mCorFactors_
Definition:
HcalPulseContainmentCorrection.h:30
HcalPulseContainmentCorrection::fractionContained
double fractionContained(double fc_ampl) const
Definition:
HcalPulseContainmentCorrection.h:27
Generated for CMSSW Reference Manual by
1.8.11