CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CondTools/Ecal/interface/EcalDAQHandler.h

Go to the documentation of this file.
00001 #ifndef ECAL_DAQ_HANDLER_H
00002 #define ECAL_DAQ_HANDLER_H
00003 
00004 #include <vector>
00005 #include <typeinfo>
00006 #include <string>
00007 #include <map>
00008 #include <iostream>
00009 #include <time.h>
00010 
00011 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
00012 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
00013 
00014 
00015 #include "FWCore/ServiceRegistry/interface/Service.h"
00016 #include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
00017 #include "FWCore/Framework/interface/ESHandle.h"
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/Framework/interface/MakerMacros.h"
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include "DataFormats/Common/interface/Handle.h"
00023 #include "FWCore/Framework/interface/EventSetup.h"
00024 #include "FWCore/Framework/interface/EventSetupRecordKey.h"
00025 
00026 
00027 #include "CondFormats/EcalObjects/interface/EcalDAQTowerStatus.h"
00028 #include "CondFormats/DataRecord/interface/EcalDAQTowerStatusRcd.h"
00029 
00030 #include "OnlineDB/EcalCondDB/interface/all_monitoring_types.h"
00031 #include "OnlineDB/Oracle/interface/Oracle.h"
00032 #include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h"
00033 
00034 #include "DataFormats/EcalDetId/interface/EEDetId.h"
00035 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00036 #include "DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h"
00037 #include "DataFormats/EcalDetId/interface/EcalScDetId.h"
00038 #include "DataFormats/Provenance/interface/Timestamp.h"
00039 
00040 
00041 namespace edm {
00042   class ParameterSet;
00043   class Event;
00044   class EventSetup;
00045 }
00046 
00047 namespace popcon {
00048   class EcalDAQHandler : public popcon::PopConSourceHandler<EcalDAQTowerStatus>
00049     {
00050     public:
00051       EcalDAQHandler(edm::ParameterSet const & );
00052       ~EcalDAQHandler(); 
00053 
00054       void getNewObjects();
00055       std::string id() const { return m_name;}
00056       EcalCondDBInterface* econn;
00057 
00058       int detIDToLogicID(int, int, int);
00059       uint16_t OffDBStatus( uint16_t dbStatus , int pos ) ;
00060 
00061     private:
00062       unsigned long m_firstRun ;
00063       unsigned long m_lastRun ;         
00064       std::string m_sid;
00065       std::string m_user;
00066       std::string m_pass;
00067       std::string m_name;
00068       std::string m_location;
00069       std::string m_runtype;
00070       std::string m_gentag;
00071     };
00072 }
00073 #endif
00074