84 QWidget* controller =
new QWidget(0);
85 Ui::frmCaloLegoController ui;
86 ui.setupUi(controller);
90 controller->setEnabled(
false);
94 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMB0,
"EMB0");
95 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMB1,
"EMB1");
96 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMB2,
"EMB2");
97 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMB3,
"EMB3");
98 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMEC0,
"EMEC0");
99 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMEC1,
"EMEC1");
100 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMEC2,
"EMEC2");
101 m_clockwork->checkBoxNamesMap.insert(ui.chbxEMEC3,
"EMEC3");
102 m_clockwork->checkBoxNamesMap.insert(ui.chbxHEC0,
"HEC0");
103 m_clockwork->checkBoxNamesMap.insert(ui.chbxHEC1,
"HEC1");
104 m_clockwork->checkBoxNamesMap.insert(ui.chbxHEC2,
"HEC2");
105 m_clockwork->checkBoxNamesMap.insert(ui.chbxHEC3,
"HEC3");
108 for(QCheckBox* cb :
m_clockwork->checkBoxNamesMap.keys())
220 SoDrawStyle *drawStyle =
new SoDrawStyle();
221 drawStyle->lineWidth=1;
222 SoLightModel *lm =
new SoLightModel();
223 lm->model=SoLightModel::BASE_COLOR;
225 SoMaterial *blue=
new SoMaterial();
226 blue->diffuseColor.setValue(0,0,1);
228 SoMaterial *
green=
new SoMaterial();
229 green->diffuseColor.setValue(0 , 1, 0);
231 SoMaterial *
yellow=
new SoMaterial();
232 yellow->diffuseColor.setValue(0, 1.00, 1.00);
234 SoMaterial *magenta =
new SoMaterial();
235 magenta->diffuseColor.setValue(1.00,0.00, 1.00);
237 for (
int i=0;i<4;i++) {
261 for (e=manager->beginFCAL();e!=manager->endFCAL(); ++e) {
264 SoSeparator *sep1 =
new SoSeparator();
269 double x = t->getX();
270 double y = t->getY();
278 SoVertexProperty *vtxProperty =
new SoVertexProperty();
279 vtxProperty->vertex.set1Value(cc++, SbVec3f(
x-dx+3,
y-dy+3 ,0));
280 vtxProperty->vertex.set1Value(cc++, SbVec3f(
x+dx-3,
y-dy+3, 0));
281 vtxProperty->vertex.set1Value(cc++, SbVec3f(
x+dx-3,
y+dy-3 ,0));
282 vtxProperty->vertex.set1Value(cc++, SbVec3f(
x-dx+3,
y+dy-3 ,0));
283 vtxProperty->vertex.set1Value(cc++, SbVec3f(
x-dx+3,
y-dy+3 ,0));
285 SoLineSet *ls =
new SoLineSet();
287 ls->vertexProperty=vtxProperty;
305 for (e=manager->beginDetectorRegion();e!=manager->endDetectorRegion(); ++e) {
308 SoSeparator *sep1 =
new SoSeparator();
311 for (
unsigned int iPhi=region->
beginPhiIndex();iPhi<region->endPhiIndex();iPhi++) {
312 for (
unsigned int iEta=region->
beginEtaIndex();iEta<region->endEtaIndex();iEta++) {
316 double phiMin = cellPtr->getPhiLocalLower();
317 double phiMax = cellPtr->getPhiLocalUpper();
318 double etaMin = cellPtr->getEtaMinNominal();
319 double etaMax = cellPtr->getEtaMaxNominal();
322 phiMin =
M_PI-phiMin;
323 phiMax =
M_PI-phiMax;
329 SoVertexProperty *vtxProperty =
new SoVertexProperty();
330 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMin ,0));
331 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMax ,0));
332 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMax,phiMax ,0));
333 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMax,phiMin ,0));
334 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMin ,0));
336 SoLineSet *ls =
new SoLineSet();
338 ls->vertexProperty=vtxProperty;
357 for (e=manager->beginDetectorRegion();e!=manager->endDetectorRegion(); ++e) {
363 SoSeparator *sep1 =
new SoSeparator();
367 for (
unsigned int iPhi=region->
beginPhiIndex();iPhi<region->endPhiIndex();iPhi++) {
368 for (
unsigned int iEta=region->
beginEtaIndex();iEta<region->endEtaIndex();iEta++) {
373 double phiMin = cellPtr->getPhiLocalLower();
374 double phiMax = cellPtr->getPhiLocalUpper();
375 double etaMin = cellPtr->getEtaMin();
376 double etaMax = cellPtr->getEtaMax();
379 phiMin =
M_PI-phiMin;
380 phiMax =
M_PI-phiMax;
386 SoVertexProperty *vtxProperty =
new SoVertexProperty();
387 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMin ,0));
388 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMax ,0));
389 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMax,phiMax ,0));
390 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMax,phiMin ,0));
391 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMin ,0));
393 SoLineSet *ls =
new SoLineSet();
395 ls->vertexProperty=vtxProperty;
410 for (e=manager->beginDetectorRegion();e!=manager->endDetectorRegion(); ++e) {
412 SoSeparator *sep1 =
new SoSeparator();
415 for (
unsigned int iPhi=region->
beginPhiIndex();iPhi<region->endPhiIndex();iPhi++) {
416 for (
unsigned int iEta=region->
beginEtaIndex();iEta<region->endEtaIndex();iEta++) {
420 double phiMin = cellPtr->getPhiLocalLower();
421 double phiMax = cellPtr->getPhiLocalUpper();
422 double etaMin = cellPtr->getEtaMin();
423 double etaMax = cellPtr->getEtaMax();
426 phiMin =
M_PI-phiMin;
427 phiMax =
M_PI-phiMax;
433 SoVertexProperty *vtxProperty =
new SoVertexProperty();
434 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMin ,0));
435 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMax ,0));
436 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMax,phiMax ,0));
437 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMax,phiMin ,0));
438 vtxProperty->vertex.set1Value(cc++, SbVec3f(etaMin,phiMin ,0));
440 SoLineSet *ls =
new SoLineSet();
442 ls->vertexProperty=vtxProperty;