File indexing completed on 2024-04-06 12:31:36
0001 #ifndef TrackingTools_TrackAssociator_CaloDetIdAssociatorMaker_h
0002 #define TrackingTools_TrackAssociator_CaloDetIdAssociatorMaker_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <memory>
0023
0024
0025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0026 #include "FWCore/Framework/interface/ESConsumesCollector.h"
0027 #include "FWCore/Utilities/interface/ESGetToken.h"
0028 #include "DetIdAssociatorMaker.h"
0029
0030
0031 class DetIdAssociator;
0032 class DetIdAssociatorRecord;
0033 class CaloGeometry;
0034 class CaloGeometryRecord;
0035
0036 class CaloDetIdAssociatorMaker : public DetIdAssociatorMaker {
0037 public:
0038 CaloDetIdAssociatorMaker(edm::ParameterSet const&, edm::ESConsumesCollectorT<DetIdAssociatorRecord>&&);
0039
0040
0041 std::unique_ptr<DetIdAssociator> make(const DetIdAssociatorRecord&) const final;
0042
0043 private:
0044 virtual std::unique_ptr<DetIdAssociator> make(CaloGeometry const&, int nPhi, int nEta, double etaBinSize) const;
0045 const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> geomToken_;
0046 const double etaBinSize;
0047 const int nPhi;
0048 const int nEta;
0049 };
0050
0051 #endif