CMS 3D CMS Logo

HcalPatternSource.h

Go to the documentation of this file.
00001 #ifndef IORAWDATA_CALOPATTERNS_HCALPATTERNSOURCE_H
00002 #define IORAWDATA_CALOPATTERNS_HCALPATTERNSOURCE_H 1
00003 
00004 #include <vector>
00005 #include "IORawData/CaloPatterns/interface/HcalFiberPattern.h"
00006 #include "FWCore/Framework/interface/ConfigurableInputSource.h"
00007 
00008 class HcalElectronicsMap;
00009 
00016 class HcalPatternSource : public edm::ConfigurableInputSource {
00017 public:
00018   HcalPatternSource(const edm::ParameterSet & pset, edm::InputSourceDescription const& desc);
00019 protected:
00020   virtual void beginJob(edm::EventSetup const& es);
00021   virtual bool produce(edm::Event & e);
00022 private:  
00023   void loadPatterns(const std::string& patspec);
00024   void loadPatternFile(const std::string& filename);
00025   std::vector<int> bunches_;
00026   std::vector<HcalFiberPattern> patterns_;
00027   const HcalElectronicsMap* elecmap_;
00028   int presamples_, samples_;
00029 };
00030 
00031 #endif

Generated on Tue Jun 9 17:39:20 2009 for CMSSW by  doxygen 1.5.4