/* $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>
//_____________________________________________________________________________
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);
//_____________________________________________________________________________
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) {
//_____________________________________________________________________________
void AliMUONClusterDrawAZ::DrawCluster()
{
- // Draw preclusters
+/// Draw preclusters
TCanvas *c1 = (TCanvas*) gROOT->GetListOfCanvases()->FindObject("c1");
//_____________________________________________________________________________
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;
//_____________________________________________________________________________
Int_t AliMUONClusterDrawAZ::Next()
{
- // What to do next?
+/// What to do next?
+
// File
FILE *lun = 0;
//lun = fopen("pull.dat","w");
//_____________________________________________________________________________
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
//_____________________________________________________________________________
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]) {
//_____________________________________________________________________________
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();
//_____________________________________________________________________________
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;
//_____________________________________________________________________________
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;
//_____________________________________________________________________________
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;