]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/MUONDigitsInfo.cxx
From Bogdan: fix effc++ warnings, add comments.
[u/mrichter/AliRoot.git] / EVE / Alieve / MUONDigitsInfo.cxx
index d4e34712c4782bac72e073c4b2982517a75c557b..6bb6134c0e87342de39800453a42ad5a1a1f5c46 100644 (file)
@@ -1,3 +1,10 @@
+/* HEAD11Jul06 */
+//////////////////////////////////////////////////////////////////////////
+//                                                                      //
+// Access interface to the trees with digits, clusters, tracks          //
+//                                                                      //
+//////////////////////////////////////////////////////////////////////////
+
 #include <TColor.h>
 
 #include "MUONDigitsInfo.h"
@@ -12,10 +19,45 @@ using namespace std;
 
 ClassImp(MUONDigitsInfo)
 
+/**************************************************************************/
+MUONDigitsInfo::MUONDigitsInfo(const MUONDigitsInfo &dinfo) :
+  TObject(dinfo),
+  fDTree(dinfo.fDTree),
+  fRTree(dinfo.fRTree),
+  fTTree(dinfo.fTTree) 
+{
+  //
+  // Copy constructor
+  //
+
+}
+
+/**************************************************************************/
+MUONDigitsInfo& MUONDigitsInfo::operator=(const MUONDigitsInfo &dinfo)
+{
+  //
+  // Assignment operator
+  //
+
+  if (this != &dinfo) {
+
+    fDTree = dinfo.fDTree;
+    fRTree = dinfo.fDTree;
+    fTTree = dinfo.fDTree;
+
+  }
+
+  return *this;
+
+}
+
 /**************************************************************************/
 void MUONDigitsInfo::SetDTree(TTree* tree)
 {
-    
+  //
+  // Tree with digits
+  //    
+
   static const Exc_t eH("MUONDigitsInfo::SetDTree ");
 
   fDTree = tree;
@@ -25,7 +67,10 @@ void MUONDigitsInfo::SetDTree(TTree* tree)
 /**************************************************************************/
 void MUONDigitsInfo::SetRTree(TTree* tree)
 {
-    
+  //
+  // Tree with reconstructed points (clusters)
+  //    
+
   static const Exc_t eH("MUONDigitsInfo::SetRTree ");
 
   fRTree = tree;
@@ -35,7 +80,10 @@ void MUONDigitsInfo::SetRTree(TTree* tree)
 /**************************************************************************/
 void MUONDigitsInfo::SetTTree(TTree* tree)
 {
-    
+  //
+  // Tree with reconstructed tracks (tracking chambers)
+  //    
+
   static const Exc_t eH("MUONDigitsInfo::SetTTree ");
 
   fTTree = tree;
@@ -45,6 +93,9 @@ void MUONDigitsInfo::SetTTree(TTree* tree)
 /**************************************************************************/
 TClonesArray* MUONDigitsInfo::GetDigits(Int_t chamber)
 {
+  //
+  // Return tree with digits
+  //
 
   Char_t branchname[30];
 
@@ -60,6 +111,9 @@ TClonesArray* MUONDigitsInfo::GetDigits(Int_t chamber)
 /**************************************************************************/
 TClonesArray* MUONDigitsInfo::GetClusters(Int_t chamber)
 {
+  //
+  // Return tree with clusters
+  //
 
   if (chamber > 10) return 0;
 
@@ -77,6 +131,9 @@ TClonesArray* MUONDigitsInfo::GetClusters(Int_t chamber)
 /**************************************************************************/
 TClonesArray* MUONDigitsInfo::GetTracks()
 {
+  //
+  // Return tree with tracks
+  //
 
   Char_t branchname[30];
 
@@ -92,67 +149,69 @@ TClonesArray* MUONDigitsInfo::GetTracks()
 /*****************************************************************************/
 void MUONDigitsInfo::CreateColors()
 {
-//    Create the colors palette used to display clusters
-
-    Int_t k,i;
-    Int_t color;
-    Float_t r,g,b;
+  //
+  // Create the colors palette used to display clusters
+  //
+
+  Int_t k,i;
+  Int_t color;
+  Float_t r,g,b;
+  
+  for (k=1;k<=5;k++) {
     
-    for (k=1;k<=5;k++) {
-
-       switch(k) {
-       case 1:
-           for (i=1;i<=5;i++) {
-               r=1.;
-               g=i*0.2;  
-               b=0.;
-               color=i;
-               color=260+23-color;
-               new TColor(color,r,g,b);
-           } 
-           break;
-       case 2:
-           for (i=1;i<=4;i++) {
-               r=1.1-i*0.2;
-               g=1.;  
-               b=0.;
-               color=i+5;
-               color=260+23-color;
-               new TColor(color,r,g,b);
-           } 
-           break;
-       case 3:
-           for (i=1;i<=4;i++) {
-               r=0.;
-               g=1.;  
-               b=i*0.2+0.2;
-               color=i+9;
-               color=260+23-color;
-               new TColor(color,r,g,b);
-           } 
-           break;
-       case 4:
-           for (i=1;i<=4;i++) {
-               r=0.;
-               g=1.1-i*0.2;  
-               b=1.;
-               color=i+13;
-               color=260+23-color;
-               new TColor(color,r,g,b);
-           } 
-           break;
-       case 5:
-           for (i=1;i<=5;i++) {
-               r=i*0.2;
-               g=0.;  
-               b=1.;
-               color=i+17;
-               color=260+23-color;
-               new TColor(color,r,g,b);
-           } 
-           break;
-       }
-
+    switch(k) {
+    case 1:
+      for (i=1;i<=5;i++) {
+       r=1.;
+       g=i*0.2;  
+       b=0.;
+       color=i;
+       color=260+23-color;
+       new TColor(color,r,g,b);
+      } 
+      break;
+    case 2:
+      for (i=1;i<=4;i++) {
+       r=1.1-i*0.2;
+       g=1.;  
+       b=0.;
+       color=i+5;
+       color=260+23-color;
+       new TColor(color,r,g,b);
+      } 
+      break;
+    case 3:
+      for (i=1;i<=4;i++) {
+       r=0.;
+       g=1.;  
+       b=i*0.2+0.2;
+       color=i+9;
+       color=260+23-color;
+       new TColor(color,r,g,b);
+      } 
+      break;
+    case 4:
+      for (i=1;i<=4;i++) {
+       r=0.;
+       g=1.1-i*0.2;  
+       b=1.;
+       color=i+13;
+       color=260+23-color;
+       new TColor(color,r,g,b);
+      } 
+      break;
+    case 5:
+      for (i=1;i<=5;i++) {
+       r=i*0.2;
+       g=0.;  
+       b=1.;
+       color=i+17;
+       color=260+23-color;
+       new TColor(color,r,g,b);
+      } 
+      break;
     }
-
+    
+  }
+  
 }