CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/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/EcalIntercalibConstants.h"
00014 #include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h"
00015 #include "CondFormats/EcalObjects/interface/EcalGainRatios.h"
00016 #include "CondFormats/DataRecord/interface/EcalGainRatiosRcd.h"
00017 #include "CondFormats/EcalObjects/interface/EcalWeightXtalGroups.h"
00018 #include "CondFormats/DataRecord/interface/EcalWeightXtalGroupsRcd.h"
00019 #include "CondFormats/EcalObjects/interface/EcalTBWeights.h"
00020 #include "CondFormats/DataRecord/interface/EcalTBWeightsRcd.h"
00021 #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatios.h"
00022 #include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRcd.h"
00023 #include "CondFormats/EcalObjects/interface/EcalLaserAlphas.h"
00024 #include "CondFormats/DataRecord/interface/EcalLaserAlphasRcd.h"
00025 #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosRef.h"
00026 #include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRefRcd.h"
00027 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00028 
00029 #include <string>
00030 #include <map>
00031 
00032 namespace edm {
00033   class ParameterSet;
00034   class Event;
00035   class EventSetup;
00036 }
00037 
00038 class  EcalTestDevDB : public edm::EDAnalyzer {
00039  public:
00040   explicit  EcalTestDevDB(const edm::ParameterSet& iConfig );
00041   ~EcalTestDevDB();
00042 
00043 
00044   virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
00045 
00046   EcalPedestals* generateEcalPedestals();
00047   EcalADCToGeVConstant* generateEcalADCToGeVConstant();
00048   EcalIntercalibConstants* generateEcalIntercalibConstants();
00049   EcalGainRatios* generateEcalGainRatios();
00050   EcalWeightXtalGroups* generateEcalWeightXtalGroups();
00051   EcalTBWeights* generateEcalTBWeights();
00052   EcalLaserAPDPNRatios* generateEcalLaserAPDPNRatios(uint32_t i_run);
00053   EcalLaserAlphas* generateEcalLaserAlphas();
00054   EcalLaserAPDPNRatiosRef* generateEcalLaserAPDPNRatiosRef();
00055   
00056 
00057  private:
00058  
00059   std::string m_timetype;
00060   std::map<std::string, unsigned long long> m_cacheIDs;
00061   std::map<std::string, std::string> m_records;
00062   unsigned long m_firstRun ;
00063   unsigned long m_lastRun ;
00064   unsigned int m_interval ;
00065 };
00066 
00067 #endif