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
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
25 // --- ROOT system ---
\r
27 // --- Standard library ---
\r
29 // --- AliRoot header files ---
\r
30 #include "AliITSQADataMakerSim.h"
\r
31 #include "AliITSQASPDDataMakerSim.h"
\r
34 #include "AliQAChecker.h"
\r
35 #include "AliRawReader.h"
\r
37 ClassImp(AliITSQASPDDataMakerSim)
\r
39 //____________________________________________________________________________
\r
40 AliITSQASPDDataMakerSim::AliITSQASPDDataMakerSim(AliITSQADataMakerSim *aliITSQADataMakerSim) :
\r
42 fAliITSQADataMakerSim(aliITSQADataMakerSim),
\r
50 //ctor used to discriminate OnLine-Offline analysis
\r
53 //____________________________________________________________________________
\r
54 AliITSQASPDDataMakerSim::AliITSQASPDDataMakerSim(const AliITSQASPDDataMakerSim& qadm) :
\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
65 fAliITSQADataMakerSim->SetName((const char*)qadm.fAliITSQADataMakerSim->GetName()) ;
\r
66 fAliITSQADataMakerSim->SetTitle((const char*)qadm.fAliITSQADataMakerSim->GetTitle());
\r
69 //__________________________________________________________________
\r
70 AliITSQASPDDataMakerSim& AliITSQASPDDataMakerSim::operator = (const AliITSQASPDDataMakerSim& qac )
\r
73 this->~AliITSQASPDDataMakerSim();
\r
74 new(this) AliITSQASPDDataMakerSim(qac);
\r
78 //____________________________________________________________________________
\r
79 void AliITSQASPDDataMakerSim::StartOfDetectorCycle()
\r
81 //Detector specific actions at start of cycle
\r
82 AliDebug(1,"AliITSQADM::Start of SPD Cycle\n");
\r
85 //____________________________________________________________________________
\r
86 void AliITSQASPDDataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX_t /*task*/, TObjArray* /*list*/)
\r
88 // launch the QA checking
\r
89 AliDebug(1,"AliITSDM instantiates checker with Run(AliQA::kITS, task, list)\n");
\r
91 //AliQAChecker::Instance()->Run( AliQA::kITS , task, list);
\r
94 //____________________________________________________________________________
\r
95 void AliITSQASPDDataMakerSim::InitDigits()
\r
97 // Initialization for DIGIT data - SPD -
\r
98 fDigitsOffset = (fAliITSQADataMakerSim->fDigitsQAList)->GetEntries();
\r
100 // custom code here
\r
102 //fSPDhDigits must be incremented by one unit every time a histogram is ADDED to the QA List
\r
104 AliDebug(1,Form("%d SPD Digits histograms booked\n",fSPDhDigits));
\r
109 //____________________________________________________________________________
\r
110 void AliITSQASPDDataMakerSim::MakeDigits(TTree * /*digits*/)
\r
112 // Fill QA for DIGIT - SPD -
\r
118 //____________________________________________________________________________
\r
119 void AliITSQASPDDataMakerSim::InitSDigits()
\r
121 // Initialization for SDIGIT data - SPD -
\r
122 fSDigitsOffset = (fAliITSQADataMakerSim->fSDigitsQAList)->GetEntries();
\r
124 // custom code here
\r
126 //fSPDhSDigits must be incremented by one unit every time a histogram is ADDED to the QA List
\r
128 AliDebug(1,Form("%d SPD SDigits histograms booked\n",fSPDhSDigits));
\r
133 //____________________________________________________________________________
\r
134 void AliITSQASPDDataMakerSim::MakeSDigits(TTree * /*sdigits*/)
\r
136 // Fill QA for SDIGIT - SPD -
\r
143 //____________________________________________________________________________
\r
144 void AliITSQASPDDataMakerSim::InitHits()
\r
146 // Initialization for HITS data - SPD -
\r
147 fHitsOffset = (fAliITSQADataMakerSim->fHitsQAList)->GetEntries();
\r
149 // custom code here
\r
151 //fSPDhHits must be incremented by one unit every time a histogram is ADDED to the QA List
\r
153 AliDebug(1,Form("%d SPD Hits histograms booked\n",fSPDhHits));
\r
158 //____________________________________________________________________________
\r
159 void AliITSQASPDDataMakerSim::MakeHits(TTree * /*hits*/)
\r
161 // Fill QA for HITS - SPD -
\r