Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:50

0001 #ifndef ECAL_PFRECHITTHRESHOLDS_HANDLER_H
0002 #define ECAL_PFRECHITTHRESHOLDS_HANDLER_H
0003 
0004 #include <vector>
0005 #include <typeinfo>
0006 #include <string>
0007 #include <map>
0008 #include <iostream>
0009 #include <ctime>
0010 
0011 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
0013 
0014 #include "FWCore/ServiceRegistry/interface/Service.h"
0015 #include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
0016 #include "FWCore/Framework/interface/ESHandle.h"
0017 #include "FWCore/Framework/interface/Event.h"
0018 #include "FWCore/Framework/interface/MakerMacros.h"
0019 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 #include "DataFormats/Common/interface/Handle.h"
0022 #include "FWCore/Framework/interface/EventSetup.h"
0023 #include "FWCore/Framework/interface/EventSetupRecordKey.h"
0024 
0025 #include "CondFormats/EcalObjects/interface/EcalPFRecHitThresholds.h"
0026 #include "CondFormats/DataRecord/interface/EcalPFRecHitThresholdsRcd.h"
0027 
0028 #include "OnlineDB/EcalCondDB/interface/all_monitoring_types.h"
0029 #include "OnlineDB/EcalCondDB/interface/RunDCSMagnetDat.h"
0030 #include "OnlineDB/Oracle/interface/Oracle.h"
0031 #include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h"
0032 #include "DataFormats/EcalDetId/interface/EEDetId.h"
0033 #include "DataFormats/EcalDetId/interface/EBDetId.h"
0034 #include "DataFormats/Provenance/interface/Timestamp.h"
0035 
0036 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0037 #include <string>
0038 
0039 namespace edm {
0040   class ParameterSet;
0041   class Event;
0042   class EventSetup;
0043 }  // namespace edm
0044 
0045 namespace popcon {
0046   class EcalPFRecHitThresholdsHandler : public popcon::PopConSourceHandler<EcalPFRecHitThresholds> {
0047   public:
0048     EcalPFRecHitThresholdsHandler(edm::ParameterSet const&);
0049     ~EcalPFRecHitThresholdsHandler() override;
0050 
0051     void getNewObjects() override;
0052     void readXML(const std::string& filename, EcalFloatCondObjectContainer& record);
0053     void readTXT(const std::string& filename, EcalFloatCondObjectContainer& record);
0054 
0055     std::string id() const override { return m_name; }
0056     EcalCondDBInterface* econn;
0057 
0058   private:
0059     const EcalPFRecHitThresholds* myPFRecHitThresholds;
0060     std::string m_name;
0061     unsigned int m_firstRun;
0062     std::string m_file_name;
0063     std::string m_file_type;
0064   };
0065 }  // namespace popcon
0066 #endif