CMS 3D CMS Logo

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 }
ReturnType create(unsigned fwv, CaloParamsHelper const *params)
std::map< DetId, double > ReturnType
std::unique_ptr< Stage2PreProcessor > ReturnType
HLT enums.