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::unique_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::unique_ptr<SiStripFecCabling>( FecConnections );
25 }
26 
27 std::unique_ptr<SiStripDetCabling> SiStripConnectivity::produceDetCabling( const SiStripDetCablingRcd& iRecord ){
29  iRecord.getRecord<SiStripFedCablingRcd>().get(pDD );
31  iRecord.getRecord<TrackerTopologyRcd>().get(tTopoHandle);
32  const TrackerTopology* const tTopo = tTopoHandle.product();
33  //here build an object of type SiStripDetCabling using **ONLY** the information from class SiStripFedCabling,
34  SiStripDetCabling * DetConnections = new SiStripDetCabling( *(pDD.product()),tTopo);
35  return std::unique_ptr<SiStripDetCabling>( DetConnections );
36 }
37 
38 //define this as a plug-in
39 // DEFINE_FWK_EVENTSETUP_MODULE(SiStripConnectivity);
SiStripConnectivity(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
T const * product() const
Definition: ESHandle.h:86
std::unique_ptr< SiStripDetCabling > produceDetCabling(const SiStripDetCablingRcd &)
std::unique_ptr< SiStripFecCabling > produceFecCabling(const SiStripFecCablingRcd &)