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:
12 public:
13  std::shared_ptr<L1TMuonEndCapForest> newObject(const std::string& objectKey, const L1TMuonEndCapForestO2ORcd& record) override ;
14 
17 };
18 
20 
21 std::shared_ptr<L1TMuonEndCapForest> L1TMuonEndCapForestOnlineProd::newObject(const std::string& objectKey, const L1TMuonEndCapForestO2ORcd& record) {
22 
23  edm::LogError( "L1-O2O" ) << "L1TMuonEndCapForest object with key " << objectKey << " not in ORCON!" ;
24 
25  throw std::runtime_error("You are never supposed to get this code running!");
26 
27  std::shared_ptr< L1TMuonEndCapForest > retval = std::make_shared< L1TMuonEndCapForest >();
28  return retval;
29 }
30 
31 //define this as a plug-in
JetCorrectorParameters::Record record
Definition: classes.h:7
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::shared_ptr< L1TMuonEndCapForest > newObject(const std::string &objectKey, const L1TMuonEndCapForestO2ORcd &record) override
L1TMuonEndCapForestOnlineProd(const edm::ParameterSet &)