]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGDQ/dielectron/AliDielectronHFhelper.h
-forgot to add the classes
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / AliDielectronHFhelper.h
1 #ifndef ALIDIELECTRONHFHELPER_H
2 #define ALIDIELECTRONHFHELPER_H
3 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //#############################################################
7 //#                                                           #
8 //#             Class AliDielectronHF                         #
9 //#       Dielectron Histogram Framework helper         #
10 //#                                                           #
11 //#  Authors:                                                 #
12 //#   Julian    Book,     Uni Ffm / Julian.Book@cern.ch       #
13 //#                                                           #
14 //#############################################################
15
16
17
18 #include <TNamed.h>
19 #include <TVectorD.h>
20
21 #include "AliDielectronVarManager.h"
22
23 class AliDielectronHFhelper : public TNamed {
24 public:
25   enum ECollectType { kSE=0, kME, kMEOS, kROT, kAll };
26     enum { kMaxCuts=10 };
27   
28   //AliDielectronHFhelper();
29   AliDielectronHFhelper(const char* filename);
30   
31   virtual ~AliDielectronHFhelper();
32   void SetHFArray(const char* filename);
33
34   void SetRangeUser(const char *varname, Double_t min, Double_t max, Bool_t leg=kFALSE);
35   void SetRangeUser(AliDielectronVarManager::ValueTypes type, Double_t min, Double_t max, Bool_t leg=kFALSE);
36   
37   TH1F* GetHistogram(const char *step);
38   TH1F* FindHistograms(TObjArray *histos);
39   TH1F* MergeHistos(TObjArray *arr);
40
41   void CheckCuts(TObjArray *arr);
42   void Print();
43   void PrintCuts();
44
45 private:
46   TObjArray *fArrPairType;             // array of pair types, sources or steps
47   //static const char *fCutVars[kMaxCuts];      // array for cut variables
48   TObjArray *fCutVars;             // array for cut variables
49   TVectorD fCutLowLimits;
50   TVectorD fCutUpLimits;
51   
52   AliDielectronHFhelper(const AliDielectronHFhelper &c);
53   AliDielectronHFhelper &operator=(const AliDielectronHFhelper &c);
54   
55   ClassDef(AliDielectronHFhelper,0)                   // HF  helper class
56 };
57
58 //
59 // Inline functions
60 //
61 #endif
62