]>
Commit | Line | Data |
---|---|---|
7196ee4f | 1 | #ifndef AliRsnMiniMonitor_H |
2 | #define AliRsnMiniMonitor_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //////////////////////////////////////////////////////////////////////////////// | |
8 | // | |
9 | // Monitors | |
10 | // | |
11 | //////////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #include "TObjArray.h" | |
14 | ||
15 | class AliRsnDaughter; | |
16 | class AliRsnEvent; | |
17 | ||
18 | class AliRsnMiniMonitor : public TNamed { | |
19 | public: | |
20 | ||
21 | enum EType { | |
b6ab153d | 22 | kdEdxTPCvsP, // TPC signal vs. momentum |
23 | ktimeTOFvsPKaon, // TOF time vs. momentum | |
24 | ktimeTOFvsPPion, // TOF time vs. momentum | |
25 | ktimeTOFvsPProton, // TOF time vs. momentum | |
26 | kTypes // total number of cuts | |
7196ee4f | 27 | }; |
28 | ||
29 | AliRsnMiniMonitor(); | |
30 | AliRsnMiniMonitor(const char *name, EType type, Int_t cutID); | |
31 | AliRsnMiniMonitor(const AliRsnMiniMonitor& copy); | |
32 | AliRsnMiniMonitor& operator=(const AliRsnMiniMonitor& copy); | |
33 | virtual ~AliRsnMiniMonitor() { } | |
34 | ||
35 | EType GetType() {return fType;} | |
36 | Int_t GetCutID() {return fCutID;} | |
37 | Int_t GetListID() {return fListID;} | |
38 | ||
39 | void SetType(EType type) {fType = type;} | |
40 | void SetCutID(Int_t id) {fCutID = id;} | |
41 | ||
42 | static const char* Label(EType type); | |
43 | Bool_t Init(const char *name, TList *list); | |
44 | Bool_t Fill(AliRsnDaughter *track, AliRsnEvent *event); | |
45 | ||
46 | protected: | |
47 | ||
48 | EType fType; // monitor type | |
49 | Int_t fCutID; // ID for cut to be used | |
50 | Int_t fListID; // histogram ID in the list | |
51 | TList *fList; //! global output list | |
52 | ||
53 | ClassDef(AliRsnMiniMonitor, 1) // AliRsnMiniMonitor class | |
54 | }; | |
55 | ||
56 | inline const char* AliRsnMiniMonitor::Label(EType type) | |
57 | { | |
58 | switch (type) { | |
b6ab153d | 59 | case kdEdxTPCvsP : return "TPCsignal"; |
60 | case ktimeTOFvsPPion : return "TOFsignalPi"; | |
61 | case ktimeTOFvsPKaon : return "TOFsignalK"; | |
62 | case ktimeTOFvsPProton: return "TOFsignalP"; | |
63 | default : return "X"; | |
7196ee4f | 64 | } |
65 | } | |
66 | ||
67 | #endif |