CalibCalorimetry
HcalAlgos
interface
HcalPulseContainmentManager.h
Go to the documentation of this file.
1
#ifndef CalibCalorimetry_HcalAlgos_HcalPulseContainmentManager_h
2
#define CalibCalorimetry_HcalAlgos_HcalPulseContainmentManager_h
3
4
#include "
CalibCalorimetry/HcalAlgos/interface/HcalPulseContainmentCorrection.h
"
5
#include "
CalibCalorimetry/HcalAlgos/interface/HcalPulseShapes.h
"
6
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
7
#include "
CalibCalorimetry/HcalAlgos/interface/HcalTimeSlew.h
"
8
#include "
CondFormats/DataRecord/interface/HcalTimeSlewRecord.h
"
9
10
class
HcalPulseContainmentManager
{
11
public
:
12
// for callers not calling beginRun(EventSetup)
13
HcalPulseContainmentManager
(
float
max_fracerror);
14
// for callers calling beginRun(EventSetup)
15
HcalPulseContainmentManager
(
float
max_fracerror,
edm::ConsumesCollector
iC);
16
double
correction
(
const
HcalDetId
& detId,
int
toAdd
,
float
fixedphase_ns,
double
fc_ampl);
17
const
HcalPulseContainmentCorrection
*
get
(
const
HcalDetId
& detId,
int
toAdd
,
float
fixedphase_ns);
18
19
void
beginRun
(
edm::EventSetup
const
& es);
20
void
beginRun
(
const
HcalDbService
*
conditions
,
const
HcalTimeSlew
*
delay
);
21
22
void
setTimeSlew
(
const
HcalTimeSlew
* timeSlew) {
hcalTimeSlew_delay_
= timeSlew; }
23
24
private
:
25
struct
HcalPulseContainmentEntry
{
26
HcalPulseContainmentEntry
(
int
toAdd
,
27
float
fixedphase_ns,
28
const
HcalPulseShape
* shape,
29
const
HcalPulseContainmentCorrection
&
correction
)
30
:
toAdd_
(
toAdd
),
fixedphase_ns_
(fixedphase_ns),
shape_
(shape),
correction_
(
correction
) {}
31
int
toAdd_
;
32
float
fixedphase_ns_
;
33
const
HcalPulseShape
*
shape_
;
34
HcalPulseContainmentCorrection
correction_
;
35
};
36
37
std::vector<HcalPulseContainmentEntry>
entries_
;
38
HcalPulseShapes
shapes_
;
39
float
fixedphase_ns_
;
40
float
max_fracerror_
;
41
const
edm::ESGetToken<HcalTimeSlew, HcalTimeSlewRecord>
delayToken_
;
42
43
const
HcalTimeSlew
*
hcalTimeSlew_delay_
;
44
};
45
46
#endif
HcalPulseContainmentManager::shapes_
HcalPulseShapes shapes_
Definition:
HcalPulseContainmentManager.h:38
HcalPulseContainmentManager::HcalPulseContainmentEntry::toAdd_
int toAdd_
Definition:
HcalPulseContainmentManager.h:31
HcalPulseContainmentManager::entries_
std::vector< HcalPulseContainmentEntry > entries_
Definition:
HcalPulseContainmentManager.h:37
HcalPulseContainmentManager::max_fracerror_
float max_fracerror_
Definition:
HcalPulseContainmentManager.h:40
HcalPulseContainmentManager::setTimeSlew
void setTimeSlew(const HcalTimeSlew *timeSlew)
Definition:
HcalPulseContainmentManager.h:22
HcalPulseShapes
Definition:
HcalPulseShapes.h:22
HcalPulseShapes.h
HcalTimeSlew.h
HcalPulseContainmentManager::HcalPulseContainmentEntry::fixedphase_ns_
float fixedphase_ns_
Definition:
HcalPulseContainmentManager.h:32
HcalPulseContainmentCorrection
Definition:
HcalPulseContainmentCorrection.h:15
HcalPulseContainmentManager::HcalPulseContainmentEntry::shape_
const HcalPulseShape * shape_
Definition:
HcalPulseContainmentManager.h:33
HcalPulseContainmentManager::get
const HcalPulseContainmentCorrection * get(const HcalDetId &detId, int toAdd, float fixedphase_ns)
Definition:
HcalPulseContainmentManager.cc:48
HcalTimeSlew
Definition:
HcalTimeSlew.h:19
HcalPulseContainmentManager::fixedphase_ns_
float fixedphase_ns_
Definition:
HcalPulseContainmentManager.h:39
HcalPulseContainmentManager::HcalPulseContainmentEntry
Definition:
HcalPulseContainmentManager.h:25
HcalPulseContainmentManager::HcalPulseContainmentManager
HcalPulseContainmentManager(float max_fracerror)
Definition:
HcalPulseContainmentManager.cc:6
HcalDetId.h
HcalDetId
Definition:
HcalDetId.h:12
HcalPulseContainmentCorrection.h
HcalPulseContainmentManager::HcalPulseContainmentEntry::correction_
HcalPulseContainmentCorrection correction_
Definition:
HcalPulseContainmentManager.h:34
HcalPulseContainmentManager::hcalTimeSlew_delay_
const HcalTimeSlew * hcalTimeSlew_delay_
Definition:
HcalPulseContainmentManager.h:43
edm::EventSetup
Definition:
EventSetup.h:57
HcalPulseContainmentManager::HcalPulseContainmentEntry::HcalPulseContainmentEntry
HcalPulseContainmentEntry(int toAdd, float fixedphase_ns, const HcalPulseShape *shape, const HcalPulseContainmentCorrection &correction)
Definition:
HcalPulseContainmentManager.h:26
edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord >
HcalPulseShape
Definition:
HcalPulseShape.h:6
HcalDbService
Definition:
HcalDbService.h:26
submitPVValidationJobs.conditions
list conditions
Definition:
submitPVValidationJobs.py:674
HcalPulseContainmentManager
Definition:
HcalPulseContainmentManager.h:10
phase2TrackerDigitizer_cfi.delay
delay
Definition:
phase2TrackerDigitizer_cfi.py:49
HcalTimeSlewRecord.h
HcalPulseContainmentManager::correction
double correction(const HcalDetId &detId, int toAdd, float fixedphase_ns, double fc_ampl)
Definition:
HcalPulseContainmentManager.cc:29
HcalPulseContainmentManager::beginRun
void beginRun(edm::EventSetup const &es)
Definition:
HcalPulseContainmentManager.cc:17
HLT_FULL_cff.toAdd
toAdd
Definition:
HLT_FULL_cff.py:52184
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
HcalPulseContainmentManager::delayToken_
const edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord > delayToken_
Definition:
HcalPulseContainmentManager.h:41
Generated for CMSSW Reference Manual by
1.8.16