]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/dielectron/AliDielectronCF.h
Add dielectron framework to PWG3
[u/mrichter/AliRoot.git] / PWG3 / dielectron / AliDielectronCF.h
CommitLineData
b2a297fa 1#ifndef ALIDIELECTRONCF_H
2#define ALIDIELECTRONCF_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 AliDielectronCF #
9//# Dielectron Correction Framework Manager #
10//# #
11//# Authors: #
12//# Anton Andronic, GSI / A.Andronic@gsi.de #
13//# Ionut C. Arsene, GSI / I.C.Arsene@gsi.de #
14//# Julian Book, Uni Ffm / Julian.Book@cern.ch #
15//# Frederick Kramer, Uni Ffm, / Frederick.Kramer@cern.ch #
16//# Magnus Mager, CERN / Magnus.Mager@cern.ch #
17//# WooJin J. Park, GSI / W.J.Park@gsi.de #
18//# Jens Wiechula, Uni HD / Jens.Wiechula@cern.ch #
19//# #
20//#############################################################
21
22
23
24#include <TNamed.h>
25#include "AliDielectronVarManager.h"
26
27class AliAnalysisCuts;
28class AliAnalysisFilter;
29class AliCFContainer;
30
31class AliDielectronCF : public TNamed {
32public:
33 enum {kNmaxAddSteps=50};
34
35 AliDielectronCF();
36 AliDielectronCF(const char* name, const char* title);
37 virtual ~AliDielectronCF();
38
39 void SetStepsForEachCut(Bool_t steps=kTRUE) { fStepsForEachCut=steps; }
40 void SetStepsForCutsIncreasing(Bool_t steps=kTRUE) { fStepsForCutsIncreasing=steps; }
41
42 void SetPdgMother(Int_t pdg) { fPdgMother=pdg; }
43
44 void AddStepMask(UInt_t mask) { fStepMasks[fNStepMasks++]=mask; }
45
46 void AddVariable(AliDielectronVarManager::ValueTypes type, Int_t nbins, Double_t min, Double_t max);
47
48 void InitialiseContainer(const AliAnalysisFilter& filter);
49
50 void Fill(UInt_t mask, const TObject *particle);
51 void FillMC(const TObject *particle);
52
53 AliCFContainer* GetContainer() const { return fCfContainer; }
54
55private:
56 UInt_t fVariables[AliDielectronVarManager::kNMaxValues]; //configured variables
57
58 Int_t fNSteps; // number of selection steps
59 Int_t fNVars; // number of variables
60 Int_t fNBins[kNmaxAddSteps]; // array of numbers ob bins of the vars
61 Double_t fVarLoLimit[kNmaxAddSteps]; // array of the lower limits of the vars
62 Double_t fVarUpLimit[kNmaxAddSteps]; // array of the upper limits of the vars
63
64 Int_t fNCuts; // Number of cuts in the filter concerned
65
66 Bool_t fStepsForEachCut; //create steps for each cut?
67 Bool_t fStepsForCutsIncreasing; //create steps for increasing cut combinatons?
68 //e.g. cut1&cut2, cut1&cut2&cut3 ...
69
70 UInt_t fStepMasks[kNmaxAddSteps]; //steps for additional cut combinatons
71 UInt_t fNStepMasks; //number of configured step masks
72
73 Int_t fPdgMother; //Pdg code of MCtruth validation
74 AliCFContainer* fCfContainer; //the CF container
75
76 AliDielectronCF(const AliDielectronCF &c);
77 AliDielectronCF &operator=(const AliDielectronCF &c);
78
79 ClassDef(AliDielectronCF,1) //Dielectron Correction Framework handler
80};
81
82#endif