26 #include "AliQAChecker.h"
29 #include <TClonesArray.h>
49 AliQADataMakerSim(AliQAv1::GetDetName(AliQAv1::kMUON), "MUON Quality Assurance Data Maker"),
55 AliDebug(AliQAv1::GetQADebugLevel(),
"");
66 AliDebug(AliQAv1::GetQADebugLevel(),
"");
76 SetName((
const char*)qadm.GetName()) ;
77 SetTitle((
const char*)qadm.GetTitle());
85 AliDebug(AliQAv1::GetQADebugLevel(),
"");
97 AliDebug(AliQAv1::GetQADebugLevel(),
"");
107 const Bool_t expert = kTRUE ;
108 const Bool_t image = kTRUE ;
110 TH1F* h0 =
new TH1F(
"hHitDetElem",
"DetElemId distribution in Hits;Detection element Id;Counts", 1400, 100., 1500.);
111 Add2HitsList(h0, 0, !expert, image);
113 TH1F* h1 =
new TH1F(
"hHitPtot",
"P distribution in Hits;P [erg];Counts ", 300, 0., 300.);
114 Add2HitsList(h1, 1, !expert, image);
116 ClonePerTrigClass(AliQAv1::kHITS);
123 const Bool_t expert = kTRUE ;
124 const Bool_t image = kTRUE ;
126 TH1I* h0 =
new TH1I(
"hSDigitsDetElem",
"Detection element distribution in SDigits;Detection element Id;Counts", 1400, 100, 1500);
127 Add2SDigitsList(h0, 0, !expert, image);
129 TH1F* h1 =
new TH1F(
"hSDigitsCharge",
"Charge distribution in SDigits;Charge [??];Counts", 4096, 0, 4095);
130 Add2SDigitsList(h1, 1, !expert, image);
132 ClonePerTrigClass(AliQAv1::kSDIGITS);
139 const Bool_t expert = kTRUE ;
140 const Bool_t image = kTRUE ;
142 TH1I* h0 =
new TH1I(
"hDigitsDetElem",
"Detection element distribution in Digits;Detection element Id;Counts", 1400, 100, 1500);
143 Add2DigitsList(h0, 0, !expert, image);
145 TH1I* h1 =
new TH1I(
"hDigitsADC",
"ADC distribution in Digits;ACD value;Counts", 4096, 0, 4095);
146 Add2DigitsList(h1, 1, !expert, image);
148 ClonePerTrigClass(AliQAv1::kDIGITS);
159 hitsTree->GetEvent(0);
165 while ( ( hit = static_cast<AliMUONHit*>(next()) ) )
167 FillHitsData(0,hit->DetElemId());
168 FillHitsData(1,hit->Momentum());
171 IncEvCountCycleHits();
172 IncEvCountTotalHits();
184 sdigitsTree->GetEvent(0);
190 while ( ( dig = static_cast<AliMUONVDigit*>(next()) ) )
192 FillSDigitsData(0,dig->DetElemId());
193 FillSDigitsData(1,dig->Charge());
196 IncEvCountCycleSDigits();
197 IncEvCountTotalSDigits();
209 digitsTree->GetEvent(0);
215 while ( ( dig = static_cast<AliMUONVDigit*>(next()) ) )
217 FillDigitsData(0,dig->DetElemId());
218 FillDigitsData(1,dig->ADC());
221 IncEvCountCycleDigits();
222 IncEvCountTotalDigits();
231 ResetEventTrigClasses();
232 AliQAChecker::Instance()->Run(AliQAv1::kMUON, task, list) ;
virtual void MakeHits()
make hits QA from Array (not implemented)
virtual void StartOfDetectorCycle()
Interface for a digit container.
virtual void InitDigits()
init SDigits QA from Array
Virtual store to hold digit.
virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray **list)
virtual void InitHits()
init hits QA from Array
virtual TIterator * CreateIterator() const =0
Create an iterator to loop over all our digits.
AliMUONQADataMakerSim & operator=(const AliMUONQADataMakerSim &qadm)
virtual void InitSDigits()
init SDigits QA from Array
virtual void MakeDigits()
make Digits QA from Array (not implemented)
virtual AliMUONVDigitStore * Create() const =0
Create an (empty) object of the same concrete class as *this.
virtual AliMUONVStore * Create() const =0
Create an empty copy of this.
MUON Quality assurance data maker.
virtual void MakeSDigits()
make SDigits QA from Array (not implemented)
AliMUONVHitStore * fHitStore
! pointer to hit store
virtual TIterator * CreateIterator() const =0
Return an iterator to loop over hits.
virtual Bool_t Connect(TTree &tree, Bool_t alone=kTRUE) const
Connect us to a TTree (only valid if CanConnect()==kTRUE)
virtual ~AliMUONQADataMakerSim()
AliMUONVDigitStore * fDigitStore
! pointer to digit store