Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondFormats
SiPixelObjects
interface
SiPixelCPEGenericErrorParm.h
Go to the documentation of this file.
1
#ifndef CondFormats_SiPixelObjects_SiPixelCPEGenericErrorParm_h
2
#define CondFormats_SiPixelObjects_SiPixelCPEGenericErrorParm_h 1
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include <vector>
7
#include <iosfwd>
8
9
//--- Maybe should make this a class const, but that'd be too much work.
10
//--- This usage is not worth it, since in the debugger will be obvious
11
//--- what this is! ;)
12
#define NONSENSE -99999.9
13
#define NONSENSE_I -99999
14
15
class
SiPixelCPEGenericErrorParm
{
16
public
:
18
struct
DbEntry
{
19
float
sigma
;
20
float
rms
;
21
float
bias
;
// For irradiated pixels
22
float
pix_height
;
// For decapitation
23
float
ave_Qclus
;
// Average cluster charge, For
24
DbEntry
() :
sigma
(
NONSENSE
),
rms
(
NONSENSE
),
25
bias
(
NONSENSE
),
pix_height
(
NONSENSE
),
26
ave_Qclus
(
NONSENSE
) {}
27
~DbEntry
() {}
28
29
COND_SERIALIZABLE
;
30
};
31
typedef
std::vector<DbEntry>
DbVector
;
32
34
struct
DbEntryBinSize
{
35
int
partBin_size
;
36
int
sizeBin_size
;
37
int
alphaBin_size
;
38
int
betaBin_size
;
39
DbEntryBinSize
() :
partBin_size
(
NONSENSE_I
),
sizeBin_size
(
NONSENSE_I
),
40
alphaBin_size
(
NONSENSE_I
),
betaBin_size
(
NONSENSE_I
) {}
41
~DbEntryBinSize
() {}
42
43
COND_SERIALIZABLE
;
44
};
45
typedef
std::vector<DbEntryBinSize>
DbBinSizeVector
;
46
47
SiPixelCPEGenericErrorParm
() :
errors_
(),
errorsBinSize_
() {}
48
virtual
~SiPixelCPEGenericErrorParm
(){}
49
51
friend
std::ostream&
operator<<
(std::ostream&
s
,
const
SiPixelCPEGenericErrorParm
& genericErrors);
52
54
void
fillCPEGenericErrorParm
(
double
version
,
std::string
file
);
55
57
inline
DbVector
&
errors
() {
return
errors_
; }
58
inline
DbBinSizeVector
&
errorsBin
() {
return
errorsBinSize_
; }
59
inline
double
&
version
() {
return
version_
;}
60
62
inline
const
DbVector
&
errors
()
const
{
return
errors_
; }
63
inline
const
DbBinSizeVector
&
errorsBinSize
()
const
{
return
errorsBinSize_
; }
64
inline
const
double
&
version
()
const
{
return
version_
;}
65
67
inline
void
reserve
() {
68
errors_
.reserve(1000);
69
errorsBinSize_
.reserve(4);
70
}
71
// &&& Should these sizes be computed on the fly from other
72
// &&& variables (which are currently not stored in this object,
73
// &&& but maybe should be?)
74
75
//inline void push_back( DbEntry e) {errors_.push_back(e);}
76
// inline void push_back_bin( DbEntryBinSize e) {errorsBinSize_.push_back(e);}
77
inline
void
set_version
(
double
v
) {
version_
=
v
;}
78
79
// &&& Should we be able to read this from an iostream? See PxCPEdbUploader...
80
81
private
:
82
DbVector
errors_
;
83
DbBinSizeVector
errorsBinSize_
;
84
double
version_
;
85
86
COND_SERIALIZABLE
;
87
};
88
89
#endif
SiPixelCPEGenericErrorParm::DbVector
std::vector< DbEntry > DbVector
Definition:
SiPixelCPEGenericErrorParm.h:31
mergeVDriftHistosByStation.file
tuple file
Definition:
mergeVDriftHistosByStation.py:54
SiPixelCPEGenericErrorParm::errorsBin
DbBinSizeVector & errorsBin()
Definition:
SiPixelCPEGenericErrorParm.h:58
SiPixelCPEGenericErrorParm::DbEntry::bias
float bias
Definition:
SiPixelCPEGenericErrorParm.h:21
SiPixelCPEGenericErrorParm::DbEntryBinSize::DbEntryBinSize
DbEntryBinSize()
Definition:
SiPixelCPEGenericErrorParm.h:39
SiPixelCPEGenericErrorParm::errorsBinSize
const DbBinSizeVector & errorsBinSize() const
Definition:
SiPixelCPEGenericErrorParm.h:63
SiPixelCPEGenericErrorParm::DbEntry::~DbEntry
~DbEntry()
Definition:
SiPixelCPEGenericErrorParm.h:27
SiPixelCPEGenericErrorParm::DbEntry::rms
float rms
Definition:
SiPixelCPEGenericErrorParm.h:20
SiPixelCPEGenericErrorParm::~SiPixelCPEGenericErrorParm
virtual ~SiPixelCPEGenericErrorParm()
Definition:
SiPixelCPEGenericErrorParm.h:48
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
SiPixelCPEGenericErrorParm::fillCPEGenericErrorParm
void fillCPEGenericErrorParm(double version, std::string file)
Function to fill the db object given a filename.
Definition:
SiPixelCPEGenericErrorParm.cc:5
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
NONSENSE_I
#define NONSENSE_I
Definition:
SiPixelCPEGenericErrorParm.h:13
SiPixelCPEGenericErrorParm::DbEntryBinSize::betaBin_size
int betaBin_size
Definition:
SiPixelCPEGenericErrorParm.h:38
SiPixelCPEGenericErrorParm::DbEntryBinSize::alphaBin_size
int alphaBin_size
Definition:
SiPixelCPEGenericErrorParm.h:37
SiPixelCPEGenericErrorParm::set_version
void set_version(double v)
Definition:
SiPixelCPEGenericErrorParm.h:77
SiPixelCPEGenericErrorParm::version_
double version_
Definition:
SiPixelCPEGenericErrorParm.h:84
SiPixelCPEGenericErrorParm
Definition:
SiPixelCPEGenericErrorParm.h:15
SiPixelCPEGenericErrorParm::DbEntryBinSize
A struct to hold the binning information for (part, size, alpha, beta)
Definition:
SiPixelCPEGenericErrorParm.h:34
SiPixelCPEGenericErrorParm::version
const double & version() const
Definition:
SiPixelCPEGenericErrorParm.h:64
SiPixelCPEGenericErrorParm::errors_
DbVector errors_
Definition:
SiPixelCPEGenericErrorParm.h:82
SiPixelCPEGenericErrorParm::DbEntry::pix_height
float pix_height
Definition:
SiPixelCPEGenericErrorParm.h:22
SiPixelCPEGenericErrorParm::DbEntry::sigma
float sigma
Definition:
SiPixelCPEGenericErrorParm.h:19
SiPixelCPEGenericErrorParm::DbEntry::DbEntry
DbEntry()
Definition:
SiPixelCPEGenericErrorParm.h:24
SiPixelCPEGenericErrorParm::DbBinSizeVector
std::vector< DbEntryBinSize > DbBinSizeVector
Definition:
SiPixelCPEGenericErrorParm.h:45
SiPixelCPEGenericErrorParm::DbEntry::ave_Qclus
float ave_Qclus
Definition:
SiPixelCPEGenericErrorParm.h:23
SiPixelCPEGenericErrorParm::errors
DbVector & errors()
Accessors for the vectors – non-const version.
Definition:
SiPixelCPEGenericErrorParm.h:57
SiPixelCPEGenericErrorParm::SiPixelCPEGenericErrorParm
SiPixelCPEGenericErrorParm()
Definition:
SiPixelCPEGenericErrorParm.h:47
SiPixelCPEGenericErrorParm::reserve
void reserve()
Reserve some reasonable sizes for the vectors.
Definition:
SiPixelCPEGenericErrorParm.h:67
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
SiPixelCPEGenericErrorParm::errorsBinSize_
DbBinSizeVector errorsBinSize_
Definition:
SiPixelCPEGenericErrorParm.h:83
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:37
SiPixelCPEGenericErrorParm::DbEntryBinSize::~DbEntryBinSize
~DbEntryBinSize()
Definition:
SiPixelCPEGenericErrorParm.h:41
NONSENSE
#define NONSENSE
Definition:
SiPixelCPEGenericErrorParm.h:12
SiPixelCPEGenericErrorParm::DbEntryBinSize::sizeBin_size
int sizeBin_size
Definition:
SiPixelCPEGenericErrorParm.h:36
Serializable.h
SiPixelCPEGenericErrorParm::version
double & version()
Definition:
SiPixelCPEGenericErrorParm.h:59
SiPixelCPEGenericErrorParm::errors
const DbVector & errors() const
Accessors for the vectors – const version.
Definition:
SiPixelCPEGenericErrorParm.h:62
SiPixelCPEGenericErrorParm::DbEntry
A struct to hold information for a given (alpha,beta,size)
Definition:
SiPixelCPEGenericErrorParm.h:18
SiPixelCPEGenericErrorParm::operator<<
friend std::ostream & operator<<(std::ostream &s, const SiPixelCPEGenericErrorParm &genericErrors)
Function to output the contents of the db object.
Definition:
SiPixelCPEGenericErrorParm.cc:51
SiPixelCPEGenericErrorParm::DbEntryBinSize::partBin_size
int partBin_size
Definition:
SiPixelCPEGenericErrorParm.h:35
Generated for CMSSW Reference Manual by
1.8.5