Main Page
Namespaces
Classes
Package Documentation
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
28
35
class
OpticalAlignParam
{
36
public
:
37
OpticalAlignParam
();
38
OpticalAlignParam
(
const
OpticalAlignParam
&rhs );
39
40
std::string
name
()
const
{
return
name_
; }
41
double
value
()
const
{
return
value_
; }
42
double
sigma
()
const
{
return
error_
; }
43
int
quality
()
const
{
return
quality_
; }
44
std::string
dimType
()
const
{
return
dim_type_
; }
45
46
public
:
47
double
value_
;
48
double
error_
;
49
int
quality_
;
// f = fixed, c = calibrated, u = unknown.
50
std::string
name_
;
51
std::string
dim_type_
;
52
53
void
clear
() {
54
value_ = 0.0;
55
error_ = 0.0;
56
quality_ =
int
(
oa_unknown
);
57
name_.clear();
58
}
59
60
COND_SERIALIZABLE
;
61
};
62
63
// a Class holding data for an Optical Alignment transformation
72
class
OpticalAlignInfo
{
73
public
:
74
/*
75
OpticalAlignParam x() const { return x_; }
76
OpticalAlignParam y() const { return y_; }
77
OpticalAlignParam z() const { return z_; }
78
OpticalAlignParam angX() const { return angx_; }
79
OpticalAlignParam angY() const { return angy_; }
80
OpticalAlignParam angZ() const { return angz_; }
81
std::vector<OpticalAlignParam> extraEntries() const { return extraEntries_; }
82
std::string type() { return type_; }
83
std::string name() const { return name_; }
84
std::string parentName() const { return parentObjectName_; }
85
unsigned int ID() const { return ID_; }
86
*/
87
OpticalAlignParam
* findExtraEntry(
std::string
&
name
);
88
89
public
:
90
OpticalAlignParam
x_, y_,
z_
, angx_, angy_, angz_;
91
std::vector<OpticalAlignParam>
extraEntries_
;
92
std::string
type_
;
93
std::string
name_
;
94
std::string
parentName_
;
95
unsigned
int
ID_
;
96
void
clear
() {
97
x_.
clear
();
98
y_.
clear
();
99
z_.
clear
();
100
angx_.
clear
();
101
angy_.
clear
();
102
angz_.
clear
();
103
extraEntries_.clear();
104
type_.clear();
105
ID_ = 0;
106
}
107
108
COND_SERIALIZABLE
;
109
};
110
111
120
/* class OpticalAlignCOPSInfo : public OpticalAlignInfo { */
121
/* public: */
122
/* OpticalAlignParam dowel1X_, dowel1Y_; */
123
/* OpticalAlignParam upCCDtoDowel2X_, upCCDtoDowel2Y_; */
124
/* OpticalAlignParam downCCDtoDowel2X_, downCCDtoDowel2Y_; */
125
/* OpticalAlignParam leftCCDtoDowel2X_, leftCCDtoDowel2Y_; */
126
/* OpticalAlignParam rightCCDtoDowel2X_, rightCCDtoDowel2Y_; */
127
/* }; */
128
129
#endif //OpticalAlignInfo_H
OpticalAlignParam::OpticalAlignParam
OpticalAlignParam()
Definition:
OpticalAlignInfo.cc:6
OpticalAlignParam::clear
void clear()
Definition:
OpticalAlignInfo.h:53
OpticalAlignParam::quality
int quality() const
Definition:
OpticalAlignInfo.h:43
OpticalAlignInfo::parentName_
std::string parentName_
Definition:
OpticalAlignInfo.h:94
oa_unknown
Definition:
OAQuality.h:4
OpticalAlignInfo::clear
void clear()
Definition:
OpticalAlignInfo.h:96
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
OpticalAlignParam::name
std::string name() const
Definition:
OpticalAlignInfo.h:40
OpticalAlignParam::sigma
double sigma() const
Definition:
OpticalAlignInfo.h:42
OpticalAlignParam
Definition:
OpticalAlignInfo.h:35
OpticalAlignInfo::name_
std::string name_
Definition:
OpticalAlignInfo.h:93
operator<<
std::ostream & operator<<(std::ostream &, const OpticalAlignInfo &)
Definition:
OpticalAlignInfo.cc:12
OpticalAlignParam::dimType
std::string dimType() const
Definition:
OpticalAlignInfo.h:44
createfilelist.int
int
Definition:
createfilelist.py:10
OpticalAlignParam::value
double value() const
Definition:
OpticalAlignInfo.h:41
OpticalAlignInfo
Definition:
OpticalAlignInfo.h:72
OAQuality.h
OpticalAlignParam::quality_
int quality_
Definition:
OpticalAlignInfo.h:49
OpticalAlignParam::name_
std::string name_
Definition:
OpticalAlignInfo.h:50
OpticalAlignParam::value_
double value_
Definition:
OpticalAlignInfo.h:47
OpticalAlignInfo::z_
OpticalAlignParam z_
Definition:
OpticalAlignInfo.h:90
OpticalAlignInfo::extraEntries_
std::vector< OpticalAlignParam > extraEntries_
Definition:
OpticalAlignInfo.h:91
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
OpticalAlignInfo::type_
std::string type_
Definition:
OpticalAlignInfo.h:92
OpticalAlignParam::error_
double error_
Definition:
OpticalAlignInfo.h:48
OpticalAlignParam::dim_type_
std::string dim_type_
Definition:
OpticalAlignInfo.h:51
Serializable.h
OpticalAlignInfo::ID_
unsigned int ID_
Definition:
OpticalAlignInfo.h:95
Generated for CMSSW Reference Manual by
1.8.11