1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 //_________________________________________________________________________
5 // Container class for bad channels & bad runs identification
6 // Author: Olga Driga (SUBATECH)
8 #ifndef ALIANALYSISTASKCALOCELLSQA_H
9 #define ALIANALYSISTASKCALOCELLSQA_H
11 // --- ROOT system ---
14 // --- AliRoot header files ---
15 #include <AliAnalysisTaskSE.h>
16 #include <AliCaloCellsQA.h>
18 class AliAnalysisTaskCaloCellsQA : public AliAnalysisTaskSE {
26 // ,kDCAL = 2 // not implemented
29 AliAnalysisTaskCaloCellsQA();
30 AliAnalysisTaskCaloCellsQA(const char *name, Int_t nmods = 10, Int_t det = kEMCAL, char *outfile = NULL);
31 virtual ~AliAnalysisTaskCaloCellsQA();
33 void UserCreateOutputObjects();
34 void UserExec(Option_t *);
35 void Terminate(Option_t *);
37 void SetBadCells(Int_t badcells[], Int_t nbad);
39 // getters and setters
40 AliCaloCellsQA* GetCaloCellsQA() { return fCellsQA; }
41 Bool_t GetAvoidPileup() { return fkAvoidPileup; }
42 const char* GetOutputFileName() { return fOutfile.Data(); }
43 void SetAvoidPileup(Bool_t flag) { fkAvoidPileup = flag; }
44 void SetOutputFileName(char* fname) { fOutfile = fname; }
47 Bool_t IsClusterBad(AliVCluster *clus);
50 AliAnalysisTaskCaloCellsQA(const AliAnalysisTaskCaloCellsQA &);
51 AliAnalysisTaskCaloCellsQA & operator = (const AliAnalysisTaskCaloCellsQA &);
54 Bool_t fkAvoidPileup; // flag not to process pileup events
55 AliCaloCellsQA* fCellsQA; // analysis instance
56 TString fOutfile; // output file name
57 Int_t fNBad; // number of entries in fBadCells
58 Int_t* fBadCells; //[fNBad] bad cells array
60 ClassDef(AliAnalysisTaskCaloCellsQA, 2);