CMS 3D CMS Logo

HcalPedestalsCheck.h

Go to the documentation of this file.
00001 #ifndef HcalPedestalsCheck_h
00002 #define HcalPedestalsCheck_h
00003 
00004 // 
00005 // R.Ofierzynski 9.12.2007
00006 //
00007 // Code to check pedestals for completeness and to compare to previous pedestals
00008 
00009 #include <string>
00010 #include <iostream>
00011 #include <fstream>
00012 #include <sstream>
00013 #include <map>
00014 #include <vector>
00015 #include <algorithm>
00016 
00017 #include "FWCore/Framework/interface/EDAnalyzer.h"
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/Framework/interface/ESHandle.h"
00020 #include "FWCore/Framework/interface/MakerMacros.h"
00021 
00022 #include "FWCore/Framework/interface/EventSetup.h"
00023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00024 
00025 #include "CondFormats/HcalObjects/interface/HcalPedestals.h"
00026 #include "CondFormats/HcalObjects/interface/HcalPedestalWidths.h"
00027 #include "CondFormats/HcalObjects/interface/HcalGains.h"
00028 #include "CondFormats/HcalObjects/interface/HcalGainWidths.h"
00029 #include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
00030 
00031 #include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
00032 #include "DataFormats/DetId/interface/DetId.h"
00033 
00034 #include "CondFormats/DataRecord/interface/HcalPedestalsRcd.h"
00035 #include "CondFormats/DataRecord/interface/HcalPedestalWidthsRcd.h"
00036 #include "CondFormats/DataRecord/interface/HcalGainsRcd.h"
00037 #include "CondFormats/DataRecord/interface/HcalGainWidthsRcd.h"
00038 #include "CondFormats/DataRecord/interface/HcalElectronicsMapRcd.h"
00039 
00040 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
00041 #include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h"
00042 
00043 class HcalPedestalsCheck: public edm::EDAnalyzer
00044 {
00045  public:
00046   HcalPedestalsCheck(edm::ParameterSet const& ps);
00047 
00048   ~HcalPedestalsCheck();
00049 
00050   void analyze(const edm::Event& ev, const edm::EventSetup& es);
00051 
00052  private:
00053   std::string outfile;
00054   std::string dumprefs;
00055   std::string dumpupdate;
00056   bool validatepedestalsflag;
00057   bool checkemapflag;
00058   double epsilon;
00059   //  vecDetId getMissingDetIds(std::vector<HcalPedestals> &);
00060 };
00061 #endif

Generated on Tue Jun 9 17:26:53 2009 for CMSSW by  doxygen 1.5.4