]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/pmd_digits.C
Merge of EVE-dev branch.
[u/mrichter/AliRoot.git] / EVE / alice-macros / pmd_digits.C
index d2572d76aceae3604bdda214671743a2029d050d..ceb3c5d12a7ab0eaa97c20868a0bb2fb7b8ad727 100644 (file)
@@ -1,4 +1,12 @@
-// ---------------------------------------------------------------------- //
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 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.                                                 *
+ **************************************************************************/
+
 void pmd_digits(Int_t mode = 0)
 {
   Bool_t drawBackPolygons = kFALSE;
@@ -12,7 +20,7 @@ void pmd_digits(Int_t mode = 0)
   TString bsddl="DDL";
 
 
-  AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
+  AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
   rl->LoadDigits("PMD");
   TTree* pmdt = rl->GetTreeD("PMD", false);
 
@@ -22,7 +30,7 @@ void pmd_digits(Int_t mode = 0)
 
   TEveElementList* l = new TEveElementList("PMD");
   // l->SetTitle("tooltip");
-  // l->SetMainColor((Color_t)3);
+  // l->SetMainColor(3);
   gEve->AddElement(l);
 
   TEveRGBAPalette* pal = new TEveRGBAPalette(20, 1000);
@@ -77,17 +85,17 @@ void pmd_digits(Int_t mode = 0)
          iendDDL   = 6;
          zpos      = 360.;
        }
-      
+
       TEveElementList* lplane = new TEveElementList(spl.Data());
-      //  l->SetMainColor((Color_t)3);
+      //  l->SetMainColor(3);
       gEve->AddElement(lplane, l);
-      
+
       for (Int_t iddl = istartDDL; iddl < iendDDL; iddl++)
        {
          sddl = bsddl;
          sddl += iddl;
          TEveElementList* lddl = new TEveElementList(sddl.Data());
-         //  l->SetMainColor((Color_t)3);
+         //  l->SetMainColor(3);
          gEve->AddElement(lddl, lplane);
 
          modnumber = iddl*6;
@@ -103,8 +111,8 @@ void pmd_digits(Int_t mode = 0)
 
          for (Int_t ism = 0; ism < NSM; ism++)
            {
-             
-             Alieve::PMDModule *lmodule = new Alieve::PMDModule();
+
+             AliEvePMDModule *lmodule = new AliEvePMDModule();
              lmodule->SetPosition(0.,0.,zpos);
              lmodule->DisplayDigitsData(modnumber, pmdt);
               lmodule->SetPalette(pal);
@@ -112,8 +120,8 @@ void pmd_digits(Int_t mode = 0)
               {
                 TEveFrameBox* b = lmodule->GetFrame();
                 b->SetFrameWidth(1.5);
-                b->SetFrameColor((Color_t) 1);
-                b->SetBackColor ((Color_t) (kTeal - 9));
+                b->SetFrameColor(1);
+                b->SetBackColor (kTeal - 9);
                 b->SetFrameFill (kFALSE);
                 b->SetDrawBack  (kTRUE);
               }