src
CondFormats
OptAlignObjects
interface
OpticalAlignInfo.h
Go to the documentation of this file.
1
#ifndef OpticalAlignInfo_H
2
#define OpticalAlignInfo_H
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include <string>
7
#include <vector>
8
#include <iostream>
9
10
#include "
CondFormats/OptAlignObjects/interface/OAQuality.h
"
11
16
class
OpticalAlignInfo
;
17
18
std::ostream &
operator<<
(std::ostream &,
const
OpticalAlignInfo
&);
19
24
class
OpticalAlignParam
;
25
26
std::ostream &
operator<<
(std::ostream &,
const
OpticalAlignParam
&);
27
34
class
OpticalAlignParam
{
35
public
:
36
OpticalAlignParam
();
37
38
std::string
name
()
const
{
return
name_
; }
39
double
value
()
const
{
return
value_
; }
40
double
sigma
()
const
{
return
error_
; }
41
int
quality
()
const
{
return
quality_
; }
42
std::string
dimType
()
const
{
return
dim_type_
; }
43
44
public
:
45
double
value_
;
46
double
error_
;
47
int
quality_
;
// f = fixed, c = calibrated, u = unknown.
48
std::string
name_
;
49
std::string
dim_type_
;
50
51
void
clear
() {
52
value_
= 0.0;
53
error_
= 0.0;
54
quality_
=
int
(
oa_unknown
);
55
name_
.clear();
56
}
57
58
COND_SERIALIZABLE
;
59
};
60
61
// a Class holding data for an Optical Alignment transformation
70
class
OpticalAlignInfo
{
71
public
:
72
/*
73
OpticalAlignParam x() const { return x_; }
74
OpticalAlignParam y() const { return y_; }
75
OpticalAlignParam z() const { return z_; }
76
OpticalAlignParam angX() const { return angx_; }
77
OpticalAlignParam angY() const { return angy_; }
78
OpticalAlignParam angZ() const { return angz_; }
79
std::vector<OpticalAlignParam> extraEntries() const { return extraEntries_; }
80
std::string type() { return type_; }
81
std::string name() const { return name_; }
82
std::string parentName() const { return parentObjectName_; }
83
unsigned int ID() const { return ID_; }
84
*/
85
OpticalAlignParam
*
findExtraEntry
(
std::string
&
name
);
86
87
public
:
88
OpticalAlignParam
x_
,
y_
,
z_
,
angx_
,
angy_
,
angz_
;
89
std::vector<OpticalAlignParam>
extraEntries_
;
90
std::string
type_
;
91
std::string
name_
;
92
std::string
parentName_
;
93
unsigned
int
ID_
;
94
void
clear
() {
95
x_
.
clear
();
96
y_
.
clear
();
97
z_
.
clear
();
98
angx_
.
clear
();
99
angy_
.
clear
();
100
angz_
.
clear
();
101
extraEntries_
.clear();
102
type_
.clear();
103
ID_
= 0;
104
}
105
106
COND_SERIALIZABLE
;
107
};
108
117
/* class OpticalAlignCOPSInfo : public OpticalAlignInfo { */
118
/* public: */
119
/* OpticalAlignParam dowel1X_, dowel1Y_; */
120
/* OpticalAlignParam upCCDtoDowel2X_, upCCDtoDowel2Y_; */
121
/* OpticalAlignParam downCCDtoDowel2X_, downCCDtoDowel2Y_; */
122
/* OpticalAlignParam leftCCDtoDowel2X_, leftCCDtoDowel2Y_; */
123
/* OpticalAlignParam rightCCDtoDowel2X_, rightCCDtoDowel2Y_; */
124
/* }; */
125
126
#endif //OpticalAlignInfo_H
OpticalAlignParam::OpticalAlignParam
OpticalAlignParam()
Definition:
OpticalAlignInfo.cc:6
OpticalAlignParam::clear
void clear()
Definition:
OpticalAlignInfo.h:51
OpticalAlignParam::quality
int quality() const
Definition:
OpticalAlignInfo.h:41
OpticalAlignInfo::parentName_
std::string parentName_
Definition:
OpticalAlignInfo.h:92
oa_unknown
Definition:
OAQuality.h:4
OpticalAlignInfo::x_
OpticalAlignParam x_
Definition:
OpticalAlignInfo.h:88
OpticalAlignInfo::clear
void clear()
Definition:
OpticalAlignInfo.h:94
OpticalAlignParam::value
double value() const
Definition:
OpticalAlignInfo.h:39
OpticalAlignParam
Definition:
OpticalAlignInfo.h:34
OpticalAlignInfo::name_
std::string name_
Definition:
OpticalAlignInfo.h:91
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
operator<<
std::ostream & operator<<(std::ostream &, const OpticalAlignInfo &)
Definition:
OpticalAlignInfo.cc:11
OpticalAlignInfo::angx_
OpticalAlignParam angx_
Definition:
OpticalAlignInfo.h:88
OpticalAlignInfo::findExtraEntry
OpticalAlignParam * findExtraEntry(std::string &name)
Definition:
OpticalAlignInfo.cc:57
OpticalAlignInfo::y_
OpticalAlignParam y_
Definition:
OpticalAlignInfo.h:88
createfilelist.int
int
Definition:
createfilelist.py:10
OpticalAlignInfo
Definition:
OpticalAlignInfo.h:70
OAQuality.h
OpticalAlignParam::quality_
int quality_
Definition:
OpticalAlignInfo.h:47
OpticalAlignParam::name_
std::string name_
Definition:
OpticalAlignInfo.h:48
OpticalAlignParam::name
std::string name() const
Definition:
OpticalAlignInfo.h:38
OpticalAlignInfo::angz_
OpticalAlignParam angz_
Definition:
OpticalAlignInfo.h:88
OpticalAlignParam::value_
double value_
Definition:
OpticalAlignInfo.h:45
OpticalAlignInfo::z_
OpticalAlignParam z_
Definition:
OpticalAlignInfo.h:88
OpticalAlignInfo::extraEntries_
std::vector< OpticalAlignParam > extraEntries_
Definition:
OpticalAlignInfo.h:89
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
OpticalAlignInfo::type_
std::string type_
Definition:
OpticalAlignInfo.h:90
OpticalAlignInfo::angy_
OpticalAlignParam angy_
Definition:
OpticalAlignInfo.h:88
OpticalAlignParam::error_
double error_
Definition:
OpticalAlignInfo.h:46
OpticalAlignParam::dim_type_
std::string dim_type_
Definition:
OpticalAlignInfo.h:49
Serializable.h
OpticalAlignParam::dimType
std::string dimType() const
Definition:
OpticalAlignInfo.h:42
OpticalAlignInfo::ID_
unsigned int ID_
Definition:
OpticalAlignInfo.h:93
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
OpticalAlignParam::sigma
double sigma() const
Definition:
OpticalAlignInfo.h:40
Generated for CMSSW Reference Manual by
1.8.14