Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-30 08:50:56

0001 #ifndef RecoLocalCalo_HGCalESProducers_HeterogeneousHGCalHEFCellPositionsFiller_h
0002 #define RecoLocalCalo_HGCalESProducers_HeterogeneousHGCalHEFCellPositionsFiller_h
0003 
0004 #include <iostream>
0005 #include <string>
0006 #include <memory>
0007 #include <chrono>
0008 #include <cuda_runtime.h>
0009 
0010 #include "FWCore/Framework/interface/ESProducer.h"
0011 #include "FWCore/Utilities/interface/EDGetToken.h"
0012 #include "FWCore/Utilities/interface/EDPutToken.h"
0013 #include "FWCore/Framework/interface/ESHandle.h"
0014 #include "FWCore/Framework/interface/ESTransientHandle.h"
0015 #include "FWCore/Framework/interface/ModuleFactory.h"
0016 #include "FWCore/Utilities/interface/InputTag.h"
0017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0018 #include "FWCore/Utilities/interface/Exception.h"
0019 #include "FWCore/Framework/interface/EventSetup.h"
0020 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0022 
0023 #include "Geometry/HGCalGeometry/interface/HGCalGeometry.h"
0024 #include "Geometry/HGCalCommonData/interface/HGCalDDDConstants.h"
0025 #include "Geometry/HGCalCommonData/interface/HGCalWaferIndex.h"
0026 
0027 #include "CondFormats/HGCalObjects/interface/HeterogeneousHGCalHEFCellPositionsConditions.h"
0028 #include "CondFormats/DataRecord/interface/HeterogeneousHGCalHEFCellPositionsConditionsRecord.h"
0029 #include "RecoLocalCalo/HGCalRecProducers/plugins/KernelManagerHGCalCellPositions.h"
0030 
0031 class HeterogeneousHGCalHEFCellPositionsFiller : public edm::ESProducer {
0032 public:
0033   explicit HeterogeneousHGCalHEFCellPositionsFiller(const edm::ParameterSet&);
0034   ~HeterogeneousHGCalHEFCellPositionsFiller() override;
0035   std::unique_ptr<HeterogeneousHGCalHEFCellPositionsConditions> produce(
0036       const HeterogeneousHGCalHEFCellPositionsConditionsRecord&);
0037 
0038 private:
0039   edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> geometryToken_;
0040 
0041   //cms::cuda::ContextState ctxState_;
0042 
0043   //conditions (geometry, topology, ...)
0044   //void geometryCallback(const IdealGeometryRecord&);
0045   void set_conditions_();
0046 
0047   const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* d_conds = nullptr;
0048   hgcal_conditions::positions::HGCalPositionsMapping* posmap_;
0049 
0050   const HGCalDDDConstants* ddd_ = nullptr;
0051   const HGCalParameters* params_ = nullptr;
0052 };
0053 
0054 #endif  //RecoLocalCalo_HGCalESProducers_HeterogeneousHGCalHEFCellPositionsFiller_h