1 /**************************************************************************
\r
2 * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
\r
4 * Author: The ALICE Off-line Project. *
\r
5 * Contributors are mentioned in the code where appropriate. *
\r
7 * Permission to use, copy, modify and distribute this software and its *
\r
8 * documentation strictly for non-commercial purposes is hereby granted *
\r
9 * without fee, provided that the above copyright notice appears in all *
\r
10 * copies and that both the copyright notice and this permission notice *
\r
11 * appear in the supporting documentation. The authors make no claims *
\r
12 * about the suitability of this software for any purpose. It is *
\r
13 * provided "as is" without express or implied warranty. *
\r
14 **************************************************************************/
\r
16 // *************************************************************
\r
17 // Checks the quality assurance
\r
18 // by comparing with reference data
\r
19 // contained in a DB
\r
20 // -------------------------------------------------------------
\r
21 // W. Ferrarese + P. Cerello Feb 2008
\r
24 // --- ROOT system ---
\r
26 // --- Standard library ---
\r
28 // --- AliRoot header files ---
\r
29 #include "AliITSQASPDDataMakerRec.h"
\r
32 #include "AliQAChecker.h"
\r
33 #include "AliRawReader.h"
\r
35 ClassImp(AliITSQASPDDataMakerRec)
\r
37 //____________________________________________________________________________
\r
38 AliITSQASPDDataMakerRec::AliITSQASPDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode, Short_t ldc) :
\r
40 fAliITSQADataMakerRec(aliITSQADataMakerRec),
\r
48 //ctor used to discriminate OnLine-Offline analysis
\r
51 //____________________________________________________________________________
\r
52 AliITSQASPDDataMakerRec::AliITSQASPDDataMakerRec(const AliITSQASPDDataMakerRec& qadm) :
\r
54 fAliITSQADataMakerRec(qadm.fAliITSQADataMakerRec),
\r
55 fkOnline(qadm.fkOnline),
\r
57 fSPDhRaws(qadm.fSPDhRaws),
\r
58 fSPDhRecs(qadm.fSPDhRecs),
\r
59 fRawsOffset(qadm.fRawsOffset),
\r
60 fRecsOffset(qadm.fRecsOffset)
\r
63 fAliITSQADataMakerRec->SetName((const char*)qadm.fAliITSQADataMakerRec->GetName()) ;
\r
64 fAliITSQADataMakerRec->SetTitle((const char*)qadm.fAliITSQADataMakerRec->GetTitle());
\r
67 //__________________________________________________________________
\r
68 AliITSQASPDDataMakerRec& AliITSQASPDDataMakerRec::operator = (const AliITSQASPDDataMakerRec& qac )
\r
71 this->~AliITSQASPDDataMakerRec();
\r
72 new(this) AliITSQASPDDataMakerRec(qac);
\r
76 //____________________________________________________________________________
\r
77 void AliITSQASPDDataMakerRec::StartOfDetectorCycle()
\r
79 //Detector specific actions at start of cycle
\r
80 AliDebug(1,"AliITSQADM::Start of SPD Cycle\n");
\r
83 //____________________________________________________________________________
\r
84 void AliITSQASPDDataMakerRec::EndOfDetectorCycle(AliQA::TASKINDEX /*task*/, TObjArray* /*list*/)
\r
86 // launch the QA checking
\r
87 AliDebug(1,"AliITSDM instantiates checker with Run(AliQA::kITS, task, list)\n");
\r
89 //AliQAChecker::Instance()->Run( AliQA::kITS , task, list);
\r
92 //____________________________________________________________________________
\r
93 void AliITSQASPDDataMakerRec::InitRaws()
\r
95 // Initialization for RAW data - SPD -
\r
96 fRawsOffset = (fAliITSQADataMakerRec->fRawsQAList)->GetEntries();
\r
100 //fSPDhRaws must be incremented by one unit every time a histogram is ADDED to the QA List
\r
102 AliDebug(1,Form("%d SPD Raws histograms booked\n",fSPDhRaws));
\r
107 //____________________________________________________________________________
\r
108 void AliITSQASPDDataMakerRec::MakeRaws(AliRawReader* /*rawReader*/)
\r
110 // Fill QA for RAW - SPD -
\r
113 //____________________________________________________________________________
\r
114 void AliITSQASPDDataMakerRec::InitRecPoints()
\r
116 // Initialization for RECPOINTS - SPD -
\r
117 fRecsOffset = (fAliITSQADataMakerRec->fRecPointsQAList)->GetEntries();
\r
119 // custom code here
\r
121 //fSPDhRecs must be incremented by one unit every time a histogram is ADDED to the QA List
\r
122 AliDebug(1,Form("%d SPD Recs histograms booked\n",fSPDhRecs));
\r
126 //____________________________________________________________________________
\r
127 void AliITSQASPDDataMakerRec::MakeRecPoints(TTree * /*clustersTree*/)
\r
129 // Fill QA for RecPoints - SPD -
\r