Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:54:28

0001 #include "L1Trigger/GlobalCaloTrigger/interface/L1GctJetEtCalibrationLut.h"
0002 
0003 #include <vector>
0004 #include <memory>
0005 
0006 class L1GctJetFinderParams;
0007 
0008 class produceTrivialCalibrationLut {
0009 public:
0010   //Typedefs
0011   typedef std::shared_ptr<L1GctJetEtCalibrationLut> lutPtr;
0012   typedef std::vector<lutPtr> lutPtrVector;
0013 
0014   produceTrivialCalibrationLut();
0015   ~produceTrivialCalibrationLut();
0016 
0017   void setPowerSeriesCorrectionType();
0018   void setOrcaStyleCorrectionType();
0019 
0020   const lutPtrVector produce() const;
0021 
0022   const L1GctJetFinderParams* jfPars() const { return m_jfPars; }
0023 
0024 private:
0025   // PARAMETERS TO BE STORED IN THE CalibrationFunction
0026   /// scale and threshold parameters
0027   double m_htScaleLSB;
0028 
0029   /// the calibration function - converts jet Et to linear
0030   std::vector<std::vector<double> > m_jetCalibFunc;
0031   std::vector<std::vector<double> > m_tauCalibFunc;
0032 
0033   double m_jetEtScaleInputLsb;
0034   std::vector<double> m_jetEtThresholds;
0035 
0036   unsigned m_corrFunType;
0037   L1GctJetFinderParams* m_jfPars;
0038 
0039   /// member functions to set up the ORCA-style calibrations (if needed)
0040   /// (Copied from L1TriggerConfig/GctConfigProducers
0041   void setOrcaStyleParams();
0042   void setOrcaStyleParamsForBin(std::vector<double>& paramsForBin);
0043 
0044   void setupJfPars();
0045 };