CMS 3D CMS Logo

L1TMuonEndCapForestOnlineProd.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 #include <stdexcept>
4 
9 
10 class L1TMuonEndCapForestOnlineProd : public L1ConfigOnlineProdBaseExt<L1TMuonEndCapForestO2ORcd,L1TMuonEndCapForest> {
11 private:
13 public:
14  std::unique_ptr<const L1TMuonEndCapForest> newObject(const std::string& objectKey, const L1TMuonEndCapForestO2ORcd& record) override ;
15 
18 };
19 
21  transactionSafe = iConfig.getParameter<bool>("transactionSafe");
22 }
23 
24 std::unique_ptr<const L1TMuonEndCapForest> L1TMuonEndCapForestOnlineProd::newObject(const std::string& objectKey, const L1TMuonEndCapForestO2ORcd& record) {
25 
26  edm::LogError( "L1-O2O" ) << "L1TMuonEndCapForest object with key " << objectKey << " not in ORCON!" ;
27 
28  if( transactionSafe )
29  throw std::runtime_error("SummaryForFunctionManager: EMTF | Faulty | You are never supposed to get Forests online producer running!");
30 
31  auto retval = std::make_unique< const L1TMuonEndCapForest >();
32 
33  edm::LogError( "L1-O2O: L1TMuonEndCapForestOnlineProd" ) << "SummaryForFunctionManager: EMTF | Faulty | You are never supposed to get Forests online producer running; returning empty L1TMuonEndCapForest";
34  return retval;
35 }
36 
37 //define this as a plug-in
T getParameter(std::string const &) const
JetCorrectorParameters::Record record
Definition: classes.h:7
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< const L1TMuonEndCapForest > newObject(const std::string &objectKey, const L1TMuonEndCapForestO2ORcd &record) override
L1TMuonEndCapForestOnlineProd(const edm::ParameterSet &)