Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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 <ext/hash_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
FibersGain
{
26
float
fiber
[3];
27
28
void
soft_reset
(){
for
(
int
i
=0;
i
<3;++
i
)
if
(
fiber
[
i
]==-1)
fiber
[
i
]=1; }
29
void
hard_reset
(
float
val){
for
(
int
i
=0;
i
<3;++
i
)
fiber
[
i
]=val; }
30
31
};
32
33
std::string
Asciifilename_
;
34
float
referenceValue_
;
35
edm::FileInPath
fp_
;
36
37
__gnu_cxx::hash_map< unsigned int,FibersGain>
GainsMap
;
38
//std::map< unsigned int,FibersGain> GainsMap;
39
40
};
41
#endif
i
int i
Definition:
DBlmapReader.cc:9
SiStripGainFromAsciiFile
Definition:
SiStripGainFromAsciiFile.h:12
SiStripGainFromAsciiFile::getNewObject
SiStripApvGain * getNewObject()
Definition:
SiStripGainFromAsciiFile.cc:28
SiStripGainFromAsciiFile::SiStripGainFromAsciiFile
SiStripGainFromAsciiFile(const edm::ParameterSet &)
Definition:
SiStripGainFromAsciiFile.cc:15
SiStripApvGain.h
SiStripGainFromAsciiFile::Asciifilename_
std::string Asciifilename_
Definition:
SiStripGainFromAsciiFile.h:33
SiStripGainFromAsciiFile::FibersGain::soft_reset
void soft_reset()
Definition:
SiStripGainFromAsciiFile.h:28
SiStripGainFromAsciiFile::FibersGain
Definition:
SiStripGainFromAsciiFile.h:25
SiStripGainFromAsciiFile::GainsMap
__gnu_cxx::hash_map< unsigned int, FibersGain > GainsMap
Definition:
SiStripGainFromAsciiFile.h:37
SiStripApvGain
Definition:
SiStripApvGain.h:20
SiStripGainFromAsciiFile::~SiStripGainFromAsciiFile
~SiStripGainFromAsciiFile()
Definition:
SiStripGainFromAsciiFile.cc:24
SiStripGainFromAsciiFile::FibersGain::hard_reset
void hard_reset(float val)
Definition:
SiStripGainFromAsciiFile.h:29
FileInPath.h
SiStripGainFromAsciiFile::FibersGain::fiber
float fiber[3]
Definition:
SiStripGainFromAsciiFile.h:26
ConditionDBWriter
Definition:
ConditionDBWriter.h:158
edm::FileInPath
Definition:
FileInPath.h:68
ConditionDBWriter.h
SiStripGainFromAsciiFile::referenceValue_
float referenceValue_
Definition:
SiStripGainFromAsciiFile.h:34
SiStripGainFromAsciiFile::fp_
edm::FileInPath fp_
Definition:
SiStripGainFromAsciiFile.h:35
edm::ParameterSet
Definition:
ParameterSet.h:35
Generated for CMSSW Reference Manual by
1.8.5