CMS 3D CMS Logo

Public Member Functions

L1RPCHsbConfigOnlineProd Class Reference

Inheritance diagram for L1RPCHsbConfigOnlineProd:
L1ConfigOnlineProdBase< L1RPCHsbConfigRcd, L1RPCHsbConfig > edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 L1RPCHsbConfigOnlineProd (const edm::ParameterSet &)
virtual boost::shared_ptr
< L1RPCHsbConfig
newObject (const std::string &objectKey)
 ~L1RPCHsbConfigOnlineProd ()

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 28 of file L1RPCHsbConfigOnlineProd.cc.


Constructor & Destructor Documentation

L1RPCHsbConfigOnlineProd::L1RPCHsbConfigOnlineProd ( const edm::ParameterSet iConfig)

Definition at line 52 of file L1RPCHsbConfigOnlineProd.cc.

  : L1ConfigOnlineProdBase< L1RPCHsbConfigRcd, L1RPCHsbConfig >( iConfig )
{
   //the following line is needed to tell the framework what
   // data is being produced

   //now do what ever other initialization is needed
}
L1RPCHsbConfigOnlineProd::~L1RPCHsbConfigOnlineProd ( )

Definition at line 62 of file L1RPCHsbConfigOnlineProd.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)

}

Member Function Documentation

boost::shared_ptr< L1RPCHsbConfig > L1RPCHsbConfigOnlineProd::newObject ( const std::string &  objectKey) [virtual]

Implements L1ConfigOnlineProdBase< L1RPCHsbConfigRcd, L1RPCHsbConfig >.

Definition at line 71 of file L1RPCHsbConfigOnlineProd.cc.

References i.

{
  edm::LogError( "L1-O2O" ) << "L1RPCHsbConfig object with key "
                            << objectKey << " not in ORCON!" ;
  boost::shared_ptr< L1RPCHsbConfig > pHsbConfig (new L1RPCHsbConfig());
  std::vector<int> hsbconf;
  int mask=3;
  // XX was: i<9, corrected
  for (int i=0; i<8; i++) hsbconf.push_back(mask);
  pHsbConfig->setHsbMask(0, hsbconf);
  pHsbConfig->setHsbMask(1, hsbconf);
  return pHsbConfig;
//  return boost::shared_ptr< L1RPCHsbConfig >() ;
}