]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterDrawAZ.cxx
new lookup table for sim. data with numberof TRMs
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterDrawAZ.cxx
index d7ecd414bcc29533c7f6480580357ef2a66d0a1b..53250865848b867b363418ce38d5d63ef24c3d0d 100644 (file)
 
 /* $Id$ */
 
+// -------------------------------------
 // Class AliMUONClusterDrawAZ
 // -------------------------------------
 // Cluster drawing for AZ cluster finder 
-//
 // Author: Alexander Zinchenko, JINR Dubna
 
 #include <stdlib.h>
 #include <Riostream.h>
-//#include <TROOT.h>
+#include <TROOT.h>
 #include <TCanvas.h>
 #include <TLine.h>
 //#include <TTree.h>
@@ -51,58 +51,47 @@ ClassImp(AliMUONClusterDrawAZ)
  
 //_____________________________________________________________________________
 AliMUONClusterDrawAZ::AliMUONClusterDrawAZ()
-  : TObject()
+  : TObject(),
+    fData(0x0),
+    fFind(0x0),
+    fnMu(0),
+    fEvent(0),
+    fChamber(0),
+    fidDE(0),
+    fDebug(0),
+    fModif(0)
 {
-// Default constructor
-  fFind = NULL; fData = NULL;
+/// Default constructor
   for (Int_t i=0; i<4; i++) fHist[i] = NULL;
 }
 
 //_____________________________________________________________________________
 AliMUONClusterDrawAZ::AliMUONClusterDrawAZ(AliMUONClusterFinderAZ *clusFinder)
-  : TObject()
+  : TObject(),
+    fData(0x0),
+    fFind(clusFinder),
+    fnMu(0),
+    fEvent(0),
+    fChamber(0),
+    fidDE(0),
+    fDebug(1),
+    fModif(0)
 {
-// Constructor
-  fFind = clusFinder;
+/// Constructor
   for (Int_t i=0; i<4; i++) fHist[i] = NULL;
-  fDebug = 1; 
-  fEvent = fChamber = fidDE = 0;
-  fModif = 0; //0; 
   Init();
 }
 
 //_____________________________________________________________________________
 AliMUONClusterDrawAZ::~AliMUONClusterDrawAZ()
 {
-  // Destructor
-}
-
-//_____________________________________________________________________________
-AliMUONClusterDrawAZ::AliMUONClusterDrawAZ(const AliMUONClusterDrawAZ& rhs)
-  : TObject(rhs)
-{
-// Protected copy constructor
-
-  AliFatal("Not implemented.");
+/// Destructor
 }
 
-
-//_____________________________________________________________________________
-AliMUONClusterDrawAZ&  
-AliMUONClusterDrawAZ::operator=(const AliMUONClusterDrawAZ& rhs)
-{
-// Protected assignement operator
-
-  if (this == &rhs) return *this;
-
-  AliFatal("Not implemented.");
-  return *this;  
-}    
-
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::Init()
 {
-  // Initialization
+/// Initialization
 
   TCanvas *c1 = new TCanvas("c1","Clusters",0,0,600,700);
   //c1->SetFillColor(10);
@@ -124,7 +113,7 @@ void AliMUONClusterDrawAZ::Init()
 //_____________________________________________________________________________
 Bool_t AliMUONClusterDrawAZ::FindEvCh(Int_t nev, Int_t ch)
 {
-  // Find requested event and chamber (skip the ones before the selected)
+/// Find requested event and chamber (skip the ones before the selected)
 
   if (nev < fEvent) return kFALSE;
   else if (nev == fEvent) {
@@ -140,7 +129,7 @@ Bool_t AliMUONClusterDrawAZ::FindEvCh(Int_t nev, Int_t ch)
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::DrawCluster()
 {
-  // Draw preclusters
+/// Draw preclusters
 
   TCanvas *c1 = (TCanvas*) gROOT->GetListOfCanvases()->FindObject("c1");
 
@@ -334,7 +323,7 @@ void AliMUONClusterDrawAZ::DrawCluster()
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::DrawHits()
 {
-  // Draw simulated and reconstructed hits 
+/// Draw simulated and reconstructed hits 
 
   TView *view[2] = { 0x0, 0x0 };
   Double_t p1[3]={0}, p2[3], xNDC[6], xl, yl, zl;
@@ -471,7 +460,8 @@ void AliMUONClusterDrawAZ::DrawHits()
 //_____________________________________________________________________________
 Int_t AliMUONClusterDrawAZ::Next()
 {
-  // What to do next?
+/// What to do next?
+
   // File
   FILE *lun = 0;
   //lun = fopen("pull.dat","w");
@@ -506,7 +496,8 @@ Int_t AliMUONClusterDrawAZ::Next()
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::ModifyHistos(void)
 {
-  // Modify histograms to bring them to (approximately) the same size
+/// Modify histograms to bring them to (approximately) the same size
+
   Int_t nhist = 0;
   Float_t hlim[4][4], hbin[4][4]; // first index - xmin, xmax, ymin, ymax
 
@@ -612,7 +603,7 @@ void AliMUONClusterDrawAZ::ModifyHistos(void)
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::AdjustHist(Double_t *xylim, const AliMUONPixel *pixPtr)
 {
-  // Adjust histogram limits for pixel drawing
+/// Adjust histogram limits for pixel drawing
 
   Float_t xypads[4];
   if (fHist[0]) {
@@ -632,7 +623,7 @@ void AliMUONClusterDrawAZ::AdjustHist(Double_t *xylim, const AliMUONPixel *pixPt
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::DrawHist(const char* canvas, TH2D *hist)
 {
-  // Draw histogram in given canvas 
+/// Draw histogram in given canvas 
 
   Int_t ix = 0;
   //((TCanvas*)gROOT->FindObject("c2"))->cd();
@@ -648,7 +639,7 @@ void AliMUONClusterDrawAZ::DrawHist(const char* canvas, TH2D *hist)
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::FillMuon(Int_t nfit, const Double_t *parOk, const Double_t *errOk)
 {
-  // Fill muon information
+/// Fill muon information
 
   Int_t indx, imax;
   Double_t cmax, rad;
@@ -674,7 +665,7 @@ void AliMUONClusterDrawAZ::FillMuon(Int_t nfit, const Double_t *parOk, const Dou
 //_____________________________________________________________________________
 void AliMUONClusterDrawAZ::UpdateCluster(Int_t npad)
 {
-  // Update cluster after removing non-overlapped pads
+/// Update cluster after removing non-overlapped pads
 
   Int_t cath = 0, ix = 0, iy = 0;
   cout << " Update cluster " << endl;
@@ -706,7 +697,7 @@ void AliMUONClusterDrawAZ::UpdateCluster(Int_t npad)
 //_____________________________________________________________________________
 TH2D* AliMUONClusterDrawAZ::GetBackground(Int_t iHist)
 {
-  // Build histogram with pads from the cluster contaminated by the background
+/// Build histogram with pads from the cluster contaminated by the background
 
   //return 0x0;
   Int_t cath = iHist / 2;