CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripConnectivity.cc
Go to the documentation of this file.
2 //#include "FWCore/Framework/interface/EventSetup.h"
4 #include <memory>
5 
7  //the following lines are needed to tell the framework what data is being produced
10 }
11 
13  // do anything here that needs to be done at desctruction time
14  // (e.g. close files, deallocate resources etc.)
15 }
16 
17 // ------------ methods called to produce the data ------------
18 
19 std::auto_ptr<SiStripFecCabling> SiStripConnectivity::produceFecCabling( const SiStripFecCablingRcd& iRecord ){
21  iRecord.getRecord<SiStripFedCablingRcd>().get(pDD );
22  //here build an object of type SiStripFecCabling using **ONLY** the information from class SiStripFedCabling,
23  SiStripFecCabling * FecConnections = new SiStripFecCabling( *(pDD.product()));
24  return std::auto_ptr<SiStripFecCabling>( FecConnections );
25 }
26 
27 std::auto_ptr<SiStripDetCabling> SiStripConnectivity::produceDetCabling( const SiStripDetCablingRcd& iRecord ){
29  iRecord.getRecord<SiStripFedCablingRcd>().get(pDD );
30  //here build an object of type SiStripDetCabling using **ONLY** the information from class SiStripFedCabling,
31  SiStripDetCabling * DetConnections = new SiStripDetCabling( *(pDD.product()));
32  return std::auto_ptr<SiStripDetCabling>( DetConnections );
33 }
34 
35 //define this as a plug-in
36 // DEFINE_FWK_EVENTSETUP_MODULE(SiStripConnectivity);
std::auto_ptr< SiStripDetCabling > produceDetCabling(const SiStripDetCablingRcd &)
SiStripConnectivity(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< SiStripFecCabling > produceFecCabling(const SiStripFecCablingRcd &)
T const * product() const
Definition: ESHandle.h:62