File indexing completed on 2024-04-06 12:14:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef Geometry_CaloEventSetup_EcalTrigTowerConstituentsMapBuilder
0019 #define Geometry_CaloEventSetup_EcalTrigTowerConstituentsMapBuilder
0020
0021
0022 #include <memory>
0023
0024
0025 #include "FWCore/Framework/interface/ESProducer.h"
0026
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028 #include "Geometry/Records/interface/IdealGeometryRecord.h"
0029 #include "Geometry/CaloTopology/interface/EcalTrigTowerConstituentsMap.h"
0030
0031
0032
0033
0034
0035 class EcalTrigTowerConstituentsMapBuilder : public edm::ESProducer {
0036 public:
0037 EcalTrigTowerConstituentsMapBuilder(const edm::ParameterSet&);
0038 ~EcalTrigTowerConstituentsMapBuilder() override;
0039
0040 typedef std::unique_ptr<EcalTrigTowerConstituentsMap> ReturnType;
0041
0042 ReturnType produce(const IdealGeometryRecord&);
0043
0044 private:
0045 void parseTextMap(const std::string& filename, EcalTrigTowerConstituentsMap& theMap);
0046 std::string mapFile_;
0047
0048 };
0049
0050 #endif