* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
- Produces the data needed to calculate the TOF quality assurance.
- QA objects are 1 & 2 Dimensional histograms.
- author: S.Arcelli
-*/
+
+///////////////////////////////////////////////////////////////////////
+// //
+// Produces the data needed to calculate the TOF quality assurance. //
+// QA objects are 1 & 2 Dimensional histograms. //
+// author: S.Arcelli //
+// //
+///////////////////////////////////////////////////////////////////////
#include <TClonesArray.h>
#include <TFile.h>
#include "AliTOFSDigit.h"
#include "AliTOFhitT0.h"
#include "AliTOFQADataMaker.h"
+#include "AliQAChecker.h"
#include "AliRawReader.h"
#include "AliTOFRawStream.h"
#include "AliTOFrawData.h"
Int_t out[5];
Int_t nentries=hits->GetEntriesFast();
- if(nentries==0) {
+ if(nentries<=0) {
GetHitsData(0)->Fill(-1.) ;
} else{
GetHitsData(0)->Fill(TMath::Log10(nentries)) ;
Int_t out[5];
Int_t nentries=digits->GetEntriesFast();
- if(nentries==0){
+ if(nentries<=0){
GetDigitsData(0)->Fill(-1.) ;
}else{
GetDigitsData(0)->Fill(TMath::Log10(nentries)) ;
Int_t out[5];
Int_t nentries=sdigits->GetEntriesFast();
- if(nentries==0){
+ if(nentries<=0){
GetSDigitsData(0)->Fill(-1.) ;
}else{
GetSDigitsData(0)->Fill(TMath::Log10(nentries)) ;
} // DDL Loop
Int_t nentries=ntof;
- if(nentries==0){
+ if(nentries<=0){
GetRawsData(0)->Fill(-1.) ;
}else{
GetRawsData(0)->Fill(TMath::Log10(nentries)) ;
clustersTree->GetEvent(0);
Int_t nentries=clusters->GetEntriesFast();
- if(nentries==0){
+ if(nentries<=0){
GetRecPointsData(0)->Fill(-1.) ;
}else{
GetRecPointsData(0)->Fill(TMath::Log10(nentries)) ;
}
Int_t nentries=ntof;
- if(nentries==0){
+ if(nentries<=0){
GetESDsData(0)->Fill(-1.) ;
}else{
GetESDsData(0)->Fill(TMath::Log10(nentries)) ;
//to be implemented
}
+//____________________________________________________________________________
+void AliTOFQADataMaker::EndOfDetectorCycle(AliQA::TASKINDEX task, TObjArray * list)
+{
+ //Detector specific actions at end of cycle
+ // do the QA checking
+
+ AliQAChecker::Instance()->Run(AliQA::kTOF, task, list) ;
+}
//____________________________________________________________________________
void AliTOFQADataMaker::GetMapIndeces(Int_t* in , Int_t* out)
{