CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondTools/Hcal/interface/HcalPedestalWidthsCheck.h

Go to the documentation of this file.
00001 #ifndef HcalPedestalWidthsCheck_h
00002 #define HcalPedestalWidthsCheck_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 HcalPedestalWidthsCheck: public edm::EDAnalyzer
00044 {
00045  public:
00046   HcalPedestalWidthsCheck(edm::ParameterSet const& ps);
00047 
00048   ~HcalPedestalWidthsCheck();
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 checkemapflag;
00057   bool validateflag;
00058   double epsilon;
00059   //  vecDetId getMissingDetIds(std::vector<HcalPedestalWidths> &);
00060   
00061 
00062 };
00063 #endif