-
Notifications
You must be signed in to change notification settings - Fork 0
/
AliAlgDOFStat.h
47 lines (40 loc) · 1.36 KB
/
AliAlgDOFStat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef ALIALGDOFSTAT_H
#define ALIALGDOFSTAT_H
/*--------------------------------------------------------
Mergable bbject for statistics of points used by each DOF
-------------------------------------------------------*/
// Author: [email protected]
#include <TNamed.h>
class AliAlgSteer;
class TH1F;
class TCollection;
class AliAlgDOFStat : public TNamed
{
public:
AliAlgDOFStat(Int_t n=0);
virtual ~AliAlgDOFStat();
//
Int_t GetNDOFs() const {return fNDOFs;}
Int_t GetStat(int idf) const {return idf<fNDOFs ? fStat[idf] : 0;}
Int_t* GetStat() const {return (Int_t*)fStat;};
void SetStat(int idf,int v) {fStat[idf] = v;}
void AddStat(int idf,int v) {fStat[idf] += v;}
Int_t GetNMerges() const {return fNMerges;}
//
TH1F* CreateHisto(AliAlgSteer* st) const;
virtual void Print(Option_t* opt) const;
virtual Long64_t Merge(TCollection* list);
//
protected:
//
AliAlgDOFStat(const AliAlgDOFStat&);
AliAlgDOFStat& operator=(const AliAlgDOFStat&);
//
protected:
Int_t fNDOFs; // number of dofs defined
Int_t fNMerges; // number of merges
Int_t *fStat; //[fNDOFs] statistics per DOF
//
ClassDef(AliAlgDOFStat,1);
};
#endif