Updated QA classes
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Apr 2008 06:32:30 +0000 (06:32 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Apr 2008 06:32:30 +0000 (06:32 +0000)
ZDC/AliZDCQADataMaker.cxx
ZDC/AliZDCQADataMakerSim.cxx

index 766d6b6..0fa2bfb 100644 (file)
@@ -300,16 +300,20 @@ void AliZDCQADataMakerSim::MakeHits(TTree * hitTree)
     return;
   }
   else{
-    //
-    TClonesArray * hits = new TClonesArray("AliZDCHit", 1000);
-    //
     Int_t ntracks = (Int_t) hitTree->GetEntries();
+    //printf("\n\t *** no.track %d\n",ntracks);
     if (ntracks<=0) return;
     //
     for(Int_t itrack=0; itrack<ntracks; itrack++){
+      TClonesArray * hits = new TClonesArray("AliZDCHit", 1000);
+      //
       branch->SetAddress(&hits) ;
       branch->GetEntry(itrack);
       //
+      //printf("\t *** track %d",itrack);
+      //hits->Print("");
+      //printf("\n");
+      //
       MakeHits(hits); 
     }    
   }
index 11c712e..2c05719 100644 (file)
@@ -171,16 +171,20 @@ void AliZDCQADataMakerSim::MakeHits(TTree * hitTree)
     return;
   }
   else{
-    //
-    TClonesArray * hits = new TClonesArray("AliZDCHit", 1000);
-    //
     Int_t ntracks = (Int_t) hitTree->GetEntries();
+    //printf("\n\t *** no.track %d\n",ntracks);
     if (ntracks<=0) return;
     //
     for(Int_t itrack=0; itrack<ntracks; itrack++){
+      TClonesArray * hits = new TClonesArray("AliZDCHit", 1000);
+      //
       branch->SetAddress(&hits) ;
       branch->GetEntry(itrack);
       //
+      //printf("\t *** track %d",itrack);
+      //hits->Print("");
+      //printf("\n");
+      //
       MakeHits(hits); 
     }    
   }