]>
Commit | Line | Data |
---|---|---|
5eb970a4 | 1 | // |
2 | // *** Class AliRsnVATProcessInfo *** | |
3 | // | |
32992791 | 4 | // Virtual class which makes computations at the event level, |
5 | // in order to return a list of histograms useful to have a look | |
6 | // of the characteristics of used events. | |
7 | // If can be inherited and customized for the needs of the analysis. | |
5eb970a4 | 8 | // |
9 | // authors: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it) | |
10 | // M. Vala (email: martin.vala@cern.ch) | |
11 | // | |
12 | ||
4fbb2459 | 13 | #ifndef ALIRSNVATPROCESSINFO_H |
14 | #define ALIRSNVATPROCESSINFO_H | |
5eb970a4 | 15 | |
16 | #include <TNamed.h> | |
968abd78 | 17 | #include <TClonesArray.h> |
32992791 | 18 | |
4fbb2459 | 19 | class TH1I; |
968abd78 | 20 | class AliRsnFunction; |
21 | class AliRsnEvent; | |
5eb970a4 | 22 | |
23 | class AliRsnVATProcessInfo : public TNamed | |
24 | { | |
4fbb2459 | 25 | public: |
32992791 | 26 | AliRsnVATProcessInfo(const char *name = "RSNInfo"); |
5eb970a4 | 27 | AliRsnVATProcessInfo(const AliRsnVATProcessInfo& copy); |
32992791 | 28 | AliRsnVATProcessInfo& operator= (const AliRsnVATProcessInfo& copy); |
5eb970a4 | 29 | ~AliRsnVATProcessInfo(); |
30 | ||
32992791 | 31 | void GenerateInfoList(TList* list); |
5faf5a07 | 32 | virtual void FillInfo(); |
32992791 | 33 | virtual void PrintInfo(const Long64_t &num); |
5eb970a4 | 34 | |
32992791 | 35 | const char* GetEventHistogramName() { return Form("hEventsUsed_%s",GetName()); }; |
36 | Long64_t GetNumerOfEventsProcessed(); | |
28399a41 | 37 | void SetEventUsed(Int_t flag) { fEventUsed = flag; } |
38 | Int_t IsEventUsed() const { return fEventUsed; }; | |
968abd78 | 39 | void AddEventFunction(AliRsnFunction *fcn); |
5eb970a4 | 40 | |
32992791 | 41 | void SetPrintInfoNumber(const Long64_t &num=1) { fPrintInfoNumber = num; } |
5eb970a4 | 42 | |
4fbb2459 | 43 | private: |
5eb970a4 | 44 | |
9477aa42 | 45 | TH1I *fHistUsedEvents; // hist of used events |
46 | Int_t fEventUsed; // number of used events | |
968abd78 | 47 | TClonesArray fEventFunctions; // collection of functions computed on event |
5eb970a4 | 48 | |
9477aa42 | 49 | Long64_t fPrintInfoNumber; // print info number |
5eb970a4 | 50 | |
51 | ClassDef(AliRsnVATProcessInfo, 1) | |
52 | }; | |
53 | ||
54 | #endif |