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