00001 // -*- C++ -*- 00002 // 00003 // Package: EcalTrigTowerConstituentsMapBuilder 00004 // Class: EcalTrigTowerConstituentsMapBuilder 00005 // 00013 // 00014 // Original Author: Paolo Meridiani 00015 // $Id: EcalTrigTowerConstituentsMapBuilder.h,v 1.1 2007/04/15 23:16:28 wmtan Exp $ 00016 // 00017 // 00018 00019 #ifndef Geometry_CaloEventSetup_EcalTrigTowerConstituentsMapBuilder 00020 #define Geometry_CaloEventSetup_EcalTrigTowerConstituentsMapBuilder 00021 00022 // system include files 00023 #include <memory> 00024 #include "boost/shared_ptr.hpp" 00025 00026 // user include files 00027 #include "FWCore/Framework/interface/ESProducer.h" 00028 00029 #include "FWCore/Framework/interface/ESHandle.h" 00030 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00031 #include "Geometry/Records/interface/IdealGeometryRecord.h" 00032 #include "Geometry/CaloTopology/interface/EcalTrigTowerConstituentsMap.h" 00033 00034 // 00035 // class decleration 00036 // 00037 00038 class EcalTrigTowerConstituentsMapBuilder : public edm::ESProducer { 00039 public: 00040 EcalTrigTowerConstituentsMapBuilder(const edm::ParameterSet&); 00041 ~EcalTrigTowerConstituentsMapBuilder(); 00042 00043 typedef std::auto_ptr<EcalTrigTowerConstituentsMap> ReturnType; 00044 00045 ReturnType produce(const IdealGeometryRecord&); 00046 00047 private: 00048 void parseTextMap(const std::string& filename,EcalTrigTowerConstituentsMap& theMap); 00049 std::string mapFile_; 00050 // ----------member data --------------------------- 00051 }; 00052 00053 #endif