#include <CastorSimpleRecAlgo.h>
Public Member Functions | |
CastorSimpleRecAlgo (int firstSample, int samplesToAdd) | |
CastorSimpleRecAlgo (int firstSample, int samplesToAdd, bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs) | |
void | checkADCSaturation (CastorRecHit &rechit, const CastorDataFrame &digi, const int &maxADCvalue) const |
CastorRecHit | reconstruct (const CastorDataFrame &digi, const CastorCoder &coder, const CastorCalibrations &calibs) const |
void | recoverADCSaturation (CastorRecHit &rechit, const CastorCoder &coder, const CastorCalibrations &calibs, const CastorDataFrame &digi, const int &maxADCvalue, const double &satCorrConst) const |
void | resetTimeSamples (int f, int t) |
Private Attributes | |
bool | correctForTimeslew_ |
int | firstSample_ |
std::unique_ptr< CastorPulseContainmentCorrection > | pulseCorr_ |
int | samplesToAdd_ |
This class reconstructs RecHits from Digis for CASTOR 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.
Definition at line 22 of file CastorSimpleRecAlgo.h.
CastorSimpleRecAlgo::CastorSimpleRecAlgo | ( | int | firstSample, |
int | samplesToAdd, | ||
bool | correctForTimeslew, | ||
bool | correctForContainment, | ||
float | fixedPhaseNs | ||
) |
Full featured constructor for HB/HE and HO (HPD-based detectors)
Definition at line 10 of file CastorSimpleRecAlgo.cc.
References MaximumFractionalError, pulseCorr_, and samplesToAdd_.
CastorSimpleRecAlgo::CastorSimpleRecAlgo | ( | int | firstSample, |
int | samplesToAdd | ||
) |
void CastorSimpleRecAlgo::checkADCSaturation | ( | CastorRecHit & | rechit, |
const CastorDataFrame & | digi, | ||
const int & | maxADCvalue | ||
) | const |
Definition at line 170 of file CastorSimpleRecAlgo.cc.
References HcalCaloFlagLabels::ADCSaturationBit, firstSample_, castor_dqm_sourceclient-live_cfg::maxADCvalue, samplesToAdd_, and CaloRecHit::setFlagField().
Referenced by CastorSimpleReconstructor::produce().
CastorRecHit CastorSimpleRecAlgo::reconstruct | ( | const CastorDataFrame & | digi, |
const CastorCoder & | coder, | ||
const CastorCalibrations & | calibs | ||
) | const |
Definition at line 163 of file CastorSimpleRecAlgo.cc.
References CastorTimeSlew::Fast, firstSample_, and samplesToAdd_.
Referenced by CastorSimpleReconstructor::produce().
void CastorSimpleRecAlgo::recoverADCSaturation | ( | CastorRecHit & | rechit, |
const CastorCoder & | coder, | ||
const CastorCalibrations & | calibs, | ||
const CastorDataFrame & | digi, | ||
const int & | maxADCvalue, | ||
const double & | satCorrConst | ||
) | const |
Definition at line 178 of file CastorSimpleRecAlgo.cc.
References firstSample_, castor_dqm_sourceclient-live_cfg::maxADCvalue, samplesToAdd_, CaloRecHit::setFlagField(), and HcalCaloFlagLabels::UserDefinedBit0.
Referenced by CastorSimpleReconstructor::produce().
|
inline |
Definition at line 46 of file CastorSimpleRecAlgo.h.
References f, firstSample_, samplesToAdd_, and submitPVValidationJobs::t.
Referenced by CastorSimpleReconstructor::produce().
|
private |
Definition at line 53 of file CastorSimpleRecAlgo.h.
|
private |
Definition at line 52 of file CastorSimpleRecAlgo.h.
Referenced by checkADCSaturation(), reconstruct(), recoverADCSaturation(), and resetTimeSamples().
|
private |
Definition at line 54 of file CastorSimpleRecAlgo.h.
Referenced by CastorSimpleRecAlgo().
|
private |
Definition at line 52 of file CastorSimpleRecAlgo.h.
Referenced by CastorSimpleRecAlgo(), checkADCSaturation(), reconstruct(), recoverADCSaturation(), and resetTimeSamples().