CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/RecoTBCalo/EcalTBRecProducers/interface/EcalTBWeightUncalibRecHitProducer.h

Go to the documentation of this file.
00001 #ifndef RecoTBCalo_EcalTBRecProducers_EcalTBWeightUncalibRecHitProducer_HH
00002 #define RecoTBCalo_EcalTBRecProducers_EcalTBWeightUncalibRecHitProducer_HH
00003 
00004 #include "FWCore/Framework/interface/EDProducer.h"
00005 #include "FWCore/Utilities/interface/InputTag.h"
00006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00007 #include "FWCore/Framework/interface/Event.h"
00008 #include "FWCore/Framework/interface/EventSetup.h"
00009 
00010 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalUncalibRecHitRecWeightsAlgo.h"
00011 #include "DataFormats/EcalDigi/interface/EBDataFrame.h"
00012 #include "DataFormats/EcalDigi/interface/EEDataFrame.h"
00013 #include "TBDataFormats/EcalTBObjects/interface/EcalTBTDCRecInfo.h"
00014 #include "CondFormats/EcalObjects/interface/EcalWeight.h"
00015 #include "SimCalorimetry/EcalSimAlgos/interface/EBShape.h"
00016 #include "SimCalorimetry/EcalSimAlgos/interface/EEShape.h"
00017 
00018 
00019 // forward declaration
00020 class EcalTBWeightUncalibRecHitProducer : public edm::EDProducer {
00021 
00022   public:
00023     typedef std::vector<double> EcalRecoAmplitudes;
00024     explicit EcalTBWeightUncalibRecHitProducer(const edm::ParameterSet& ps);
00025     ~EcalTBWeightUncalibRecHitProducer();
00026     virtual void produce(edm::Event& evt, const edm::EventSetup& es);
00027 
00028   private:
00029 
00030     edm::InputTag EBdigiCollection_; // secondary name given to collection of digis
00031     edm::InputTag EEdigiCollection_; // secondary name given to collection of digis
00032     edm::InputTag tdcRecInfoCollection_; // secondary name given to collection of digis
00033 
00034     std::string EBhitCollection_; // secondary name to be given to collection of hit
00035     std::string EEhitCollection_; // secondary name to be given to collection of hit
00036 
00037     EcalUncalibRecHitRecWeightsAlgo<EBDataFrame> EBalgo_;
00038     EcalUncalibRecHitRecWeightsAlgo<EEDataFrame> EEalgo_;
00039 
00040     const EEShape testbeamEEShape;  
00041     const EBShape testbeamEBShape; 
00042 
00043 /*     HepMatrix makeMatrixFromVectors(const std::vector< std::vector<EcalWeight> >& vecvec); */
00044 /*     HepMatrix makeDummySymMatrix(int size); */
00045 
00046     int nbTimeBin_;
00047 
00048     //use 2004 convention for the TDC
00049     bool use2004OffsetConvention_; 
00050 
00051 /*     int nMaxPrintout_; // max # of printouts */
00052 /*     int counter_; // internal verbosity counter */
00053 
00054     //    bool counterExceeded() const { return ( (counter_>nMaxPrintout_) || (counter_<0) ) ; }
00055 };
00056 #endif