#include <RecoLocalCalo/CastorReco/interface/CastorSimpleRecAlgo.h>
Public Member Functions | |
CastorSimpleRecAlgo (int firstSample, int samplesToAdd) | |
Simple constructor for PMT-based detectors. | |
CastorSimpleRecAlgo (int firstSample, int samplesToAdd, bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs) | |
Full featured constructor for HB/HE and HO (HPD-based detectors). | |
CastorRecHit | reconstruct (const CastorDataFrame &digi, const CastorCoder &coder, const CastorCalibrations &calibs) const |
Private Attributes | |
bool | correctForTimeslew_ |
int | firstSample_ |
std::auto_ptr < CastorPulseContainmentCorrection > | pulseCorr_ |
int | samplesToAdd_ |
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 21 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_.
00009 : 00010 firstSample_(firstSample), 00011 samplesToAdd_(samplesToAdd), 00012 correctForTimeslew_(correctForTimeslew) { 00013 if (correctForPulse) 00014 pulseCorr_=std::auto_ptr<CastorPulseContainmentCorrection>(new CastorPulseContainmentCorrection(samplesToAdd_,phaseNS,MaximumFractionalError)); 00015 }
Simple constructor for PMT-based detectors.
Definition at line 17 of file CastorSimpleRecAlgo.cc.
00017 : 00018 firstSample_(firstSample), 00019 samplesToAdd_(samplesToAdd), 00020 correctForTimeslew_(false) { 00021 }
CastorRecHit CastorSimpleRecAlgo::reconstruct | ( | const CastorDataFrame & | digi, | |
const CastorCoder & | coder, | |||
const CastorCalibrations & | calibs | |||
) | const |
Definition at line 87 of file CastorSimpleRecAlgo.cc.
References CastorTimeSlew::Fast, firstSample_, and samplesToAdd_.
Referenced by CastorSimpleReconstructor::produce().
00087 { 00088 return CastorSimpleRecAlgoImpl::reco<CastorDataFrame,CastorRecHit>(digi,coder,calibs, 00089 firstSample_,samplesToAdd_,false, 00090 0, 00091 CastorTimeSlew::Fast); 00092 }
bool CastorSimpleRecAlgo::correctForTimeslew_ [private] |
Definition at line 33 of file CastorSimpleRecAlgo.h.
int CastorSimpleRecAlgo::firstSample_ [private] |
std::auto_ptr<CastorPulseContainmentCorrection> CastorSimpleRecAlgo::pulseCorr_ [private] |
int CastorSimpleRecAlgo::samplesToAdd_ [private] |
Definition at line 32 of file CastorSimpleRecAlgo.h.
Referenced by CastorSimpleRecAlgo(), and reconstruct().