Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
CSCObjects
interface
CSCDBGains.h
Go to the documentation of this file.
1
#ifndef CSCDBGains_h
2
#define CSCDBGains_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include <iosfwd>
7
#include <vector>
8
9
class
CSCDBGains
{
10
public
:
11
CSCDBGains
(){}
12
~CSCDBGains
(){}
13
14
struct
Item
{
15
short
int
gain_slope
;
16
17
COND_SERIALIZABLE
;
18
};
19
int
factor_gain
;
20
21
enum
factors
{
FGAIN
=1000};
22
23
typedef
std::vector<Item>
GainContainer
;
24
GainContainer
gains
;
25
26
const
Item
&
item
(
int
index
)
const
{
return
gains
[
index
]; }
27
short
int
gain
(
int
index
)
const
{
return
gains
[
index
].gain_slope; }
28
int
scale
()
const
{
return
factor_gain
; }
29
30
COND_SERIALIZABLE
;
31
};
32
33
std::ostream &
operator<<
(std::ostream & os,
const
CSCDBGains
& cscdb);
34
35
#endif
36
CSCDBGains::Item
Definition:
CSCDBGains.h:14
CSCDBGains::item
const Item & item(int index) const
Definition:
CSCDBGains.h:26
CSCDBGains::FGAIN
Definition:
CSCDBGains.h:21
CSCDBGains
Definition:
CSCDBGains.h:9
CSCDBGains::~CSCDBGains
~CSCDBGains()
Definition:
CSCDBGains.h:12
CSCDBGains::CSCDBGains
CSCDBGains()
Definition:
CSCDBGains.h:11
CSCDBGains::Item::gain_slope
short int gain_slope
Definition:
CSCDBGains.h:15
CSCDBGains::gains
GainContainer gains
Definition:
CSCDBGains.h:24
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
CSCDBGains::factor_gain
int factor_gain
Definition:
CSCDBGains.h:19
cmsHarvester.index
string index
Definition:
cmsHarvester.py:4378
CSCDBGains::factors
factors
Definition:
CSCDBGains.h:21
CSCDBGains::GainContainer
std::vector< Item > GainContainer
Definition:
CSCDBGains.h:23
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:30
CSCDBGains::gain
short int gain(int index) const
Definition:
CSCDBGains.h:27
CSCDBGains::scale
int scale() const
Definition:
CSCDBGains.h:28
Serializable.h
Generated for CMSSW Reference Manual by
1.8.5