]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveMUONChamberGL.cxx
update for the new location of TRD performance train
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveMUONChamberGL.cxx
index 49f1b70c22813158f8cb1aea2638986ff42550cf..6be87ed05e2e0d7563d6b3b8cd26a8ec2486b9b9 100644 (file)
@@ -1,38 +1,17 @@
 // $Id$
-// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+// Main authors: Matevz Tadel & Alja Mrak-Tadel & Bogdan Vulpescu: 2006, 2007
 
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-#include <Riostream.h>
-
-#include <TMath.h>
 
 #include "AliEveMUONChamberGL.h"
 
 #include <EveDet/AliEveMUONChamber.h>
 #include <EveDet/AliEveMUONChamberData.h>
 
-#include <TEveQuadSetGL.h>
 #include <TGLRnrCtx.h>
 #include <TGLIncludes.h>
 
@@ -47,6 +26,7 @@ ClassImp(AliEveMUONChamberGL)
 AliEveMUONChamberGL::AliEveMUONChamberGL() :
   TGLObject(),
   fChamber(0),
+  fQS1(), fQS2(),
   fRTS(0)
 {
   //
@@ -135,8 +115,6 @@ void AliEveMUONChamberGL::DrawQuads(TGLRnrCtx& rnrCtx) const
   glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT);
 
   glDisable(GL_LIGHTING);
-  glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
-  glEnable(GL_COLOR_MATERIAL);
   glDisable(GL_CULL_FACE);
 
   //Float_t c[4]; glGetFloatv(GL_CURRENT_COLOR, c);
@@ -167,7 +145,7 @@ void AliEveMUONChamberGL::DrawPoints() const
   glDisable(GL_LIGHTING);
   glLineWidth(1.0);
 
-  glColor3f(1.0,1.0,1.0);
+  TGLUtil::Color3f(1.0,1.0,1.0);
 
   glBegin(GL_LINES);
 
@@ -227,13 +205,7 @@ void AliEveMUONChamberGL::DrawChamberFrame() const
   Float_t *frameCoord;
   Float_t xOrig, yOrig, xRad, yRad, x, y, z;
 
-  UChar_t pix[4];
-  pix[0] = 255;
-  pix[1] =   0;
-  pix[2] =   0;
-  pix[3] = 255;
-
-  glColor4ubv(pix);
+  TGLUtil::Color4ub(255, 0, 0, 255);
 
   for (Int_t id = 0; id < nDetElem; id++) {
 
@@ -247,8 +219,13 @@ void AliEveMUONChamberGL::DrawChamberFrame() const
       yRad  = frameCoord[3];
       z     = frameCoord[4];
 
-      xRad += 0.0;
-      yRad += 0.0;
+      if (fChamber->GetID() < 2) {
+       xRad += TMath::Sign(15.0,(Double_t)xRad);
+       yRad += TMath::Sign(15.0,(Double_t)yRad);
+      } else {
+       xRad += TMath::Sign( 5.0,(Double_t)xRad);
+       yRad += TMath::Sign( 5.0,(Double_t)yRad);
+      }
 
       glBegin(GL_LINE_LOOP);