Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:51

0001 #ifndef ECAL_PULSESYMMCOVARIANCES_HANDLER_H
0002 #define ECAL_PULSESYMMCOVARIANCES_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/EcalPulseSymmCovariances.h"
0026 #include "CondFormats/DataRecord/interface/EcalPulseSymmCovariancesRcd.h"
0027 
0028 #include "DataFormats/EcalDetId/interface/EEDetId.h"
0029 #include "DataFormats/EcalDetId/interface/EBDetId.h"
0030 #include "DataFormats/Provenance/interface/Timestamp.h"
0031 
0032 namespace edm {
0033   class ParameterSet;
0034   class Event;
0035   class EventSetup;
0036 }  // namespace edm
0037 
0038 namespace popcon {
0039 
0040   class EcalPulseSymmCovariancesHandler : public popcon::PopConSourceHandler<EcalPulseSymmCovariances> {
0041   public:
0042     EcalPulseSymmCovariancesHandler(edm::ParameterSet const&);
0043     ~EcalPulseSymmCovariancesHandler() override;
0044     bool checkPulseSymmCovariance(EcalPulseSymmCovariances::Item* item);
0045     void fillSimPulseSymmCovariance(EcalPulseSymmCovariances::Item* item, bool isbarrel);
0046     void getNewObjects() override;
0047     std::string id() const override { return m_name; }
0048 
0049   private:
0050     const EcalPulseSymmCovariances* mypulseshapes;
0051 
0052     unsigned int m_firstRun;
0053     unsigned int m_lastRun;
0054 
0055     std::string m_gentag;
0056     std::string m_filename;
0057     std::string m_name;
0058     std::vector<double> m_EBPulseShapeCovariance, m_EEPulseShapeCovariance;
0059   };
0060 }  // namespace popcon
0061 #endif