00001 #ifndef RECOLOCALCALO_CALOTOWERSCREATOR_CALOTOWERSCREATOR_H 00002 #define RECOLOCALCALO_CALOTOWERSCREATOR_CALOTOWERSCREATOR_H 1 00003 00004 #include "FWCore/Framework/interface/EDProducer.h" 00005 #include "DataFormats/Common/interface/EDProduct.h" 00006 #include "FWCore/Framework/interface/Event.h" 00007 #include "DataFormats/Common/interface/Handle.h" 00008 00009 #include "FWCore/Framework/interface/EventSetup.h" 00010 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00011 00012 #include "Geometry/CaloTopology/interface/HcalTopology.h" 00013 00014 #include "RecoLocalCalo/CaloTowersCreator/interface/CaloTowersCreationAlgo.h" 00015 00022 class CaloTowersCreator : public edm::EDProducer { 00023 public: 00024 explicit CaloTowersCreator(const edm::ParameterSet& ps); 00025 virtual ~CaloTowersCreator() { } 00026 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00027 double EBEScale, EEEScale, HBEScale, HESEScale; 00028 double HEDEScale, HOEScale, HF1EScale, HF2EScale; 00029 private: 00030 00031 static const std::vector<double>& getGridValues(); 00032 00033 CaloTowersCreationAlgo algo_; 00034 edm::InputTag hbheLabel_,hoLabel_,hfLabel_; 00035 std::vector<edm::InputTag> ecalLabels_; 00036 bool allowMissingInputs_; 00037 }; 00038 00039 #endif