#include <ZdcSimpleRecAlgo_Run3.h>
Public Member Functions | |
void | initCorrectionMethod (const int method, const int ZdcSection) |
void | initRatioSubtraction (const float ratio, const float frac, const int ZdcSection) |
void | initTemplateFit (const std::vector< unsigned int > &bxTs, const std::vector< double > &chargeRatios, const int nTs, const int ZdcSection) |
ZDCRecHit | reco0 (const QIE10DataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calibs, const HcalPedestal &effPeds, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS) const |
ZDCRecHit | reconstruct (const QIE10DataFrame &digi, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS, const HcalCoder &coder, const HcalCalibrations &calibs, const HcalPedestal &effPeds) const |
ZdcSimpleRecAlgo_Run3 (int recoMethod) | |
Private Attributes | |
std::map< int, int > | correctionMethod_ |
int | nTs_ |
std::map< int, float > | ootpuFrac_ |
std::map< int, float > | ootpuRatio_ |
int | recoMethod_ |
std::map< int, bool > | templateFitValid_ |
std::map< int, std::vector< double > > | templateFitValues_ |
This class reconstructs RecHits from Digis for ZDC by addition of selected time samples, pedestal subtraction, and gain application. The time of the hit is reconstructed using a weighted peak bin calculation supplemented by precise time lookup table. A consumer of this class also has the option of correcting the reconstructed time for energy-dependent time slew associated with the QIE.
A sencon method based on a based on a event by event substraction is also implelented. signal = (S4 + S5 - 2*(S1+S2+S3 + S7+S8+S9+S10))*(ft-Gev constant) where SN is the signal in the nth time slice
Definition at line 39 of file ZdcSimpleRecAlgo_Run3.h.
ZdcSimpleRecAlgo_Run3::ZdcSimpleRecAlgo_Run3 | ( | int | recoMethod | ) |
void ZdcSimpleRecAlgo_Run3::initCorrectionMethod | ( | const int | method, |
const int | ZdcSection | ||
) |
Definition at line 13 of file ZdcSimpleRecAlgo_Run3.cc.
References correctionMethod_, and AlcaSiPixelAliHarvester0T_cff::method.
Referenced by ZdcHitReconstructor_Run3::ZdcHitReconstructor_Run3().
void ZdcSimpleRecAlgo_Run3::initRatioSubtraction | ( | const float | ratio, |
const float | frac, | ||
const int | ZdcSection | ||
) |
Definition at line 55 of file ZdcSimpleRecAlgo_Run3.cc.
References DivergingColor::frac, ootpuFrac_, and ootpuRatio_.
Referenced by ZdcHitReconstructor_Run3::ZdcHitReconstructor_Run3().
void ZdcSimpleRecAlgo_Run3::initTemplateFit | ( | const std::vector< unsigned int > & | bxTs, |
const std::vector< double > & | chargeRatios, | ||
const int | nTs, | ||
const int | ZdcSection | ||
) |
Definition at line 19 of file ZdcSimpleRecAlgo_Run3.cc.
References a, b, mps_fire::i, dqmiolumiharvest::j, nTs_, push_back(), templateFitValid_, templateFitValues_, and heppy_batch::val.
Referenced by ZdcHitReconstructor_Run3::ZdcHitReconstructor_Run3().
ZDCRecHit ZdcSimpleRecAlgo_Run3::reco0 | ( | const QIE10DataFrame & | digi, |
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs, | ||
const HcalPedestal & | effPeds, | ||
const std::vector< unsigned int > & | myNoiseTS, | ||
const std::vector< unsigned int > & | mySignalTS | ||
) | const |
Definition at line 84 of file ZdcSimpleRecAlgo_Run3.cc.
References HcalCoder::adc2fC(), correctionMethod_, hcalRecHitTable_cff::energy, PedestalClient_cfi::gain, zdchelper::getNoiseOOTPURatio(), HcalPedestal::getValue(), HcalPedestal::getWidth(), QIE10DataFrame::id(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, LogDebug, SiStripPI::max, findQualityFiles::maxI, hgchebackDigitizer_cfi::noise, nTs_, ootpuFrac_, ootpuRatio_, QIE10Task_cfi::ped, HcalCalibrations::respcorrgain(), HcalZDCDetId::section(), ZDCRecHit::setEnergySOIp1(), CaloSamples::size(), QIE10DataFrame::size(), zdchelper::subPedestal(), templateFitValid_, templateFitValues_, hcalRecHitTable_cff::time, and ApeEstimator_cff::width.
Referenced by reconstruct().
ZDCRecHit ZdcSimpleRecAlgo_Run3::reconstruct | ( | const QIE10DataFrame & | digi, |
const std::vector< unsigned int > & | myNoiseTS, | ||
const std::vector< unsigned int > & | mySignalTS, | ||
const HcalCoder & | coder, | ||
const HcalCalibrations & | calibs, | ||
const HcalPedestal & | effPeds | ||
) | const |
Definition at line 260 of file ZdcSimpleRecAlgo_Run3.cc.
References Exception, and reco0().
Referenced by ZdcHitReconstructor_Run3::produce().
|
private |
Definition at line 71 of file ZdcSimpleRecAlgo_Run3.h.
Referenced by initCorrectionMethod(), and reco0().
|
private |
Definition at line 66 of file ZdcSimpleRecAlgo_Run3.h.
Referenced by initTemplateFit(), and reco0().
|
private |
Definition at line 70 of file ZdcSimpleRecAlgo_Run3.h.
Referenced by initRatioSubtraction(), and reco0().
|
private |
Definition at line 69 of file ZdcSimpleRecAlgo_Run3.h.
Referenced by initRatioSubtraction(), and reco0().
|
private |
Definition at line 65 of file ZdcSimpleRecAlgo_Run3.h.
|
private |
Definition at line 68 of file ZdcSimpleRecAlgo_Run3.h.
Referenced by initTemplateFit(), and reco0().
|
private |
Definition at line 67 of file ZdcSimpleRecAlgo_Run3.h.
Referenced by initTemplateFit(), and reco0().