CMS 3D CMS Logo

Public Member Functions

SiStripConnectivity Class Reference

#include <SiStripConnectivity.h>

Inheritance diagram for SiStripConnectivity:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

std::auto_ptr< SiStripDetCablingproduceDetCabling (const SiStripDetCablingRcd &)
std::auto_ptr< SiStripFecCablingproduceFecCabling (const SiStripFecCablingRcd &)
 SiStripConnectivity (const edm::ParameterSet &)
virtual ~SiStripConnectivity ()

Detailed Description

Definition at line 11 of file SiStripConnectivity.h.


Constructor & Destructor Documentation

SiStripConnectivity::SiStripConnectivity ( const edm::ParameterSet p)

Definition at line 6 of file SiStripConnectivity.cc.

References produceDetCabling(), produceFecCabling(), and edm::ESProducer::setWhatProduced().

                                                                 {
  //the following lines are needed to tell the framework what data is being produced
  setWhatProduced(this, &SiStripConnectivity::produceFecCabling);
  setWhatProduced(this, &SiStripConnectivity::produceDetCabling);
}
SiStripConnectivity::~SiStripConnectivity ( ) [virtual]

Definition at line 12 of file SiStripConnectivity.cc.

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

Member Function Documentation

std::auto_ptr< SiStripDetCabling > SiStripConnectivity::produceDetCabling ( const SiStripDetCablingRcd iRecord)

Definition at line 27 of file SiStripConnectivity.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and edm::ESHandle< T >::product().

Referenced by SiStripConnectivity().

                                                                                                          {
  edm::ESHandle<SiStripFedCabling> pDD;
  iRecord.getRecord<SiStripFedCablingRcd>().get(pDD );
  //here build an object of type SiStripDetCabling using  **ONLY** the information from class SiStripFedCabling, 
  SiStripDetCabling * DetConnections = new SiStripDetCabling( *(pDD.product()));
  return std::auto_ptr<SiStripDetCabling>( DetConnections );
}
std::auto_ptr< SiStripFecCabling > SiStripConnectivity::produceFecCabling ( const SiStripFecCablingRcd iRecord)

Definition at line 19 of file SiStripConnectivity.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and edm::ESHandle< T >::product().

Referenced by SiStripConnectivity().

                                                                                                          {
  edm::ESHandle<SiStripFedCabling> pDD;
  iRecord.getRecord<SiStripFedCablingRcd>().get(pDD );
  //here build an object of type SiStripFecCabling using  **ONLY** the information from class SiStripFedCabling, 
  SiStripFecCabling * FecConnections = new SiStripFecCabling( *(pDD.product()));
  return std::auto_ptr<SiStripFecCabling>( FecConnections );
}