Alignment
CocoaModel
src
OptOXLaser.cc
Go to the documentation of this file.
1
// COCOA class implementation file
2
//Id: OptOXLaser.cc
3
//CAT: Model
4
//
5
// History: v1.0
6
// Pedro Arce
7
8
#include "
Alignment/CocoaModel/interface/OptOXLaser.h
"
9
#include "
Alignment/CocoaModel/interface/LightRay.h
"
10
#include "
Alignment/CocoaModel/interface/Measurement.h
"
11
#ifdef COCOA_VIS
12
#include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
13
#include "Alignment/CocoaVisMgr/interface/ALIColour.h"
14
#endif
15
#include "
Alignment/CocoaDDLObjects/interface/CocoaSolidShapeTubs.h
"
16
#include "
Alignment/CocoaUtilities/interface/GlobalOptionMgr.h
"
17
18
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
19
//@@ default behaviour: create a LightRay object
20
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
21
void
OptOXLaser::defaultBehaviour
(
LightRay
& lightray,
Measurement
& meas) {
22
if
(
ALIUtils::debug
>= 3)
23
std::cout
<<
"create laser lightray "
<< std::endl;
24
lightray.
startLightRay
(
this
);
25
}
26
27
#ifdef COCOA_VIS
28
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
29
void
OptOXLaser::fillIguana
() {
30
//- std::cout << " filling optosensor " << std::endl;
31
// IgCocoaFileMgr igcomgr = IgCocoaFileMgr::getInstance();
32
ALIColour*
col
=
new
ALIColour(1., 0., 0., 0.);
33
std::vector<ALIdouble> spar;
34
spar.push_back(5.);
35
spar.push_back(1.);
36
spar.push_back(2.);
37
IgCocoaFileMgr::getInstance().addSolid(*
this
,
"BOX"
, spar,
col
);
38
std::vector<ALIdouble> spar2;
39
spar2.push_back(1.);
40
spar2.push_back(5.);
41
spar2.push_back(2.);
42
IgCocoaFileMgr::getInstance().addSolid(*
this
,
"BOX"
, spar2,
col
);
43
}
44
#endif
45
46
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
47
void
OptOXLaser::constructSolidShape
() {
48
ALIdouble
go;
49
GlobalOptionMgr
* gomgr =
GlobalOptionMgr::getInstance
();
50
gomgr->
getGlobalOptionValue
(
"VisScale"
, go);
51
52
theSolidShape
=
new
CocoaSolidShapeTubs
(
53
"Tubs"
, go * 0. * cm /
m
, go * 1. * cm /
m
, go * 5. * cm /
m
);
//COCOA internal units are meters
54
}
GlobalOptionMgr
Definition:
GlobalOptionMgr.h:18
OptOXLaser.h
GlobalOptionMgr::getInstance
static GlobalOptionMgr * getInstance()
Definition:
GlobalOptionMgr.cc:18
cuy.col
col
Definition:
cuy.py:1009
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
OptOXLaser::constructSolidShape
void constructSolidShape() override
Definition:
OptOXLaser.cc:47
GlobalOptionMgr.h
OptOXLaser::defaultBehaviour
void defaultBehaviour(LightRay &lightray, Measurement &meas) override
Definition:
OptOXLaser.cc:21
GlobalOptionMgr::getGlobalOptionValue
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
Definition:
GlobalOptionMgr.cc:115
OpticalObject::theSolidShape
CocoaSolidShape * theSolidShape
Definition:
OpticalObject.h:315
LightRay.h
CocoaSolidShapeTubs
Definition:
CocoaSolidShapeTubs.h:14
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:78
ALIUtils::debug
static ALIint debug
Definition:
ALIUtils.h:34
Measurement
Definition:
Measurement.h:27
OpticalObject::fillIguana
virtual void fillIguana()
Definition:
OpticalObject.h:55
Measurement.h
LightRay
Definition:
LightRay.h:20
ALIdouble
long double ALIdouble
Definition:
CocoaGlobals.h:11
LightRay::startLightRay
void startLightRay(OpticalObject *opto)
Definition:
LightRay.cc:26
CocoaSolidShapeTubs.h
Generated for CMSSW Reference Manual by
1.8.16