CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/Geometry/CaloEventSetup/plugins/CaloTowerConstituentsMapBuilder.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    CaloTowerConstituentsMapBuilder
00004 // Class:      CaloTowerConstituentsMapBuilder
00005 // 
00013 //
00014 // Original Author:  Jeremiah Mans
00015 //         Created:  Mon Oct  3 11:35:27 CDT 2005
00016 // $Id: CaloTowerConstituentsMapBuilder.h,v 1.1 2007/04/15 23:16:28 wmtan Exp $
00017 //
00018 //
00019 
00020 
00021 // system include files
00022 #include <memory>
00023 #include "boost/shared_ptr.hpp"
00024 
00025 // user include files
00026 #include "FWCore/Framework/interface/ESProducer.h"
00027 
00028 #include "FWCore/Framework/interface/ESHandle.h"
00029 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00030 #include "Geometry/Records/interface/IdealGeometryRecord.h"
00031 #include "Geometry/CaloTopology/interface/CaloTowerConstituentsMap.h"
00032 
00033 //
00034 // class decleration
00035 //
00036 
00037 class CaloTowerConstituentsMapBuilder : public edm::ESProducer {
00038    public:
00039   CaloTowerConstituentsMapBuilder(const edm::ParameterSet&);
00040   ~CaloTowerConstituentsMapBuilder();
00041 
00042   typedef std::auto_ptr<CaloTowerConstituentsMap> ReturnType;
00043 
00044   ReturnType produce(const IdealGeometryRecord&);
00045 private:
00046   void parseTextMap(const std::string& filename,CaloTowerConstituentsMap& theMap);
00047   std::string mapFile_;
00048       // ----------member data ---------------------------
00049 };
00050