CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Stage2Layer1FirmwareFactory.cc
Go to the documentation of this file.
1 
9 
12 
14 
15 using namespace std;
16 using namespace edm;
17 
20 
21  ReturnType p;
22  unsigned v = fwv;
23 
24  switch (v){
25  case 1:
26  p = ReturnType(new Stage2PreProcessorFirmwareImp1(fwv, params));
27  break;
28  default:
29  // Invalid Firmware, log an error:
30  LogError("l1t|caloStage2") << "Invalid firmware version requested: " << v << "\n";
31  break;
32  }
33 
34  return p;
35 
36 }
boost::shared_ptr< Stage2PreProcessor > ReturnType
std::map< DetId, double > ReturnType
ReturnType create(unsigned fwv, CaloParamsHelper *params)