RecoLocalCalo
HcalRecAlgos
interface
HcalHFStatusBitFromDigis.h
Go to the documentation of this file.
1
#ifndef HCALHFSTATUSFROMDIGIS_H
2
#define HCALHFSTATUSFROMDIGIS_H 1
3
4
#include "
DataFormats/HcalDigi/interface/HFDataFrame.h
"
5
#include "
DataFormats/HcalRecHit/interface/HFRecHit.h
"
6
#include "
DataFormats/METReco/interface/HcalCaloFlagLabels.h
"
7
#include "
CalibFormats/HcalObjects/interface/HcalCalibrations.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
#include "
CalibFormats/HcalObjects/interface/HcalCoderDb.h
"
10
18
class
HcalHFStatusBitFromDigis
{
19
public
:
21
HcalHFStatusBitFromDigis
();
22
HcalHFStatusBitFromDigis
(
const
edm::ParameterSet
& HFDigiTimeParams,
const
edm::ParameterSet
& HFTimeInWindowParams);
23
// Destructor
24
~HcalHFStatusBitFromDigis
();
25
26
// The important stuff! Methods for setting the status flag values
27
void
hfSetFlagFromDigi
(
HFRecHit
&
hf
,
const
HFDataFrame
& digi,
const
HcalCoder
& coder,
const
HcalCalibrations
&
calib
);
28
void
resetParamsFromDB
(
29
int
firstSample
,
int
samplesToAdd
,
int
expectedPeak,
double
minthreshold,
const
std::vector<double>& coef);
30
void
resetFlagTimeSamples
(
int
firstSample
,
int
samplesToAdd
,
int
expectedPeak);
31
32
private
:
33
// variables for cfg files
34
35
// VARIABLES FOR SETTING HFDigiTime FLAG
36
double
minthreshold_
;
37
// Reco Window
38
int
recoFirstSample_
;
39
int
recoSamplesToAdd_
;
40
// Special window for Igor's algorithm (not necessarily the same as reco window)
41
int
firstSample_
;
42
int
samplesToAdd_
;
43
int
expectedPeak_
;
44
45
// Coefficients used to determine energy ratio threshold:
46
// E_peak/(Etotal) > coef0_-exp(coef1_+coef2_*Energy+coef3_*E^2+...)
47
std::vector<double>
coef_
;
48
49
// VARIABLES FOR SETTING HFInTimeWindow FLAG
50
double
HFlongwindowEthresh_
;
51
std::vector<double>
HFlongwindowMinTime_
;
52
std::vector<double>
HFlongwindowMaxTime_
;
53
double
HFshortwindowEthresh_
;
54
std::vector<double>
HFshortwindowMinTime_
;
55
std::vector<double>
HFshortwindowMaxTime_
;
56
};
57
58
#endif
HFDataFrame.h
HcalCalibrations.h
HcalHFStatusBitFromDigis::HFshortwindowMaxTime_
std::vector< double > HFshortwindowMaxTime_
Definition:
HcalHFStatusBitFromDigis.h:55
HcalHFStatusBitFromDigis::HFshortwindowMinTime_
std::vector< double > HFshortwindowMinTime_
Definition:
HcalHFStatusBitFromDigis.h:54
castor_dqm_sourceclient-live_cfg.samplesToAdd
samplesToAdd
Definition:
castor_dqm_sourceclient-live_cfg.py:62
HcalHFStatusBitFromDigis::HcalHFStatusBitFromDigis
HcalHFStatusBitFromDigis()
Definition:
HcalHFStatusBitFromDigis.cc:8
HcalHFStatusBitFromDigis::recoFirstSample_
int recoFirstSample_
Definition:
HcalHFStatusBitFromDigis.h:38
HcalHFStatusBitFromDigis::hfSetFlagFromDigi
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
Definition:
HcalHFStatusBitFromDigis.cc:73
HcalCoderDb.h
HcalHFStatusBitFromDigis::samplesToAdd_
int samplesToAdd_
Definition:
HcalHFStatusBitFromDigis.h:42
photonIsolationHIProducer_cfi.hf
hf
Definition:
photonIsolationHIProducer_cfi.py:9
HFRecHit
Definition:
HFRecHit.h:11
HFRecHit.h
HcalHFStatusBitFromDigis::recoSamplesToAdd_
int recoSamplesToAdd_
Definition:
HcalHFStatusBitFromDigis.h:39
HcalHFStatusBitFromDigis::minthreshold_
double minthreshold_
Definition:
HcalHFStatusBitFromDigis.h:36
HcalCalibrations
Definition:
HcalCalibrations.h:9
HcalHFStatusBitFromDigis::expectedPeak_
int expectedPeak_
Definition:
HcalHFStatusBitFromDigis.h:43
HcalHFStatusBitFromDigis::coef_
std::vector< double > coef_
Definition:
HcalHFStatusBitFromDigis.h:47
calib
Definition:
CalibElectron.h:12
edm::ParameterSet
Definition:
ParameterSet.h:47
HcalCaloFlagLabels.h
castor_dqm_sourceclient-live_cfg.firstSample
firstSample
Definition:
castor_dqm_sourceclient-live_cfg.py:64
HcalHFStatusBitFromDigis::resetParamsFromDB
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
Definition:
HcalHFStatusBitFromDigis.cc:55
HcalHFStatusBitFromDigis::HFlongwindowEthresh_
double HFlongwindowEthresh_
Definition:
HcalHFStatusBitFromDigis.h:50
HcalHFStatusBitFromDigis::HFlongwindowMaxTime_
std::vector< double > HFlongwindowMaxTime_
Definition:
HcalHFStatusBitFromDigis.h:52
HFDataFrame
Definition:
HFDataFrame.h:14
HcalHFStatusBitFromDigis
Definition:
HcalHFStatusBitFromDigis.h:18
HcalHFStatusBitFromDigis::firstSample_
int firstSample_
Definition:
HcalHFStatusBitFromDigis.h:41
HcalCoder
Definition:
HcalCoder.h:19
HcalHFStatusBitFromDigis::HFlongwindowMinTime_
std::vector< double > HFlongwindowMinTime_
Definition:
HcalHFStatusBitFromDigis.h:51
ParameterSet.h
HcalHFStatusBitFromDigis::resetFlagTimeSamples
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
Definition:
HcalHFStatusBitFromDigis.cc:65
HcalHFStatusBitFromDigis::HFshortwindowEthresh_
double HFshortwindowEthresh_
Definition:
HcalHFStatusBitFromDigis.h:53
HcalHFStatusBitFromDigis::~HcalHFStatusBitFromDigis
~HcalHFStatusBitFromDigis()
Definition:
HcalHFStatusBitFromDigis.cc:53
Generated for CMSSW Reference Manual by
1.8.16