CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
l1t::Stage2Layer2FirmwareFactory Class Reference

#include <Stage2Layer2FirmwareFactory.h>

Public Types

typedef boost::shared_ptr
< Stage2MainProcessor
ReturnType
 

Public Member Functions

ReturnType create (unsigned fwv, CaloParamsHelper *params)
 

Detailed Description

Author
: Jim Brooke

Definition at line 25 of file Stage2Layer2FirmwareFactory.h.

Member Typedef Documentation

Definition at line 27 of file Stage2Layer2FirmwareFactory.h.

Member Function Documentation

l1t::Stage2Layer2FirmwareFactory::ReturnType l1t::Stage2Layer2FirmwareFactory::create ( unsigned  fwv,
CaloParamsHelper params 
)

Definition at line 19 of file Stage2Layer2FirmwareFactory.cc.

References AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.

19  {
20 
21  ReturnType p;
22  unsigned v = fwv;
23 
24  switch (v){
25  case 1:
26  p = ReturnType(new Stage2MainProcessorFirmwareImp1(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< Stage2MainProcessor > ReturnType