]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSQASPDDataMakerRec.cxx
1d22ff0c49fd5e164a621409ce694b13c3c54681
[u/mrichter/AliRoot.git] / ITS / AliITSQASPDDataMakerRec.cxx
1 /**************************************************************************\r
2  * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *\r
3  *                                                                        *\r
4  * Author: The ALICE Off-line Project.                                    *\r
5  * Contributors are mentioned in the code where appropriate.              *\r
6  *                                                                        *\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
15 \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
22 //  INFN Torino\r
23 \r
24 // --- ROOT system ---\r
25 #include <TTree.h>\r
26 // --- Standard library ---\r
27 \r
28 // --- AliRoot header files ---\r
29 #include "AliITSQASPDDataMakerRec.h"\r
30 #include "AliLog.h"\r
31 #include "AliQA.h"\r
32 #include "AliQAChecker.h"\r
33 #include "AliRawReader.h"\r
34 \r
35 ClassImp(AliITSQASPDDataMakerRec)\r
36 \r
37 //____________________________________________________________________________ \r
38 AliITSQASPDDataMakerRec::AliITSQASPDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode, Short_t ldc) :\r
39 TObject(),\r
40 fAliITSQADataMakerRec(aliITSQADataMakerRec),\r
41 fkOnline(kMode),\r
42 fLDC(ldc),\r
43 fSPDhRaws(0),\r
44 fSPDhRecs(0),\r
45 fRawsOffset(0),\r
46 fRecsOffset(0)\r
47 {\r
48   //ctor used to discriminate OnLine-Offline analysis   \r
49 }\r
50 \r
51 //____________________________________________________________________________ \r
52 AliITSQASPDDataMakerRec::AliITSQASPDDataMakerRec(const AliITSQASPDDataMakerRec& qadm) :\r
53 TObject(),\r
54 fAliITSQADataMakerRec(qadm.fAliITSQADataMakerRec),\r
55 fkOnline(qadm.fkOnline),\r
56 fLDC(qadm.fLDC),\r
57 fSPDhRaws(qadm.fSPDhRaws),\r
58 fSPDhRecs(qadm.fSPDhRecs),\r
59 fRawsOffset(qadm.fRawsOffset),\r
60 fRecsOffset(qadm.fRecsOffset)\r
61 {\r
62   //copy ctor \r
63   fAliITSQADataMakerRec->SetName((const char*)qadm.fAliITSQADataMakerRec->GetName()) ; \r
64   fAliITSQADataMakerRec->SetTitle((const char*)qadm.fAliITSQADataMakerRec->GetTitle());\r
65   }\r
66 \r
67 //__________________________________________________________________\r
68 AliITSQASPDDataMakerRec& AliITSQASPDDataMakerRec::operator = (const AliITSQASPDDataMakerRec& qac )\r
69 {\r
70   // Equal operator.\r
71   this->~AliITSQASPDDataMakerRec();\r
72   new(this) AliITSQASPDDataMakerRec(qac);\r
73   return *this;\r
74 }\r
75 \r
76 //____________________________________________________________________________ \r
77 void AliITSQASPDDataMakerRec::StartOfDetectorCycle()\r
78 {\r
79   //Detector specific actions at start of cycle\r
80   AliDebug(1,"AliITSQADM::Start of SPD Cycle\n");\r
81 }\r
82 \r
83 //____________________________________________________________________________ \r
84 void AliITSQASPDDataMakerRec::EndOfDetectorCycle(AliQA::TASKINDEX /*task*/, TObjArray* /*list*/)\r
85 {\r
86   // launch the QA checking\r
87   AliDebug(1,"AliITSDM instantiates checker with Run(AliQA::kITS, task, list)\n"); \r
88   \r
89   //AliQAChecker::Instance()->Run( AliQA::kITS , task, list);\r
90 }\r
91 \r
92 //____________________________________________________________________________ \r
93 void AliITSQASPDDataMakerRec::InitRaws()\r
94\r
95   // Initialization for RAW data - SPD -\r
96   fRawsOffset = (fAliITSQADataMakerRec->fRawsQAList)->GetEntries();\r
97 \r
98   // custom code here\r
99 \r
100   //fSPDhRaws must be incremented by one unit every time a histogram is ADDED to the QA List\r
101 \r
102   AliDebug(1,Form("%d SPD Raws histograms booked\n",fSPDhRaws));\r
103 \r
104 }\r
105 \r
106 \r
107 //____________________________________________________________________________\r
108 void AliITSQASPDDataMakerRec::MakeRaws(AliRawReader* /*rawReader*/)\r
109\r
110   // Fill QA for RAW - SPD -\r
111 }\r
112 \r
113 //____________________________________________________________________________ \r
114 void AliITSQASPDDataMakerRec::InitRecPoints()\r
115 {\r
116   // Initialization for RECPOINTS - SPD -\r
117   fRecsOffset = (fAliITSQADataMakerRec->fRecPointsQAList)->GetEntries();\r
118 \r
119   // custom code here\r
120 \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
123 \r
124 }\r
125 \r
126 //____________________________________________________________________________ \r
127 void AliITSQASPDDataMakerRec::MakeRecPoints(TTree * /*clustersTree*/)\r
128 {\r
129   // Fill QA for RecPoints - SPD -\r
130 }\r
131 \r