]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/TestTPCTrackHits.cxx
close file when reload
[u/mrichter/AliRoot.git] / TPC / TestTPCTrackHits.cxx
index 846d108cf5776f061b05d3f8c9a24d5d4c5684fc..e0df85cfb2619e23d9fdc2eb78760fbdef381410 100644 (file)
@@ -1,8 +1,23 @@
-/*
-  Author : MI
-  macro to compare TClonesArray hits with interpolated hits
-  ConvertHits1 read 
-*/
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/// \class TestTPCTrackHits
+/// Macro to compare TClonesArray hits with interpolated hits
+/// ConvertHits1 read
+///
+/// \author MI
 
 #include "alles.h"
 #include "AliObjectArray.h"
 #include "AliArrayBranch.h"
 #include "TestTPCTrackHits.h"
  
+/// \cond CLASSIMP
 ClassImp(AliTPChitD)
+/// \endcond
  
 void CompareHits(TClonesArray * arr, AliTPCTrackHits * myhits,  Bool_t debug, TClonesArray *arrd=0);
 AliTPCTrackHits * MakeTrack(TClonesArray * arr, TClonesArray * arrp, AliTPCTrackHits *myhits);
 
 void ConvertHits(const char * benchmark, Bool_t debug)
 {      
-  //
-  //convert - not parametrised hits stored in Clones array
-  //to
 
+  /// convert - not parametrised hits stored in Clones array
+  /// to
 
   TFile f("galice.root","update");  
   TClonesArray *arr = new TClonesArray("AliTPChit",100);
@@ -45,7 +61,7 @@ void ConvertHits(const char * benchmark, Bool_t debug)
   TFile f3("treehcl.root","recreate");
   f3.SetCompressionLevel(2);
   TTree * treeh3 = new TTree("TreeTPCH","TreeTPCH");
-  treeh3->Branch("TPC", &arr,64000,2);
+  treeh3->Branch("TPC", &arr,64000,100);
 
   gBenchmark->Start(benchmark); 
   Int_t trsize = (Int_t)treeCl->GetEntries();
@@ -80,7 +96,8 @@ void ConvertHits(const char * benchmark, Bool_t debug)
 
 void CompareHits(const char * benchmark, Bool_t debug)
 {        
-  //compare persistent hits
+  /// compare persistent hits
+
   TFile f2("treeh.root");
   TTree * treeh2 = (TTree*)f2.Get("TreeTPCH");
   AliTPCTrackHits *  myhits = new AliTPCTrackHits ; 
@@ -113,7 +130,8 @@ void CompareHits(const char * benchmark, Bool_t debug)
 
 void CompareHitsG(const char * benchmark, Bool_t debug)
 {        
-  //compare persistent hits
+  /// compare persistent hits
+
   TFile f2("galice.root");
   TTree * treeh2 = (TTree*)f2.Get("TreeH0");
   AliTPCTrackHits *  myhits = new AliTPCTrackHits ; 
@@ -131,7 +149,7 @@ void CompareHitsG(const char * benchmark, Bool_t debug)
   f3.SetCompressionLevel(2);
   TTree * treeh3 = new TTree("DelataH","DeltaH");
   TClonesArray *arrd = new TClonesArray("AliTPChitD",100);
-  treeh3->Branch("TPC", &arrd,64000,2);
+  treeh3->Branch("TPC", &arrd,64000,100);
    
   cout<<"Lets go!\n"; 
   gBenchmark->Start(benchmark);
@@ -157,8 +175,8 @@ void CompareHitsG(const char * benchmark, Bool_t debug)
    
 AliTPCTrackHits * MakeTrack(TClonesArray * arr, TClonesArray * arrp, AliTPCTrackHits *myhits)  
 {
-  //
-  //make track wit hits  according 
+  /// make track wit hits  according
+
   AliTPChit * hit;
   //  AliTPCTrackHits * myhits= new AliTPCTrackHits;
   myhits->SetHitPrecision(0.002);
@@ -192,9 +210,9 @@ AliTPCTrackHits * MakeTrack(TClonesArray * arr, TClonesArray * arrp, AliTPCTrack
 
 void CompareHits(TClonesArray * arr, AliTPCTrackHits * myhits, Bool_t debug, TClonesArray *arrd)
 {     
-  //
-  // if debug option  kTRUE
-  // compare hits and write result  to the stdoutput
+  /// if debug option  kTRUE
+  /// compare hits and write result  to the stdoutput
+
   AliTPChit * hit, *hit2;
   if (arrd) arrd->Clear();
 
@@ -291,8 +309,8 @@ void   Fit2(Double_t fSumY, Double_t fSumYX, Double_t fSumYX2,
            Double_t fSumX4, Int_t n,
            Double_t &a, Double_t &b, Double_t &c)
 {
-  //
-  //recalc parameters not fixing origin point
+  /// recalc parameters not fixing origin point
+
   Double_t det = 
     n* (fSumX2*fSumX4-fSumX3*fSumX3) -
     fSumX*      (fSumX*fSumX4-fSumX3*fSumX2)+