forked from alisw/AliPhysics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AliMixInfo.h
58 lines (43 loc) · 1.52 KB
/
AliMixInfo.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
48
49
50
51
52
53
54
55
56
57
58
//
// Class AliMixInfo
//
// AliMixInfo object contains information about one cut on for event mixing
// available for users containing mixing information
//
// authors:
// Martin Vala ([email protected])
//
#ifndef ALIMIXINFO_H
#define ALIMIXINFO_H
#include <TNamed.h>
#include <Rtypes.h>
class AliMixEventPool;
class TH1I;
class TList;
class TCollection;
class AliMixInfo : public TNamed {
public:
enum EInfoHistorgramType { kMainEvents = 0, kMixedEvents = 1, kNumTypes };
AliMixInfo(const char *name = "mix", const char *title = "MixInfo");
AliMixInfo(const AliMixInfo &obj);
virtual ~AliMixInfo();
void Reset(){;} // Not implemented
virtual void Print(Option_t *option = "") const;
virtual void Draw(Option_t *option = "");
virtual Long64_t Merge(TCollection *list);
void Add(AliMixInfo *mi);
void SetOutputList(TList *const list) { fHistogramList = list; }
void CreateHistogram(EInfoHistorgramType type, Int_t nbins, Int_t min, Int_t max);
void FillHistogram(AliMixInfo::EInfoHistorgramType type, Int_t value);
const char *GetNameHistogramByType(Int_t index) const;
const char *GetTitleHistogramByType(Int_t index) const;
TH1I *GetHistogramByType(Int_t index) const;
void SetEventPool(AliMixEventPool *evPool);
AliMixEventPool *GetEventPool(const char *name);
static void DynamicExec(AliMixInfo *const mixInfo);
private:
TList *fHistogramList; // histogram list
AliMixInfo &operator=(const AliMixInfo &) { return *this; }
ClassDef(AliMixInfo, 1)
};
#endif