OnlineDB
SiStripESSources
src
SiStripGainBuilderFromDb.cc
Go to the documentation of this file.
1
2
#include "
OnlineDB/SiStripESSources/interface/SiStripGainBuilderFromDb.h
"
3
#include "
CondFormats/SiStripObjects/interface/SiStripApvGain.h
"
4
#include "
OnlineDB/SiStripESSources/interface/SiStripCondObjBuilderFromDb.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
#include "
FWCore/ServiceRegistry/interface/Service.h
"
7
#include <vector>
8
#include <string>
9
10
using namespace
std
;
11
using namespace
sistrip
;
12
13
// -----------------------------------------------------------------------------
15
SiStripGainBuilderFromDb::SiStripGainBuilderFromDb
(
const
edm::ParameterSet
&
pset
) :
SiStripGainESSource
(
pset
) {
16
LogTrace
(
mlESSources_
) <<
"[SiStripGainBuilderFromDb::"
<< __func__ <<
"]"
17
<<
" Constructing object..."
;
18
}
19
20
// -----------------------------------------------------------------------------
22
SiStripGainBuilderFromDb::~SiStripGainBuilderFromDb
() {
23
LogTrace
(
mlESSources_
) <<
"[SiStripGainBuilderFromDb::"
<< __func__ <<
"]"
24
<<
" Destructing object..."
;
25
}
26
27
// -----------------------------------------------------------------------------
29
SiStripApvGain
*
SiStripGainBuilderFromDb::makeGain
() {
30
LogTrace
(
mlESSources_
) <<
"[SiStripGainBuilderFromDb::"
<< __func__ <<
"]"
31
<<
" Constructing Gain object..."
;
32
34
edm::Service<SiStripCondObjBuilderFromDb>
condObjBuilder_;
35
36
// Create Gain object
37
SiStripApvGain
*
gain
;
38
condObjBuilder_->
getValue
(
gain
);
39
return
gain
;
40
}
MessageLogger.h
SiStripCondObjBuilderFromDb::getValue
void getValue(SiStripFedCabling *&val)
Definition:
SiStripCondObjBuilderFromDb.h:121
SiStripGainESSource
Pure virtual class for EventSetup sources of SiStripApvGain.
Definition:
SiStripGainESSource.h:17
SiStripCondObjBuilderFromDb.h
Service.h
SiStripApvGain.h
SiStripGainBuilderFromDb::~SiStripGainBuilderFromDb
~SiStripGainBuilderFromDb() override
Definition:
SiStripGainBuilderFromDb.cc:22
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Service< SiStripCondObjBuilderFromDb >
PedestalClient_cfi.gain
gain
Definition:
PedestalClient_cfi.py:37
sistrip::mlESSources_
static const char mlESSources_[]
Definition:
ConstantsForLogger.h:21
SiStripGainBuilderFromDb.h
std
Definition:
JetResolutionObject.h:76
SiStripGainBuilderFromDb::SiStripGainBuilderFromDb
SiStripGainBuilderFromDb(const edm::ParameterSet &)
Definition:
SiStripGainBuilderFromDb.cc:15
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:671
sistrip
sistrip classes
Definition:
SiStripQualityHelpers.h:14
SiStripApvGain
Definition:
SiStripApvGain.h:25
SiStripGainBuilderFromDb::makeGain
SiStripApvGain * makeGain() override
Definition:
SiStripGainBuilderFromDb.cc:29
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16