#include <CastorSimpleRecAlgo.h>
Public Member Functions | |
CastorSimpleRecAlgo (int firstSample, int samplesToAdd, bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs) | |
CastorSimpleRecAlgo (int firstSample, int samplesToAdd) | |
CastorRecHit | reconstruct (const CastorDataFrame &digi, const CastorCoder &coder, const CastorCalibrations &calibs) const |
void | resetTimeSamples (int f, int t) |
Private Attributes | |
bool | correctForTimeslew_ |
int | firstSample_ |
std::auto_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 9 of file CastorSimpleRecAlgo.cc.
References MaximumFractionalError, pulseCorr_, and samplesToAdd_.
: firstSample_(firstSample), samplesToAdd_(samplesToAdd), correctForTimeslew_(correctForTimeslew) { if (correctForPulse) pulseCorr_=std::auto_ptr<CastorPulseContainmentCorrection>(new CastorPulseContainmentCorrection(samplesToAdd_,phaseNS,MaximumFractionalError)); }
CastorSimpleRecAlgo::CastorSimpleRecAlgo | ( | int | firstSample, |
int | samplesToAdd | ||
) |
Simple constructor for PMT-based detectors
Definition at line 17 of file CastorSimpleRecAlgo.cc.
: firstSample_(firstSample), samplesToAdd_(samplesToAdd), correctForTimeslew_(false) { }
CastorRecHit CastorSimpleRecAlgo::reconstruct | ( | const CastorDataFrame & | digi, |
const CastorCoder & | coder, | ||
const CastorCalibrations & | calibs | ||
) | const |
Definition at line 90 of file CastorSimpleRecAlgo.cc.
References CastorTimeSlew::Fast, firstSample_, and samplesToAdd_.
Referenced by CastorSimpleReconstructor::produce().
{ return CastorSimpleRecAlgoImpl::reco<CastorDataFrame,CastorRecHit>(digi,coder,calibs, firstSample_,samplesToAdd_,false, 0, CastorTimeSlew::Fast); }
void CastorSimpleRecAlgo::resetTimeSamples | ( | int | f, |
int | t | ||
) | [inline] |
Definition at line 32 of file CastorSimpleRecAlgo.h.
References f, firstSample_, samplesToAdd_, and lumiQTWidget::t.
Referenced by CastorSimpleReconstructor::produce().
{ firstSample_=f; samplesToAdd_=t; }
bool CastorSimpleRecAlgo::correctForTimeslew_ [private] |
Definition at line 38 of file CastorSimpleRecAlgo.h.
int CastorSimpleRecAlgo::firstSample_ [private] |
Definition at line 37 of file CastorSimpleRecAlgo.h.
Referenced by reconstruct(), and resetTimeSamples().
std::auto_ptr<CastorPulseContainmentCorrection> CastorSimpleRecAlgo::pulseCorr_ [private] |
Definition at line 39 of file CastorSimpleRecAlgo.h.
Referenced by CastorSimpleRecAlgo().
int CastorSimpleRecAlgo::samplesToAdd_ [private] |
Definition at line 37 of file CastorSimpleRecAlgo.h.
Referenced by CastorSimpleRecAlgo(), reconstruct(), and resetTimeSamples().