Main Page
Namespaces
Classes
Package Documentation
SimCalorimetry
HcalSimAlgos
interface
HPDIonFeedbackSim.h
Go to the documentation of this file.
1
2
// --------------------------------------------------------
3
// A class to simulated HPD ion feedback noise.
4
// The deliverable of the class is the ion feedback noise
5
// for an HcalDetId units of fC or GeV
6
//
7
// Project: HPD ion feedback
8
// Author: T.Yetkin University of Iowa, Feb. 16, 2010
9
// --------------------------------------------------------
10
11
#ifndef HcalSimAlgos_HPDIonFeedbackSim_h
12
#define HcalSimAlgos_HPDIonFeedbackSim_h
13
14
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
15
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
16
#include "
CalibFormats/HcalObjects/interface/HcalDbService.h
"
17
#include "
CalibFormats/CaloObjects/interface/CaloSamples.h
"
18
#include "
DataFormats/DetId/interface/DetId.h
"
19
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVPECorrection.h
"
20
21
class
CaloShapes
;
22
23
namespace
CLHEP
{
24
class
HepRandomEngine;
25
}
26
27
class
HPDIonFeedbackSim
:
public
CaloVPECorrection
28
{
29
public
:
31
HPDIonFeedbackSim
(
const
edm::ParameterSet
&,
const
CaloShapes
* shapes);
32
~
HPDIonFeedbackSim
()
override
;
33
34
//copied from HFSimParameters.h
35
void
setDbService
(
const
HcalDbService
*
service
) {theDbService = service;}
36
37
// in units of fC
38
double
correctPE(
const
DetId
& detId,
double
npe, CLHEP::HepRandomEngine*)
const override
;
39
double
getIonFeedback(
DetId
detId,
double
signal,
double
pedWidth,
bool
doThermal,
bool
isInGeV, CLHEP::HepRandomEngine*);
40
41
void
addThermalNoise(
CaloSamples
&
samples
, CLHEP::HepRandomEngine*);
42
43
private
:
44
double
fCtoGeV(
const
DetId
& detId)
const
;
45
const
HcalDbService
*
theDbService
;
46
const
CaloShapes
*
theShapes
;
47
};
48
#endif
HPDIonFeedbackSim
Definition:
HPDIonFeedbackSim.h:27
CaloShapes
Definition:
CaloShapes.h:9
HcalDbService
Definition:
HcalDbService.h:27
CaloSamples.h
ParameterSetfwd.h
CaloSamples
Definition:
CaloSamples.h:14
CaloVPECorrection.h
CLHEP
Definition:
CocoaGlobals.h:27
hcalTTPDigis_cfi.samples
samples
Definition:
hcalTTPDigis_cfi.py:8
HPDIonFeedbackSim::theDbService
const HcalDbService * theDbService
Definition:
HPDIonFeedbackSim.h:45
HcalDetId.h
service
Definition:
service.py:1
DetId
Definition:
DetId.h:18
CaloVPECorrection
Definition:
CaloVPECorrection.h:14
HPDIonFeedbackSim::theShapes
const CaloShapes * theShapes
Definition:
HPDIonFeedbackSim.h:46
edm::ParameterSet
Definition:
ParameterSet.h:36
HPDIonFeedbackSim::setDbService
void setDbService(const HcalDbService *service)
Definition:
HPDIonFeedbackSim.h:35
DetId.h
HcalDbService.h
Generated for CMSSW Reference Manual by
1.8.11