]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
now QA not crash
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Dec 2007 10:33:20 +0000 (10:33 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Dec 2007 10:33:20 +0000 (10:33 +0000)
T0/AliT0QADataMaker.cxx

index 1e6fd880d998cb1998b1ebef82b502c7f532d542..21f6b372f51ff054807e50f4370807ac51806a5e 100644 (file)
 // --- AliRoot header files ---
 #include "AliESDEvent.h"
 #include "AliLog.h"
-#include "AliT0digit.h"
+#include "AliT0digit.h" 
 #include "AliT0hit.h"
 #include "AliT0RecPoint.h"
 #include "AliT0QADataMaker.h"
 #include "AliQAChecker.h"
-//#include "AliRawReaderFile.h"
 #include "AliT0RawReader.h"
 
 ClassImp(AliT0QADataMaker)
@@ -285,7 +284,7 @@ void AliT0QADataMaker::MakeHits(TTree *hitTree)
            break;
          }
          Int_t pmt=startHit->Pmt();
-         GetHitsData(pmt)->Fill(startHit->Time()) ;
+         GetHitsData(pmt-1)->Fill(startHit->Time()) ;
        }
     }
   }
@@ -346,7 +345,7 @@ void AliT0QADataMaker::MakeRaws( AliRawReader* rawReader)
       for (Int_t j0=0; j0<5; j0++) allData[i0][j0]=0;
     }
   //fills QA histos for RAW
- AliT0RawReader *start = new AliT0RawReader(rawReader);
+AliT0RawReader *start = new AliT0RawReader(rawReader);
  
  while (rawReader->NextEvent()) {
    start->Next();