CMS 3D CMS Logo

EcalRecHitSimpleAlgo Class Reference

Simple algoritm to make rechits from uncalibrated rechits. More...

#include <RecoLocalCalo/EcalRecAlgos/interface/EcalRecHitSimpleAlgo.h>

Inheritance diagram for EcalRecHitSimpleAlgo:

EcalRecHitAbsAlgo

List of all members.

Public Member Functions

 EcalRecHitSimpleAlgo ()
virtual EcalRecHit makeRecHit (const EcalUncalibratedRecHit &uncalibRH, const float &intercalibConstant) const
 Compute parameters.
virtual void setADCToGeVConstant (const float &value)
 Constructor.
virtual ~EcalRecHitSimpleAlgo ()

Private Attributes

float adcToGeVConstant_
bool adcToGeVConstantIsSet_


Detailed Description

Simple algoritm to make rechits from uncalibrated rechits.

Id
EcalRecHitSimpleAlgo.h,v 1.1 2006/03/10 08:38:19 rahatlou Exp
Date
2006/03/10 08:38:19
Revision
1.1
Author:
Shahram Rahatlou, University of Rome & INFN, March 2006

Definition at line 16 of file EcalRecHitSimpleAlgo.h.


Constructor & Destructor Documentation

EcalRecHitSimpleAlgo::EcalRecHitSimpleAlgo (  )  [inline]

Definition at line 19 of file EcalRecHitSimpleAlgo.h.

References adcToGeVConstant_, and adcToGeVConstantIsSet_.

00019                          {
00020     adcToGeVConstant_ = -1;
00021     adcToGeVConstantIsSet_ = false;
00022   }

virtual EcalRecHitSimpleAlgo::~EcalRecHitSimpleAlgo (  )  [inline, virtual]

Definition at line 31 of file EcalRecHitSimpleAlgo.h.

00031 { };


Member Function Documentation

virtual EcalRecHit EcalRecHitSimpleAlgo::makeRecHit ( const EcalUncalibratedRecHit uncalibRH,
const float &  intercalibConstant 
) const [inline, virtual]

Compute parameters.

Implements EcalRecHitAbsAlgo.

Definition at line 34 of file EcalRecHitSimpleAlgo.h.

References adcToGeVConstant_, adcToGeVConstantIsSet_, EcalUncalibratedRecHit::amplitude(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), relval_parameters_module::energy, EcalUncalibratedRecHit::id(), and EcalUncalibratedRecHit::jitter().

00035                                                                        {
00036 
00037     if(!adcToGeVConstantIsSet_) {
00038       std::cout << "EcalRecHitSimpleAlgo::makeRecHit: adcToGeVConstant_ not set before calling this method!" << 
00039                    " will use -1 and produce bogus rechits!" << std::endl;
00040     }
00041 
00042     float energy = uncalibRH.amplitude()*adcToGeVConstant_*intercalibConstant;
00043     float time   = uncalibRH.jitter();
00044 
00045     return EcalRecHit( uncalibRH.id(), energy, time );
00046   }

virtual void EcalRecHitSimpleAlgo::setADCToGeVConstant ( const float &  value  )  [inline, virtual]

Constructor.

Destructor make rechits from dataframes

Implements EcalRecHitAbsAlgo.

Definition at line 24 of file EcalRecHitSimpleAlgo.h.

References adcToGeVConstant_, and adcToGeVConstantIsSet_.

00024                                                        {
00025     adcToGeVConstant_ = value;
00026     adcToGeVConstantIsSet_ = true;
00027   }


Member Data Documentation

float EcalRecHitSimpleAlgo::adcToGeVConstant_ [private]

Definition at line 49 of file EcalRecHitSimpleAlgo.h.

Referenced by EcalRecHitSimpleAlgo(), makeRecHit(), and setADCToGeVConstant().

bool EcalRecHitSimpleAlgo::adcToGeVConstantIsSet_ [private]

Definition at line 50 of file EcalRecHitSimpleAlgo.h.

Referenced by EcalRecHitSimpleAlgo(), makeRecHit(), and setADCToGeVConstant().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:51 2009 for CMSSW by  doxygen 1.5.4