//
// create Hits histograms in Hits subdir
//
+
+ Bool_t expert = kFALSE;
+
TH1F * h0 = new TH1F("hTOFHits", "Number of TOF Hits ",301, -1.02, 5.) ;
h0->Sumw2() ;
- Add2HitsList(h0, 0) ;
+ Add2HitsList(h0, 0, expert) ;
TH1F * h1 = new TH1F("hTOFHitsTime", "Hits Time Spectrum in TOF (ns)", 2000, 0., 200) ;
h1->Sumw2() ;
- Add2HitsList(h1, 1) ;
+ Add2HitsList(h1, 1, expert) ;
TH1F * h2 = new TH1F("hTOFHitsLength", "Length Spectrum in TOF (cm)", 500, 0., 500) ;
h2->Sumw2() ;
- Add2HitsList(h2, 2) ;
+ Add2HitsList(h2, 2, expert) ;
TH2F * h3 = new TH2F("hTOFHitsClusMap","Hits vs TOF eta-phi",183, -0.5, 182.5,865,-0.5,864.5) ;
h3->Sumw2() ;
- Add2HitsList(h3, 3) ;
+ Add2HitsList(h3, 3, expert) ;
}
//____________________________________________________________________________
//
// create Digits histograms in Digits subdir
//
+
+ Bool_t expert = kFALSE;
+
TH1F * h0 = new TH1F("hTOFDigits", "Number of TOF Digits ",301, -1.02, 5.) ; h0->Sumw2() ;
- Add2DigitsList(h0, 0) ;
+ Add2DigitsList(h0, 0, expert) ;
TH1F * h1 = new TH1F("hTOFDigitsTime", "Digits Time Spectrum in TOF (ns)", 2000, 0., 200) ;
h1->Sumw2() ;
- Add2DigitsList(h1, 1) ;
+ Add2DigitsList(h1, 1, expert) ;
TH1F * h2 = new TH1F("hTOFDigitsToT", "Digits ToT Spectrum in TOF (ns)", 500, 0., 50) ;
h2->Sumw2() ;
- Add2DigitsList(h2, 2) ;
+ Add2DigitsList(h2, 2, expert) ;
TH2F * h3 = new TH2F("hTOFDigitsClusMap","Digits vs TOF eta-phi",183, -0.5, 182.5,865,-0.5,864.5) ;
h3->Sumw2() ;
- Add2DigitsList(h3, 3) ;
+ Add2DigitsList(h3, 3, expert) ;
}
//
// create SDigits histograms in SDigits subdir
//
+
+ Bool_t expert = kFALSE;
+
TH1F * h0 = new TH1F("hTOFSDigits", "Number of TOF SDigits ",301, -1.02, 5.) ; h0->Sumw2() ;
- Add2SDigitsList(h0, 0) ;
+ Add2SDigitsList(h0, 0, expert) ;
TH1F * h1 = new TH1F("hTOFSDigitsTime", "SDigits Time Spectrum in TOF (ns)", 2000, 0., 200) ;
h1->Sumw2() ;
- Add2SDigitsList(h1, 1) ;
+ Add2SDigitsList(h1, 1, expert) ;
TH2F * h2 = new TH2F("hTOFSDigitsClusMap","SDigits vs TOF eta-phi",183, -0.5, 182.5,865,-0.5,864.5) ;
h2->Sumw2() ;
- Add2SDigitsList(h2, 2) ;
+ Add2SDigitsList(h2, 2, expert) ;
}
return;
}
- TClonesArray * hits = new TClonesArray("AliTOFhitT0", 1000);
- TClonesArray * dummy = new TClonesArray("AliTOFhitT0", 1000);
+ static TClonesArray statichits("AliTOFhitT0", 1000);
+ statichits.Clear();
+ TClonesArray *hits = &statichits;
+ static TClonesArray staticdummy("AliTOFhitT0", 1000);
+ staticdummy.Clear();
+ TClonesArray *dummy = &staticdummy;
branch->SetAddress(&dummy);
Int_t index = 0 ;
for (Int_t ientry = 0 ; ientry < branch->GetEntries() ; ientry++) {
}
}
- dummy->Delete();
- delete dummy;
MakeHits(hits) ;
}
}
//____________________________________________________________________________
-void AliTOFQADataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX task, TObjArray * list)
+void AliTOFQADataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray ** list)
{
//Detector specific actions at end of cycle
// do the QA checking