Alignment
CocoaModel
interface
DeviationsFromFileSensor2D.h
Go to the documentation of this file.
1
// COCOA class header file
2
//Id: DeviationsFromFileSensor2D.h
3
//CAT: Model
4
//
5
// Base class to describe Optical Objects of type sensor 2D
6
//
7
// History: v1.0
8
// Pedro Arce
9
10
#ifndef _DEVIATIONSTRAVERSINGSENSOR2D_HH
11
#define _DEVIATIONSTRAVERSINGSENSOR2D_HH
12
13
#include "
Alignment/CocoaUtilities/interface/CocoaGlobals.h
"
14
#include "
Alignment/CocoaModel/interface/DeviationSensor2D.h
"
15
16
#include <vector>
17
18
class
ALIFileIn
;
19
20
typedef
std::vector<std::vector<DeviationSensor2D*> >
vvd
;
21
typedef
std::vector<DeviationSensor2D*>
vd
;
22
23
class
DeviationsFromFileSensor2D
{
24
public
:
25
//---------- Constructors / Destructor
26
DeviationsFromFileSensor2D
() {
27
theOffsetX
= 0.;
28
theOffsetY
= 0.;
29
};
30
~DeviationsFromFileSensor2D
(){};
31
32
// read file
33
void
readFile
(
ALIFileIn
& ifdevi);
34
35
// get the deviation in the matrix corresponding to the intersection point (intersx, intersy)
36
std::pair<ALIdouble, ALIdouble>
getDevis
(
ALIdouble
intersX,
ALIdouble
intersY);
37
38
// set offsetX/Y
39
void
setOffset
(
ALIdouble
offX,
ALIdouble
offY) {
40
theOffsetX
= offX;
41
theOffsetY
= offY;
42
}
43
44
// Access data
45
static
const
ALIbool
apply
() {
return
theApply
; }
46
47
// Set data
48
static
void
setApply
(
ALIbool
val
) {
theApply
=
val
; }
49
50
private
:
51
bool
firstScanDir
;
52
int
theScanSenseX
,
theScanSenseY
;
53
54
ALIuint
theNPoints
;
55
vvd
theDeviations
;
56
static
ALIbool
theApply
;
57
58
ALIint
verbose
;
59
60
ALIdouble
theOffsetX
,
theOffsetY
;
61
};
62
63
#endif
DeviationsFromFileSensor2D::firstScanDir
bool firstScanDir
Definition:
DeviationsFromFileSensor2D.h:51
ALIbool
bool ALIbool
Definition:
CocoaGlobals.h:19
DeviationsFromFileSensor2D::readFile
void readFile(ALIFileIn &ifdevi)
Definition:
DeviationsFromFileSensor2D.cc:20
DeviationsFromFileSensor2D::setApply
static void setApply(ALIbool val)
Definition:
DeviationsFromFileSensor2D.h:48
vd
std::vector< DeviationSensor2D * > vd
Definition:
DeviationsFromFileSensor2D.h:21
DeviationsFromFileSensor2D::theNPoints
ALIuint theNPoints
Definition:
DeviationsFromFileSensor2D.h:54
DeviationsFromFileSensor2D
Definition:
DeviationsFromFileSensor2D.h:23
DeviationsFromFileSensor2D::apply
static const ALIbool apply()
Definition:
DeviationsFromFileSensor2D.h:45
DeviationsFromFileSensor2D::theApply
static ALIbool theApply
Definition:
DeviationsFromFileSensor2D.h:56
DeviationsFromFileSensor2D::theOffsetX
ALIdouble theOffsetX
Definition:
DeviationsFromFileSensor2D.h:60
DeviationSensor2D.h
DeviationsFromFileSensor2D::theScanSenseY
int theScanSenseY
Definition:
DeviationsFromFileSensor2D.h:52
ALIdouble
long double ALIdouble
Definition:
CocoaGlobals.h:11
DeviationsFromFileSensor2D::theOffsetY
ALIdouble theOffsetY
Definition:
DeviationsFromFileSensor2D.h:60
ALIuint
unsigned int ALIuint
Definition:
CocoaGlobals.h:17
DeviationsFromFileSensor2D::theDeviations
vvd theDeviations
Definition:
DeviationsFromFileSensor2D.h:55
DeviationsFromFileSensor2D::~DeviationsFromFileSensor2D
~DeviationsFromFileSensor2D()
Definition:
DeviationsFromFileSensor2D.h:30
DeviationsFromFileSensor2D::verbose
ALIint verbose
Definition:
DeviationsFromFileSensor2D.h:58
heppy_batch.val
val
Definition:
heppy_batch.py:351
DeviationsFromFileSensor2D::DeviationsFromFileSensor2D
DeviationsFromFileSensor2D()
Definition:
DeviationsFromFileSensor2D.h:26
vvd
std::vector< std::vector< DeviationSensor2D * > > vvd
Definition:
DeviationsFromFileSensor2D.h:18
ALIint
int ALIint
Definition:
CocoaGlobals.h:15
DeviationsFromFileSensor2D::getDevis
std::pair< ALIdouble, ALIdouble > getDevis(ALIdouble intersX, ALIdouble intersY)
Definition:
DeviationsFromFileSensor2D.cc:146
CocoaGlobals.h
DeviationsFromFileSensor2D::setOffset
void setOffset(ALIdouble offX, ALIdouble offY)
Definition:
DeviationsFromFileSensor2D.h:39
DeviationsFromFileSensor2D::theScanSenseX
int theScanSenseX
Definition:
DeviationsFromFileSensor2D.h:52
ALIFileIn
Definition:
ALIFileIn.h:20
Generated for CMSSW Reference Manual by
1.8.16