Main Page
Namespaces
Classes
Package Documentation
CalibTracker
SiStripESProducers
src
SiStripHashedDetIdESProducer.cc
Go to the documentation of this file.
1
#include "
CalibTracker/SiStripESProducers/interface/SiStripHashedDetIdESProducer.h
"
2
#include "
CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h
"
3
#include "
CalibTracker/Records/interface/SiStripHashedDetIdRcd.h
"
4
#include "
DataFormats/SiStripCommon/interface/SiStripConstants.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
#include <iostream>
7
8
using namespace
sistrip
;
9
10
// -----------------------------------------------------------------------------
11
//
12
SiStripHashedDetIdESProducer::SiStripHashedDetIdESProducer
(
const
edm::ParameterSet
&
pset
) {
13
setWhatProduced(
this
, &
SiStripHashedDetIdESProducer::produce
);
14
}
15
16
// -----------------------------------------------------------------------------
17
//
18
SiStripHashedDetIdESProducer::~SiStripHashedDetIdESProducer
() {}
19
20
// -----------------------------------------------------------------------------
21
//
22
std::unique_ptr<SiStripHashedDetId>
SiStripHashedDetIdESProducer::produce
(
const
SiStripHashedDetIdRcd
& rcd ) {
23
24
SiStripHashedDetId
*
temp
=
make
( rcd );
25
26
if
( !temp ) {
27
edm::LogWarning
(
mlCabling_
)
28
<<
"[SiStripHashedDetIdESProducer::"
<< __func__ <<
"]"
29
<<
" Null pointer to SiStripHashedDetId object!"
;
30
}
31
32
std::unique_ptr<SiStripHashedDetId> ptr( temp );
33
return
ptr;
34
35
}
36
MessageLogger.h
SiStripHashedDetIdESProducer.h
reco::modules::make
S make(const edm::ParameterSet &cfg)
Definition:
ParameterAdapter.h:29
groupFilesInBlocks.temp
temp
Definition:
groupFilesInBlocks.py:141
edm::LogWarning
Definition:
MessageLogger.h:142
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
SiStripHashedDetIdESProducer::produce
virtual std::unique_ptr< SiStripHashedDetId > produce(const SiStripHashedDetIdRcd &)
Definition:
SiStripHashedDetIdESProducer.cc:23
SiStripHashedDetIdRcd.h
sistrip
sistrip classes
Definition:
EnsembleCalibrationLA.cc:11
SiStripHashedDetId
Provides dense hash map in place of DetId.
Definition:
SiStripHashedDetId.h:19
sistrip::mlCabling_
static const char mlCabling_[]
Definition:
ConstantsForLogger.h:14
SiStripHashedDetId.h
SiStripHashedDetIdRcd
Definition:
SiStripDependentRecords.h:36
edm::ParameterSet
Definition:
ParameterSet.h:36
SiStripHashedDetIdESProducer::~SiStripHashedDetIdESProducer
~SiStripHashedDetIdESProducer() override
Definition:
SiStripHashedDetIdESProducer.cc:19
SiStripHashedDetIdESProducer::SiStripHashedDetIdESProducer
SiStripHashedDetIdESProducer(const edm::ParameterSet &)
Definition:
SiStripHashedDetIdESProducer.cc:13
SiStripConstants.h
Generated for CMSSW Reference Manual by
1.8.11