]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSQASPDDataMakerSim.cxx
QA classes for simulation. (P. Cerello, W. Ferrarese)
[u/mrichter/AliRoot.git] / ITS / AliITSQASPDDataMakerSim.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 /* $Id$  */\r
17 //  *************************************************************\r
18 //  Checks the quality assurance \r
19 //  by comparing with reference data\r
20 //  contained in a DB\r
21 //  -------------------------------------------------------------\r
22 //  W. Ferrarese + P. Cerello Feb 2008\r
23 //  INFN Torino\r
24 \r
25 // --- ROOT system ---\r
26 #include <TTree.h>\r
27 // --- Standard library ---\r
28 \r
29 // --- AliRoot header files ---\r
30 #include "AliITSQADataMakerSim.h"\r
31 #include "AliITSQASPDDataMakerSim.h"\r
32 #include "AliLog.h"\r
33 #include "AliQA.h"\r
34 #include "AliQAChecker.h"\r
35 #include "AliRawReader.h"\r
36 \r
37 ClassImp(AliITSQASPDDataMakerSim)\r
38 \r
39 //____________________________________________________________________________ \r
40 AliITSQASPDDataMakerSim::AliITSQASPDDataMakerSim(AliITSQADataMakerSim *aliITSQADataMakerSim) :\r
41 TObject(),\r
42 fAliITSQADataMakerSim(aliITSQADataMakerSim),\r
43 fSPDhDigits(0),\r
44 fSPDhSDigits(0),\r
45 fSPDhHits(0),\r
46 fDigitsOffset(0),\r
47 fSDigitsOffset(0),\r
48 fHitsOffset(0)\r
49 {\r
50   //ctor used to discriminate OnLine-Offline analysis   \r
51 }\r
52 \r
53 //____________________________________________________________________________ \r
54 AliITSQASPDDataMakerSim::AliITSQASPDDataMakerSim(const AliITSQASPDDataMakerSim& qadm) :\r
55 TObject(),\r
56 fAliITSQADataMakerSim(qadm.fAliITSQADataMakerSim),\r
57 fSPDhDigits(qadm.fSPDhDigits),\r
58 fSPDhSDigits(qadm.fSPDhSDigits),\r
59 fSPDhHits(qadm.fSPDhHits),\r
60 fDigitsOffset(qadm.fDigitsOffset),\r
61 fSDigitsOffset(qadm.fSDigitsOffset),\r
62 fHitsOffset(qadm.fHitsOffset)\r
63 {\r
64   //copy ctor \r
65   fAliITSQADataMakerSim->SetName((const char*)qadm.fAliITSQADataMakerSim->GetName()) ; \r
66   fAliITSQADataMakerSim->SetTitle((const char*)qadm.fAliITSQADataMakerSim->GetTitle());\r
67   }\r
68 \r
69 //__________________________________________________________________\r
70 AliITSQASPDDataMakerSim& AliITSQASPDDataMakerSim::operator = (const AliITSQASPDDataMakerSim& qac )\r
71 {\r
72   // Equal operator.\r
73   this->~AliITSQASPDDataMakerSim();\r
74   new(this) AliITSQASPDDataMakerSim(qac);\r
75   return *this;\r
76 }\r
77 \r
78 //____________________________________________________________________________ \r
79 void AliITSQASPDDataMakerSim::StartOfDetectorCycle()\r
80 {\r
81   //Detector specific actions at start of cycle\r
82   AliDebug(1,"AliITSQADM::Start of SPD Cycle\n");\r
83 }\r
84 \r
85 //____________________________________________________________________________ \r
86 void AliITSQASPDDataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX_t /*task*/, TObjArray* /*list*/)\r
87 {\r
88   // launch the QA checking\r
89   AliDebug(1,"AliITSDM instantiates checker with Run(AliQA::kITS, task, list)\n"); \r
90   \r
91   //AliQAChecker::Instance()->Run( AliQA::kITS , task, list);\r
92 }\r
93 \r
94 //____________________________________________________________________________ \r
95 void AliITSQASPDDataMakerSim::InitDigits()\r
96\r
97   // Initialization for DIGIT data - SPD -\r
98   fDigitsOffset = (fAliITSQADataMakerSim->fDigitsQAList)->GetEntries();\r
99 \r
100   // custom code here\r
101 \r
102   //fSPDhDigits must be incremented by one unit every time a histogram is ADDED to the QA List\r
103 \r
104   AliDebug(1,Form("%d SPD Digits histograms booked\n",fSPDhDigits));\r
105 \r
106 }\r
107 \r
108 \r
109 //____________________________________________________________________________\r
110 void AliITSQASPDDataMakerSim::MakeDigits(TTree * /*digits*/)\r
111\r
112   // Fill QA for DIGIT - SPD -\r
113 }\r
114 \r
115 \r
116 \r
117 \r
118 //____________________________________________________________________________ \r
119 void AliITSQASPDDataMakerSim::InitSDigits()\r
120\r
121   // Initialization for SDIGIT data - SPD -\r
122   fSDigitsOffset = (fAliITSQADataMakerSim->fSDigitsQAList)->GetEntries();\r
123 \r
124   // custom code here\r
125 \r
126   //fSPDhSDigits must be incremented by one unit every time a histogram is ADDED to the QA List\r
127 \r
128   AliDebug(1,Form("%d SPD SDigits histograms booked\n",fSPDhSDigits));\r
129 \r
130 }\r
131 \r
132 \r
133 //____________________________________________________________________________\r
134 void AliITSQASPDDataMakerSim::MakeSDigits(TTree * /*sdigits*/)\r
135\r
136   // Fill QA for SDIGIT - SPD -\r
137 }\r
138 \r
139 \r
140 \r
141 \r
142 \r
143 //____________________________________________________________________________ \r
144 void AliITSQASPDDataMakerSim::InitHits()\r
145\r
146   // Initialization for HITS data - SPD -\r
147   fHitsOffset = (fAliITSQADataMakerSim->fHitsQAList)->GetEntries();\r
148 \r
149   // custom code here\r
150 \r
151   //fSPDhHits must be incremented by one unit every time a histogram is ADDED to the QA List\r
152 \r
153   AliDebug(1,Form("%d SPD Hits histograms booked\n",fSPDhHits));\r
154 \r
155 }\r
156 \r
157 \r
158 //____________________________________________________________________________\r
159 void AliITSQASPDDataMakerSim::MakeHits(TTree * /*hits*/)\r
160\r
161   // Fill QA for HITS - SPD -\r
162 }\r