]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtrackingAnalysis.h
Coding rule violations
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackingAnalysis.h
index ac40e72c583e152b3d6b8b168c40592ce151206c..0eb636bf20f90489af938f3bdcbacefe76f31ab9 100644 (file)
@@ -1,8 +1,18 @@
-
-
 #ifndef AliTRDtrackingAnalysis_H
 #define AliTRDtrackingAnalysis_H
 
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+////////////////////////////////////////////////////////////////////
+//                                                                //
+// Fills a set of QA histograms to check the correctness of       //
+// the TRD reconstruction                                         // 
+//                                                                //
+////////////////////////////////////////////////////////////////////
+
 #include "TObject.h"
 
 class TH1D;
@@ -13,86 +23,89 @@ class TGraphErrors;
 
 class AliRunLoader;
 class AliTRDgeometry;
-class AliESD;
+class AliESDEvent;
 class AliTRDcluster;
 class AliTRDtracker;
 
 class AliTRDtrackingAnalysis : public TObject {
+
+ public:
   
-  const char *fPath;
-  
-  TObjArray *fRefTPC;
-  TObjArray *fRefTRD;
-  Int_t fLabels[100000];
+  AliTRDtrackingAnalysis();
+  AliTRDtrackingAnalysis(const AliTRDtrackingAnalysis &t);
+  virtual ~AliTRDtrackingAnalysis() {}
+  AliTRDtrackingAnalysis  &operator=(const AliTRDtrackingAnalysis &/*t*/) { return *this; }
+    
+  void SetPath(const char *path) {fPath = path;}
 
-  AliRunLoader *fLoader;
-  TTree  *fEsdTree;
-  AliESD *fESD;
+  void DrawResolutionPt(int startEvent, int stopEvent);  
+  void DrawRecPointResolution(int startEvent, int stopEvent);
+  //void DrawTrackletResolution(int startEvent, int stopEvent);
 
-  AliTRDtracker *fTracker;
+ protected:
 
-  // histograms 
-  TH1D *fDeltaPt;
-  TH1D *fDeltaZ;
-  TH1D *fDeltaX;
-  TH1D *fDeltaYPos;
-  TH1D *fDeltaYNeg;
-
-  TH1D *fNPoints;
-  TH1D *fNGood;
-  
-  TH2D *fRefSpace;
+  void CheckFiles();
+  void LoadRecPointsFile();
+  void LoadRefs();
+  Int_t GetReference(Int_t label); 
+  Int_t GetMCPosition(Int_t label, Double_t x, Double_t &Y, Double_t &Z, Double_t &tgphi);
 
-  AliTRDgeometry *fGeo;
+  Int_t GetPhiBin(Double_t phi) const;
+  Double_t GetPhi(Int_t bin) const;
 
-  TH1D *fClY2;
-  TH1D *fClY3;
+  const char *fPath;              // Path to data directory
+  
+  TObjArray *fRefTPC;             // TPC track references
+  TObjArray *fRefTRD;             // TRD track references
+  Int_t fLabels[100000];          // Track lables
 
-  TH1D *fTgPhi;
-  TH1D *fClYTgPhi[12];
+  AliRunLoader *fLoader;          // AliRunLoader instance
+  TTree  *fEsdTree;               // ESD tree
+  AliESDEvent *fESD;                   // ESD
 
-  TGraphErrors *fGrResTgPhi;
-  TGraphErrors *fGrMeanTgPhi;
+  AliTRDtracker *fTracker;        // TRD tracker instance
 
+  // histograms 
+  TH1D *fDeltaPt;                 // Histogram for the pt resolution
+  TH1D *fDeltaZ;                  // Histogram for the cluster z deviation
+  TH1D *fDeltaX;                  // Histogram for the cluster x deviation
+  TH1D *fDeltaYPos;               // Histogram for the cluster y deviation (positives)
+  TH1D *fDeltaYNeg;               // Histogram for the cluster y deviation (negatives)
+
+  TH1D *fNPoints;                 // Histogram for the number of points
+  TH1D *fNGood;                   // Histogram for the number of good points
+  
+  TH2D *fRefSpace;                // Histogram for reference space 
 
-    //TH1D *fPullY2;
-  //TH1D *fPullY3;
+  AliTRDgeometry *fGeo;           // TRD geometry
 
-  TH1D *fTrklY;
-  TH1D *fTrklZ;
+  TH1D *fClY2;                    // Histogram for cluster studies Y
+  TH1D *fClY3;                    // Histogram for cluster studies Y
 
-  TH1D *fClZ;
-  TH2D *fClZZ;
-  TH2D *fClYY;
-  TH2D *fClYX;
-  TH1D *fNLabels;
-  TH1D *fBits;
-  TH1D *fRefDx;
+  TH1D *fTgPhi;                   // Histogram for tangens(phi)
+  TH1D *fClYTgPhi[12];            // Histogram cluster Y tangen phi
 
-  TH2D *fClZXref;
-  TH2D *fClZXcl;
+  TGraphErrors *fGrResTgPhi;      // Graph resolution tangens phi
+  TGraphErrors *fGrMeanTgPhi;     // Graph mean tangens phi
 
-  TH2D *fClPos;
+  //TH1D *fPullY2;
+  //TH1D *fPullY3;
 
-  void CheckFiles();
-  void LoadRecPointsFile();
-  void LoadRefs();
-  Int_t GetReference(Int_t label); 
-  Int_t GetMCPosition(Int_t label, Double_t x, Double_t &Y, Double_t &Z, Double_t &tgphi);
+  TH1D *fTrklY;                   // QA histogram
+  TH1D *fTrklZ;                   // QA histogram
 
-  Int_t GetPhiBin(Double_t phi);
-  Double_t GetPhi(Int_t bin);
+  TH1D *fClZ;                     // QA histogram
+  TH2D *fClZZ;                    // QA histogram
+  TH2D *fClYY;                    // QA histogram
+  TH2D *fClYX;                    // QA histogram
+  TH1D *fNLabels;                 // QA histogram
+  TH1D *fTestBits;                // QA histogram
+  TH1D *fRefDx;                   // QA histogram
 
- public:
-  
-  AliTRDtrackingAnalysis();
-  virtual ~AliTRDtrackingAnalysis() {}
-  
-  void SetPath(const char *path) {fPath = path;}
+  TH2D *fClZXref;                 // QA histogram
+  TH2D *fClZXcl;                  // QA histogram
 
-  void DrawResolutionPt(int startEvent, int stopEvent);  
-  void DrawRecPointResolution(int startEvent, int stopEvent);
-  //void DrawTrackletResolution(int startEvent, int stopEvent);
+  TH2D *fClPos;                   // QA histogram
  
   ClassDef(AliTRDtrackingAnalysis,1)            // qa for Digits
 };