Coverity fixes (Jens)
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / CaloCellQA / AliAnalysisTaskCaloCellsQA.h
CommitLineData
045862db 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
2 * See cxx source for full Copyright notice */\r
3\r
4//_________________________________________________________________________\r
5// Container class for bad channels & bad runs identification\r
6// Author: Olga Driga (SUBATECH)\r
7\r
8#ifndef ALIANALYSISTASKCALOCELLSQA_H\r
9#define ALIANALYSISTASKCALOCELLSQA_H\r
10\r
11// --- ROOT system ---\r
12#include <TString.h>\r
045862db 13\r
14// --- AliRoot header files ---\r
15#include <AliAnalysisTaskSE.h>\r
16#include <AliCaloCellsQA.h>\r
17\r
18class AliAnalysisTaskCaloCellsQA : public AliAnalysisTaskSE {\r
19\r
20public:\r
21\r
22 // detectors\r
23 enum {\r
24 kEMCAL = 0,\r
25 kPHOS = 1\r
26// ,kDCAL = 2 // not implemented\r
27 };\r
28\r
d30ac678 29 AliAnalysisTaskCaloCellsQA();\r
30 AliAnalysisTaskCaloCellsQA(const char *name, Int_t nmods = 10, Int_t det = kEMCAL, char *outfile = NULL);\r
60a1d411 31 virtual ~AliAnalysisTaskCaloCellsQA();\r
045862db 32\r
045862db 33 void UserCreateOutputObjects();\r
34 void UserExec(Option_t *);\r
35 void Terminate(Option_t *);\r
36\r
f4dd0897 37 void SetBadCells(Int_t badcells[], Int_t nbad);\r
38\r
045862db 39 // getters and setters\r
d30ac678 40 AliCaloCellsQA* GetCaloCellsQA() { return fCellsQA; }\r
41 Bool_t GetAvoidPileup() { return fkAvoidPileup; }\r
42 const char* GetOutputFileName() { return fOutfile.Data(); }\r
43 void SetAvoidPileup(Bool_t flag) { fkAvoidPileup = flag; }\r
44 void SetOutputFileName(char* fname) { fOutfile = fname; }\r
045862db 45\r
f4dd0897 46protected:\r
47 Bool_t IsClusterBad(AliVCluster *clus);\r
48\r
045862db 49private:\r
50 AliAnalysisTaskCaloCellsQA(const AliAnalysisTaskCaloCellsQA &);\r
0d81af58 51 AliAnalysisTaskCaloCellsQA & operator = (const AliAnalysisTaskCaloCellsQA &);\r
045862db 52\r
53private:\r
d30ac678 54 Bool_t fkAvoidPileup; // flag not to process pileup events\r
55 AliCaloCellsQA* fCellsQA; // analysis instance\r
56 TString fOutfile; // output file name\r
57 Int_t fNBad; // number of entries in fBadCells\r
58 Int_t* fBadCells; //[fNBad] bad cells array\r
045862db 59\r
d30ac678 60 ClassDef(AliAnalysisTaskCaloCellsQA, 2);\r
045862db 61};\r
62\r
63#endif\r