]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/UserTasks/CaloCellQA/AliAnalysisTaskCaloCellsQA.h
1) static variable were replaced by local variables and data members
[u/mrichter/AliRoot.git] / PWG4 / UserTasks / 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
29 AliAnalysisTaskCaloCellsQA(const char *name = "AliAnalysisTaskCaloCellsQA");\r
30 ~AliAnalysisTaskCaloCellsQA();\r
31\r
32 void InitCaloCellsQA(char* fname, Int_t nmods = 10, Int_t det = kEMCAL);\r
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
40 AliCaloCellsQA* GetCaloCellsQA() { return fCellsQA; }\r
0d81af58 41 Bool_t GetAvoidPileup() { return fkAvoidPileup; }\r
045862db 42 const char* GetOutputFileName() { return fOutfile->Data(); }\r
0d81af58 43 void SetAvoidPileup(Bool_t flag) { fkAvoidPileup = flag; }\r
045862db 44 void SetOutputFileName(char* fname) { *fOutfile = fname; }\r
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
0d81af58 54 Bool_t fkAvoidPileup; // flag not to process pileup events\r
55 AliCaloCellsQA* fCellsQA; // analysis instance\r
56 TString* fOutfile; // output file name\r
f4dd0897 57 Int_t* fBadCells; // bad cells array\r
58 Int_t fNBad; // number of entries in fBadCells\r
045862db 59\r
60 ClassDef(AliAnalysisTaskCaloCellsQA, 1);\r
61};\r
62\r
63#endif\r