]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGDQ/dielectron/AliDielectronHFhelper.h
update
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / AliDielectronHFhelper.h
CommitLineData
5e2cf960 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
23class AliDielectronHFhelper : public TNamed {
24public:
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);
443a091c 36
37 TObjArray* CollectHistos();
5e2cf960 38
39 TH1F* GetHistogram(const char *step);
40 TH1F* FindHistograms(TObjArray *histos);
41 TH1F* MergeHistos(TObjArray *arr);
42
43 void CheckCuts(TObjArray *arr);
443a091c 44 virtual void Print(const Option_t* option ="") const ;
5e2cf960 45 void PrintCuts();
46
47private:
443a091c 48 TObjArray *fArrPairType; // array of pair types, sources or steps
5e2cf960 49 TObjArray *fCutVars; // array for cut variables
50 TVectorD fCutLowLimits;
51 TVectorD fCutUpLimits;
52
53 AliDielectronHFhelper(const AliDielectronHFhelper &c);
54 AliDielectronHFhelper &operator=(const AliDielectronHFhelper &c);
55
56 ClassDef(AliDielectronHFhelper,0) // HF helper class
57};
58
59//
60// Inline functions
61//
62#endif
63