File indexing completed on 2023-10-25 09:55:54
0001 #ifndef L1Trigger_Phase2L1ParticleFlow_ParametricResolution_h
0002 #define L1Trigger_Phase2L1ParticleFlow_ParametricResolution_h
0003 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0004 #include "FWCore/Utilities/interface/Exception.h"
0005 #include <vector>
0006 #include <cmath>
0007
0008 namespace l1tpf {
0009
0010 class ParametricResolution {
0011 public:
0012 static std::vector<float> getVFloat(const edm::ParameterSet &cpset, const std::string &name);
0013
0014 ParametricResolution() {}
0015 ParametricResolution(const edm::ParameterSet &cpset);
0016
0017 float operator()(const float pt, const float abseta) const;
0018
0019 protected:
0020 std::vector<float> etas_, offsets_, scales_, ptMins_, ptMaxs_;
0021 enum class Kind { Calo, Track };
0022 Kind kind_;
0023 };
0024
0025 };
0026
0027 #endif