File indexing completed on 2024-04-06 12:19:17
0001 #ifndef FFTJetCorrectorResultFromTransient_h
0002 #define FFTJetCorrectorResultFromTransient_h
0003
0004 #include "JetMETCorrections/FFTJetObjects/interface/FFTJetCorrectorResult.h"
0005 #include "JetMETCorrections/FFTJetObjects/interface/FFTJetCorrectorTransient.h"
0006 #include "DataFormats/JetReco/interface/Jet.h"
0007
0008 template <typename MyJet>
0009 struct FFTJetCorrectorResultFromTransient {
0010 typedef MyJet jet_type;
0011 typedef FFTJetCorrectorResult result_type;
0012
0013 inline result_type operator()(const MyJet& , const FFTJetCorrectorTransient& t) const {
0014 return FFTJetCorrectorResult(t.vec(), t.scale(), t.sigma());
0015 }
0016 };
0017
0018 #endif