]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/EBYE/LRC/AliLRCProcess.h
Fixes for coverity
[u/mrichter/AliRoot.git] / PWG2 / EBYE / LRC / AliLRCProcess.h
1 // This class is creatig TH2D histogramms for Nch - Nch , Nch - Pt , Pt - Pt 
2 // dirtributions for given ETA windows and some supplementary data for Long Range Correlation (LRC) analysis .  
3 // Class is designid to work with AliAnalysisTaskLRC
4
5 // Author : Andrey Ivanov , St.Peterburg State University
6 // Email: Andrey.Ivanov@cern.ch
7
8 // Version line : 3.5
9 // Version 3.5.5
10
11
12 #ifndef ALILRCPROCESS_H
13 #define ALILRCPROCESS_H
14
15 // Include
16 #include "TH1F.h"
17 #include  "TH1D.h"
18 #include "TH2D.h"
19 #include "TProfile.h"
20 #include "TList.h"
21 #include "TString.h"
22
23 class AliLRCProcess: public TObject 
24 {
25 public:
26 // Constructors 
27
28 AliLRCProcess(Double_t _StartForwardETA=-1.0,Double_t _EndForwardETA=1.0,Double_t _StartBakwardETA=-1.0,Double_t _EndBakwardETA=1.0); // Constructor with window setup makes ready-to-run processor
29
30 Bool_t InitDataMembers(); //Is to be called in CreateOutputObjects method
31
32 // Destructor 
33 virtual ~AliLRCProcess(); 
34
35  // Setters 
36   void SetForwardWindow(Double_t StartETA,Double_t EndETA);
37   void SetBackwardWindow(Double_t StartETA,Double_t EndETA);
38   void SetETAWindows(Double_t _StartForwardETA,Double_t _EndForwardETA,Double_t _StartBakwardETA,Double_t _EndBakwardETA);
39   void SetPtRange(Double_t LoPt,Double_t HiPt,Int_t PtBins);
40   void SetMultRange(Int_t LoMult,Int_t HiMult,Int_t MultBins=0);
41   
42
43 // Getters
44 TList* CreateOutput(); // Creates output object
45 TString GetShortDef(); // Returns fShortDef value
46
47 // Track by track event import
48 void StartEvent();  // Open new Event for track by track event import
49 void AddTrackPtEta(Double_t Pt, Double_t Eta ); // Imports track to the event
50 void FinishEvent(); // Close opened event
51
52 // 
53
54
55
56 private:
57   AliLRCProcess(const AliLRCProcess&); // Not implemented
58   AliLRCProcess& operator=(const AliLRCProcess&);// Not implemented
59
60  void SetShortDef();  // Sets fShortDef according to window paramiters
61
62 //Data Init and checks 
63 //Bool_t StateCheck();   // Check if data is OK
64 Bool_t fIsEventOpend;  // Indicates opened event 
65 Bool_t fIsOnline;  // Are data objects created
66 Bool_t fDisplayInitOnDemandWarning; // Switch warning when InitDataInDemand is called;
67 //Bool_t InitDataOnDemand(); // Create data objects 
68
69 // Statistics
70 Int_t fEventCount; //Number of processed events
71
72  // Windows paramiters -----------------------------------
73   
74   Double_t fStartForwardETA;  // Forward windos lover rapidity
75   Double_t fEndForwardETA;    // Forward window higer rapidity  
76   Double_t fStartBakwardETA;  // Bakward window lover rapidity
77   Double_t fEndBakwardETA;    // Bakward window higer rapidity
78
79   Double_t fHiPt;               // Max Pt for histos
80   Double_t fLoPt;               // Min Pt for histos
81   Int_t fHiMult;                // Min multiplicity for histos
82   Int_t fLoMult;                // Max multiplicity for histos
83   
84   Int_t fMultBins;              // N bins for multiplicity
85   Int_t fPtBins;                // N bins for Pt
86   
87
88 // Track by track import values
89 Double_t fSumPtFw;              // Summary Pt forward
90 Double_t fSumPtBw;              // Summary Pt backward
91 Int_t fNchFw;                   // Number of tracks Forward
92 Int_t fNchBw;                   // Number of tracks Backward
93
94
95
96
97 //Output data
98 TList* fOutList;    // List of output data
99
100 TString fShortDef; // Short desctiption 
101
102   // Total spectras (debugging for TAG selection)
103   TH1F        *fHistPt; // Overal Pt spectrum
104   TH1F        *fHistEta; // Overal Eta spectrum
105
106  
107  // Output histogramms -----------------------------------
108
109  
110   TH2D* fHistNN;        // N-N 2D Profile
111   TH2D* fHistPtN;       // Pt-N 2D Profile
112   TH2D* fHistPtPt;      // Pt-Pt 2D Profile
113   TProfile* fProfNberr; // Nbackward error Profile
114   TProfile* fProfdPtB;  // Used to store (in first bin) summary of PtB and its std diviation
115   TProfile* fProfTestLRC; // Diognostic LRC Pt - N correlation
116
117   // Supp. info for windows
118   //Forward
119   TH1D* fHistPtForward;   // Pt spectrum in Forward windows
120   TH1D* fHistEtaForward;  // Eta spectrum in Forward windows
121   TH1D* fHistNchForward;  // Nch spectrum in Forward windows
122   
123    //Bakward
124   TH1D* fHistPtBakward;   // Pt spectrum in Bakward windows
125   TH1D* fHistEtaBakward;  // Eta spectrum in Bakward windows
126   TH1D* fHistNchBakward;  // Nch spectrum in Bakward windows
127  
128  
129
130 ClassDef(AliLRCProcess, 1);
131 };
132
133 #endif
134