CMS 3D CMS Logo

L1TCaloParamsUpdater.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <fstream>
3 #include <iostream>
4 
8 
11 
15 
18 
20 public:
21  void analyze(const edm::Event&, const edm::EventSetup&) override;
22 
24 
25 private:
27 };
28 
30  l1t::CaloParamsHelper m_params_helper(evSetup.getData(token_));
31 
32  // std::ifstream is("tauL1CalibLUT_V2.txt");
33  // l1t::LUT lut;
34  // std::cout<<"LUT read success: "<<lut.read(is)<<std::endl;
35 
36  m_params_helper.setIsoTauEtaMax(28);
37 
38  std::shared_ptr<l1t::CaloParams> ptr1 = std::make_shared<l1t::CaloParams>(m_params_helper);
39 
41  if (poolDb.isAvailable()) {
42  cond::Time_t firstSinceTime = poolDb->beginOfTime();
43  poolDb->writeOneIOV(*ptr1, firstSinceTime, "L1TCaloStage2ParamsTweakedRcd");
44  }
45 }
46 
50 
void setIsoTauEtaMax(int value)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
int iEvent
Definition: GenABIO.cc:224
unsigned long long Time_t
Definition: Time.h:14
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
edm::ESGetToken< l1t::CaloParams, L1TCaloStage2ParamsRcd > token_
void analyze(const edm::Event &, const edm::EventSetup &) override
L1TCaloParamsUpdater(const edm::ParameterSet &)