CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripHashedDetIdESProducer.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  setWhatProduced( this, &SiStripHashedDetIdESProducer::produce );
14 }
15 
16 // -----------------------------------------------------------------------------
17 //
19 
20 // -----------------------------------------------------------------------------
21 //
22 std::auto_ptr<SiStripHashedDetId> SiStripHashedDetIdESProducer::produce( const SiStripHashedDetIdRcd& rcd ) {
23 
24  SiStripHashedDetId* temp = make( rcd );
25 
26  if ( !temp ) {
28  << "[SiStripHashedDetIdESProducer::" << __func__ << "]"
29  << " Null pointer to SiStripHashedDetId object!";
30  }
31 
32  std::auto_ptr<SiStripHashedDetId> ptr( temp );
33  return ptr;
34 
35 }
36 
S make(const edm::ParameterSet &cfg)
Provides dense hash map in place of DetId.
static const char mlCabling_[]
virtual std::auto_ptr< SiStripHashedDetId > produce(const SiStripHashedDetIdRcd &)
SiStripHashedDetIdESProducer(const edm::ParameterSet &)