Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:40

0001 #ifndef RecoLocalCalo_EcalRecAlgos_ESRecHitAnalyticAlgo_HH
0002 #define RecoLocalCalo_EcalRecAlgos_ESRecHitAnalyticAlgo_HH
0003 
0004 #include "DataFormats/EcalDigi/interface/ESDataFrame.h"
0005 #include "DataFormats/EcalRecHit/interface/EcalRecHit.h"
0006 #include "CondFormats/ESObjects/interface/ESPedestals.h"
0007 #include "CondFormats/ESObjects/interface/ESIntercalibConstants.h"
0008 #include "CondFormats/ESObjects/interface/ESChannelStatus.h"
0009 #include "CondFormats/ESObjects/interface/ESRecHitRatioCuts.h"
0010 #include "CondFormats/ESObjects/interface/ESAngleCorrectionFactors.h"
0011 
0012 class ESRecHitAnalyticAlgo {
0013 public:
0014   ESRecHitAnalyticAlgo();
0015   ~ESRecHitAnalyticAlgo();
0016 
0017   void setESGain(const double& value) { gain_ = value; }
0018   void setMIPGeV(const double& value) { MIPGeV_ = value; }
0019   void setPedestals(const ESPedestals* peds) { peds_ = peds; }
0020   void setIntercalibConstants(const ESIntercalibConstants* mips) { mips_ = mips; }
0021   void setChannelStatus(const ESChannelStatus* status) { channelStatus_ = status; }
0022   void setRatioCuts(const ESRecHitRatioCuts* ratioCuts) { ratioCuts_ = ratioCuts; }
0023   void setAngleCorrectionFactors(const ESAngleCorrectionFactors* ang) { ang_ = ang; }
0024   double* EvalAmplitude(const ESDataFrame& digi, double ped) const;
0025   EcalRecHit reconstruct(const ESDataFrame& digi) const;
0026 
0027 private:
0028   double gain_;
0029   const ESPedestals* peds_;
0030   const ESIntercalibConstants* mips_;
0031   const ESChannelStatus* channelStatus_;
0032   const ESRecHitRatioCuts* ratioCuts_;
0033   const ESAngleCorrectionFactors* ang_;
0034   double MIPGeV_;
0035 };
0036 
0037 #endif