]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/ITS/AliAnalysisTaskSPD.h
Adding macro to plot <Ncoll>
[u/mrichter/AliRoot.git] / PWGPP / ITS / AliAnalysisTaskSPD.h
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 //-----------------------------------------------------------------------
17 // Author : A. Mastroserio
18 //-----------------------------------------------------------------------
19
20 #ifndef ALIANALYSISTASKSPD_H
21 #define ALIANALYSISTASKSPD_H
22
23 #include "AliAnalysisTaskSE.h"
24
25 class TString;
26 class TList;
27
28 class AliITSsegmentationSPD;
29
30 class AliAnalysisTaskSPD : public AliAnalysisTaskSE {
31  public:
32
33
34   AliAnalysisTaskSPD();
35   AliAnalysisTaskSPD(const Char_t* name);
36   AliAnalysisTaskSPD& operator= (const AliAnalysisTaskSPD& c);
37   AliAnalysisTaskSPD(const AliAnalysisTaskSPD& c);
38   virtual ~AliAnalysisTaskSPD();
39
40   // ANALYSIS FRAMEWORK 
41   void     UserCreateOutputObjects();
42   void     UserExec(Option_t *option);
43   void     Terminate(Option_t *);
44
45   void     SetOCDBInfo(UInt_t runNb, const char *location) {fRunNb=runNb; fOCDBLocation=location;}
46   void     LoadGeometryFromOCDB(); 
47   
48   void     SetHeavyIonMode() {fHI=kTRUE;}
49   void     SetTestMode() {fTest=kTRUE;} 
50
51  protected:
52   AliITSsegmentationSPD *fSegSPD;  
53   TList          *fOutput   ;  // user histograms list
54   UInt_t fRunNb;               // run number
55   TString fOCDBLocation;       // ocdb path
56   Bool_t fHI;                  // changes to the histo limits 
57   Bool_t fTest;                // ocdb settings 
58
59   ClassDef(AliAnalysisTaskSPD,2);
60 };
61
62 #endif