1 #ifndef AliRsnMiniMonitor_H
2 #define AliRsnMiniMonitor_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////////////////////////////////////
11 ////////////////////////////////////////////////////////////////////////////////
13 #include "TObjArray.h"
18 class AliRsnMiniMonitor : public TNamed {
22 kdEdxTPCvsP, // TPC signal vs. momentum
23 ktimeTOFvsP, // TOF time vs. momentum
24 kTypes // total number of cuts
28 AliRsnMiniMonitor(const char *name, EType type, Int_t cutID);
29 AliRsnMiniMonitor(const AliRsnMiniMonitor& copy);
30 AliRsnMiniMonitor& operator=(const AliRsnMiniMonitor& copy);
31 virtual ~AliRsnMiniMonitor() { }
33 EType GetType() {return fType;}
34 Int_t GetCutID() {return fCutID;}
35 Int_t GetListID() {return fListID;}
37 void SetType(EType type) {fType = type;}
38 void SetCutID(Int_t id) {fCutID = id;}
40 static const char* Label(EType type);
41 Bool_t Init(const char *name, TList *list);
42 Bool_t Fill(AliRsnDaughter *track, AliRsnEvent *event);
46 EType fType; // monitor type
47 Int_t fCutID; // ID for cut to be used
48 Int_t fListID; // histogram ID in the list
49 TList *fList; //! global output list
51 ClassDef(AliRsnMiniMonitor, 1) // AliRsnMiniMonitor class
54 inline const char* AliRsnMiniMonitor::Label(EType type)
57 case kdEdxTPCvsP: return "TPCsignal";
58 case ktimeTOFvsP: return "TOFsignal";