CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/SimCalorimetry/EcalZeroSuppressionProducers/interface/EcalZeroSuppressionProducer.h

Go to the documentation of this file.
00001 #ifndef ECALZEROSUPPRESSIONPRODUCER_H
00002 #define ECALZEROSUPPRESSIONPRODUCER_H
00003 
00004 #include "FWCore/Framework/interface/EDProducer.h"
00005 #include "FWCore/Framework/interface/Event.h"
00006 #include "DataFormats/Common/interface/Handle.h"
00007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00008 #include "FWCore/Framework/interface/ESHandle.h"
00009 #include "FWCore/Framework/interface/EventSetup.h"
00010 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
00011 #include "FWCore/Framework/interface/MakerMacros.h"
00012 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00013 #include "DataFormats/Provenance/interface/Provenance.h"
00014 #include "CondFormats/DataRecord/interface/EcalPedestalsRcd.h"
00015 #include "CondFormats/EcalObjects/interface/EcalPedestals.h"
00016 #include "CondFormats/EcalObjects/interface/EcalGainRatios.h"
00017 #include "CalibCalorimetry/EcalTrivialCondModules/interface/EcalTrivialConditionRetriever.h"
00018  
00019 
00020 #include "SimCalorimetry/EcalZeroSuppressionAlgos/interface/EcalZeroSuppressor.h"
00021 #include "SimCalorimetry/CaloSimAlgos/interface/CaloDigiCollectionSorter.h"
00022 
00023 class EcalZeroSuppressionProducer : public edm::EDProducer
00024 {
00025 public:
00026 
00027   // The following is not yet used, but will be the primary
00028   // constructor when the parameter set system is available.
00029   //
00030   explicit EcalZeroSuppressionProducer(const edm::ParameterSet& params);
00031   virtual ~EcalZeroSuppressionProducer();
00032 
00034   virtual void produce(edm::Event& event, const edm::EventSetup& eventSetup);
00035 
00036   void initCalibrations(const edm::EventSetup & eventSetup);
00037 
00038 private:
00039 
00040   double glbBarrelThreshold_;
00041   double glbEndcapThreshold_;
00042   
00043   std::string digiProducer_; // name of module/plugin/producer making digis
00044   std::string EBdigiCollection_; // secondary name given to collection of digis
00045   std::string EEdigiCollection_; // secondary name given to collection of digis
00046   std::string EBZSdigiCollection_; // secondary name given to collection of digis
00047   std::string EEZSdigiCollection_; // secondary name given to collection of digis
00048 
00049   EcalZeroSuppressor<EBDataFrame> theBarrelZeroSuppressor_;
00050   EcalZeroSuppressor<EEDataFrame> theEndcapZeroSuppressor_;
00051  
00052 };
00053 
00054 #endif