CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CondTools/Ecal/interface/EcalTestDevDB.h

Go to the documentation of this file.
00001 #ifndef ECALTESTDEVDB_H
00002 #define ECALTESTDEVDB_H
00003 
00004 #include "FWCore/Framework/interface/EDAnalyzer.h"
00005 #include "CondCore/DBCommon/interface/Exception.h"
00006 
00007 #include "FWCore/Framework/interface/IOVSyncValue.h"
00008 
00009 #include "CondFormats/EcalObjects/interface/EcalPedestals.h"
00010 #include "CondFormats/DataRecord/interface/EcalPedestalsRcd.h"
00011 #include "CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h"
00012 #include "CondFormats/DataRecord/interface/EcalADCToGeVConstantRcd.h"
00013 #include "CondFormats/EcalObjects/interface/EcalLinearCorrections.h"
00014 #include "CondFormats/DataRecord/interface/EcalLinearCorrectionsRcd.h"
00015 #include "CondFormats/EcalObjects/interface/EcalIntercalibConstants.h"
00016 #include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h"
00017 #include "CondFormats/EcalObjects/interface/EcalGainRatios.h"
00018 #include "CondFormats/DataRecord/interface/EcalGainRatiosRcd.h"
00019 #include "CondFormats/EcalObjects/interface/EcalWeightXtalGroups.h"
00020 #include "CondFormats/DataRecord/interface/EcalWeightXtalGroupsRcd.h"
00021 #include "CondFormats/EcalObjects/interface/EcalTBWeights.h"
00022 #include "CondFormats/DataRecord/interface/EcalTBWeightsRcd.h"
00023 #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatios.h"
00024 #include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRcd.h"
00025 #include "CondFormats/EcalObjects/interface/EcalLaserAlphas.h"
00026 #include "CondFormats/DataRecord/interface/EcalLaserAlphasRcd.h"
00027 #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosRef.h"
00028 #include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRefRcd.h"
00029 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00030 
00031 #include <string>
00032 #include <map>
00033 
00034 namespace edm {
00035   class ParameterSet;
00036   class Event;
00037   class EventSetup;
00038 }
00039 
00040 class  EcalTestDevDB : public edm::EDAnalyzer {
00041  public:
00042   explicit  EcalTestDevDB(const edm::ParameterSet& iConfig );
00043   ~EcalTestDevDB();
00044 
00045 
00046   virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
00047 
00048   EcalPedestals* generateEcalPedestals();
00049   EcalADCToGeVConstant* generateEcalADCToGeVConstant();
00050   EcalIntercalibConstants* generateEcalIntercalibConstants();
00051   EcalLinearCorrections* generateEcalLinearCorrections();
00052   EcalGainRatios* generateEcalGainRatios();
00053   EcalWeightXtalGroups* generateEcalWeightXtalGroups();
00054   EcalTBWeights* generateEcalTBWeights();
00055   EcalLaserAPDPNRatios* generateEcalLaserAPDPNRatios(uint32_t i_run);
00056   EcalLaserAlphas* generateEcalLaserAlphas();
00057   EcalLaserAPDPNRatiosRef* generateEcalLaserAPDPNRatiosRef();
00058   
00059 
00060  private:
00061  
00062   std::string m_timetype;
00063   std::map<std::string, unsigned long long> m_cacheIDs;
00064   std::map<std::string, std::string> m_records;
00065   unsigned long m_firstRun ;
00066   unsigned long m_lastRun ;
00067   unsigned int m_interval ;
00068 };
00069 
00070 #endif