FindROOT + dictionary generating macro
[u/mrichter/AliRoot.git] / CORRFW / AliCFDataGrid.h
CommitLineData
563113d0 1#ifndef ALICFDATAGRID_H
2#define ALICFDATAGRID_H
3
4/* $Id$ */
5
6//--------------------------------------------------------------------//
7// //
8// AliCFDataGrid Class //
9// Class to handle observed data and correct them //
10// //
11//--------------------------------------------------------------------//
12
25488e18 13#include "AliCFGridSparse.h"
563113d0 14#include "AliCFEffGrid.h"
15#include "AliCFContainer.h"
563113d0 16
25488e18 17class AliCFDataGrid : public AliCFGridSparse
563113d0 18{
19 public:
20 AliCFDataGrid();
616d0493 21 AliCFDataGrid(const Char_t* name,const Char_t* title, const AliCFContainer &c, Int_t step); //create data grid from container
22 AliCFDataGrid(const Char_t* name,const Char_t* title, const Int_t nVarIn, const Int_t* nBinIn); //create empty data grid to fill it yourself
563113d0 23 AliCFDataGrid(const AliCFDataGrid& c);
563113d0 24 AliCFDataGrid& operator=(const AliCFDataGrid& c);
fb494025 25 virtual ~AliCFDataGrid();
26
563113d0 27 virtual Int_t GetSelDataStep() const {return fSelData;};
28
29 // Methods for handling/correcting data
30
fb494025 31 virtual const AliCFGridSparse* GetData() {return fContainer->GetGrid(fSelData);};
563113d0 32 virtual void ApplyEffCorrection(const AliCFEffGrid &eff);
33 virtual void ApplyBGCorrection(const AliCFDataGrid &c);
563113d0 34 //basic operations
35 virtual void Copy(TObject& data) const;
36
37
38 private:
39 Int_t fSelData; //sel step of the observed data
40 const AliCFContainer *fContainer; //pointer to the input data Container
318f64b1 41 ClassDef(AliCFDataGrid,2);
563113d0 42};
43
44#endif