]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/acorde_raw.C
acorde_raw.C --> update of the macro used to visualize acorde data from raw data...
[u/mrichter/AliRoot.git] / EVE / alice-macros / acorde_raw.C
index 0b3e6a55d90867a977f394bb0fbdec84b14bdadb..374d6eb2df08b24ebbda5bc98d55fe1c1d880d38 100644 (file)
@@ -17,6 +17,9 @@ UChar_t g_acorde_raw_transp_off = 60;
 
 void acorde_raw()
 {
+
+  // From Mario RC
+
   AliEveEventManager::AssertGeometry();
 
   AliRawReader       * reader = AliEveEventManager::AssertRawReader();
@@ -39,14 +42,13 @@ void acorde_raw()
     return;
   }
 
-  TEveElementList* acorde = new TEveElementList("ACORDE Raw");
+  TEveElementList* acorde = new TEveElementList("ACORDE_Raw");
 
   gEve->AddElement(acorde);
 
   for (Int_t module=0; module < 60; module++)
   {
     TString path = acorde_module_path(module);
-    // printf("%2d - %s\n", i, path.Data());
 
     if ( ! gGeoManager->cd(path))
     {
@@ -58,13 +60,10 @@ void acorde_raw()
     // Here check state and assign color, I do it partially for now.
     Int_t  word_idx = module / 30;
     Int_t  bit_idx  = module % 30;
-    //Bool_t val      = (dy[word_idx] & (1 << bit_idx)) != 0;
-    Bool_t val      = (dy[word_idx] & (1 << bit_idx)) != 0; // from Mario
- //   printf("Module %2d: word_idx = %d, bit_idx = %2d => val = %d\n",
-   //        module, word_idx, bit_idx, val);
+    Bool_t val      = (dy[word_idx] & (1 << bit_idx)) != 0; 
 
     TEveGeoShape* eg_shape = new TEveGeoShape(TString::Format("Module %d", module),
-                                              TString::Format("Module %d, %s", module, val ? "ON" : "OFF"));
+                                              TString::Format("Module %d, %s", module, val ? "Fired" : "Not fired"));
     eg_shape->SetMainColor       (val ? g_acorde_raw_color_on  : g_acorde_raw_color_off);
     eg_shape->SetMainTransparency(val ? g_acorde_raw_transp_on : g_acorde_raw_transp_off);
     eg_shape->SetPickable(kTRUE);
@@ -92,7 +91,6 @@ TString acorde_module_path(Int_t module)
   TGeoPNEntry* pne = gGeoManager->GetAlignableEntry(Form("ACORDE/Array%d", module));
   if (!pne) return "";
 
-  //return Form("%s/ACORDE2_5", pne->GetTitle());
   return Form("%s/ACORDESCINTILLATORMODULE_6", pne->GetTitle());
 
 }