]>
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> | |
32992791 | 17 | |
4fbb2459 | 18 | class TH1I; |
5eb970a4 | 19 | |
20 | class AliRsnVATProcessInfo : public TNamed | |
21 | { | |
4fbb2459 | 22 | public: |
32992791 | 23 | AliRsnVATProcessInfo(const char *name = "RSNInfo"); |
5eb970a4 | 24 | AliRsnVATProcessInfo(const AliRsnVATProcessInfo& copy); |
32992791 | 25 | AliRsnVATProcessInfo& operator= (const AliRsnVATProcessInfo& copy); |
5eb970a4 | 26 | ~AliRsnVATProcessInfo(); |
27 | ||
32992791 | 28 | void GenerateInfoList(TList* list); |
29 | virtual void FillInfo(); | |
30 | virtual void PrintInfo(const Long64_t &num); | |
5eb970a4 | 31 | |
32992791 | 32 | const char* GetEventHistogramName() { return Form("hEventsUsed_%s",GetName()); }; |
33 | Long64_t GetNumerOfEventsProcessed(); | |
34 | void SetEventUsed(Bool_t isUsed = kTRUE) { fEventUsed = isUsed; } | |
35 | Bool_t IsEventUsed() const { return fEventUsed; }; | |
5eb970a4 | 36 | |
32992791 | 37 | void SetPrintInfoNumber(const Long64_t &num=1) { fPrintInfoNumber = num; } |
5eb970a4 | 38 | |
4fbb2459 | 39 | private: |
5eb970a4 | 40 | |
9477aa42 | 41 | TH1I *fHistUsedEvents; // hist of used events |
42 | Int_t fEventUsed; // number of used events | |
5eb970a4 | 43 | |
9477aa42 | 44 | Long64_t fPrintInfoNumber; // print info number |
5eb970a4 | 45 | |
46 | ClassDef(AliRsnVATProcessInfo, 1) | |
47 | }; | |
48 | ||
49 | #endif |