CMS 3D CMS Logo

CastorSimpleRecAlgo Class Reference

This class reconstructs RecHits from Digis for CASTOR by addition of selected time samples, pedestal subtraction, and gain application. More...

#include <RecoLocalCalo/CastorReco/interface/CastorSimpleRecAlgo.h>

List of all members.

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_


Detailed Description

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.

Author:
P. Katsas (Univ. of Athens)

Definition at line 21 of file CastorSimpleRecAlgo.h.


Constructor & Destructor Documentation

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 }

CastorSimpleRecAlgo::CastorSimpleRecAlgo ( int  firstSample,
int  samplesToAdd 
)

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 }


Member Function Documentation

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 }


Member Data Documentation

bool CastorSimpleRecAlgo::correctForTimeslew_ [private]

Definition at line 33 of file CastorSimpleRecAlgo.h.

int CastorSimpleRecAlgo::firstSample_ [private]

Definition at line 32 of file CastorSimpleRecAlgo.h.

Referenced by reconstruct().

std::auto_ptr<CastorPulseContainmentCorrection> CastorSimpleRecAlgo::pulseCorr_ [private]

Definition at line 34 of file CastorSimpleRecAlgo.h.

Referenced by CastorSimpleRecAlgo().

int CastorSimpleRecAlgo::samplesToAdd_ [private]

Definition at line 32 of file CastorSimpleRecAlgo.h.

Referenced by CastorSimpleRecAlgo(), and reconstruct().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:15 2009 for CMSSW by  doxygen 1.5.4