Main Page
Namespaces
Classes
Package Documentation
CalibTracker
SiStripChannelGain
plugins
SiStripGainFromAsciiFile.h
Go to the documentation of this file.
1
#ifndef CalibTracker_SiStripChannelGain_SiStripGainFromAsciiFile_h
2
#define CalibTracker_SiStripChannelGain_SiStripGainFromAsciiFile_h
3
4
#include "
FWCore/ParameterSet/interface/FileInPath.h
"
5
6
#include "
CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h
"
7
#include "
CondFormats/SiStripObjects/interface/SiStripApvGain.h
"
8
#include <vector>
9
10
#include <unordered_map>
11
12
class
SiStripGainFromAsciiFile
:
public
ConditionDBWriter
<SiStripApvGain> {
13
14
public
:
15
16
explicit
SiStripGainFromAsciiFile
(
const
edm::ParameterSet
&);
17
~SiStripGainFromAsciiFile
();
18
19
private
:
20
21
SiStripApvGain
*
getNewObject
();
22
23
private
:
24
25
struct
ModuleGain
{
26
float
apv
[6];
27
28
void
soft_reset
(){
for
(
int
i
=0;
i
<6;++
i
)
if
(apv[
i
]==-1)apv[
i
]=1; }
29
void
hard_reset
(
float
val
){
for
(
int
i
=0;
i
<6;++
i
) apv[
i
]=val; }
30
31
};
32
33
std::string
Asciifilename_
;
34
float
referenceValue_
;
35
edm::FileInPath
fp_
;
36
37
std::unordered_map< unsigned int,ModuleGain>
GainsMap
;
38
39
};
40
#endif
SiStripGainFromAsciiFile
Definition:
SiStripGainFromAsciiFile.h:12
SiStripGainFromAsciiFile::getNewObject
SiStripApvGain * getNewObject()
Definition:
SiStripGainFromAsciiFile.cc:28
mps_fire.i
i
Definition:
mps_fire.py:156
SiStripGainFromAsciiFile::SiStripGainFromAsciiFile
SiStripGainFromAsciiFile(const edm::ParameterSet &)
Definition:
SiStripGainFromAsciiFile.cc:15
SiStripGainFromAsciiFile::ModuleGain::hard_reset
void hard_reset(float val)
Definition:
SiStripGainFromAsciiFile.h:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
SiStripApvGain.h
SiStripGainFromAsciiFile::Asciifilename_
std::string Asciifilename_
Definition:
SiStripGainFromAsciiFile.h:33
SiStripGainFromAsciiFile::ModuleGain
Definition:
SiStripGainFromAsciiFile.h:25
SiStripApvGain
Definition:
SiStripApvGain.h:22
SiStripGainFromAsciiFile::~SiStripGainFromAsciiFile
~SiStripGainFromAsciiFile()
Definition:
SiStripGainFromAsciiFile.cc:24
FileInPath.h
ConditionDBWriter
Definition:
ConditionDBWriter.h:157
edm::FileInPath
Definition:
FileInPath.h:68
ConditionDBWriter.h
SiStripGainFromAsciiFile::ModuleGain::soft_reset
void soft_reset()
Definition:
SiStripGainFromAsciiFile.h:28
SiStripGainFromAsciiFile::referenceValue_
float referenceValue_
Definition:
SiStripGainFromAsciiFile.h:34
SiStripGainFromAsciiFile::GainsMap
std::unordered_map< unsigned int, ModuleGain > GainsMap
Definition:
SiStripGainFromAsciiFile.h:37
SiStripGainFromAsciiFile::fp_
edm::FileInPath fp_
Definition:
SiStripGainFromAsciiFile.h:35
edm::ParameterSet
Definition:
ParameterSet.h:36
heppy_batch.val
val
Definition:
heppy_batch.py:349
SiStripGainFromAsciiFile::ModuleGain::apv
float apv[6]
Definition:
SiStripGainFromAsciiFile.h:26
Generated for CMSSW Reference Manual by
1.8.11