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 kTrackPt, // pt spectrum of single tracks with a given cut ID and charge
23 kdEdxTPCvsP, // TPC signal vs. momentum
24 ktimeTOFvsPKaon, // TOF time vs. momentum
25 ktimeTOFvsPPion, // TOF time vs. momentum
26 ktimeTOFvsPProton, // TOF time vs. momentum
27 kTypes // total number of cuts
31 AliRsnMiniMonitor(const char *name, EType type, Int_t cutID);
32 AliRsnMiniMonitor(const AliRsnMiniMonitor ©);
33 AliRsnMiniMonitor &operator=(const AliRsnMiniMonitor ©);
34 virtual ~AliRsnMiniMonitor() { }
36 EType GetType() {return fType;}
37 Int_t GetCutID() {return fCutID;}
38 Char_t GetCharge() {return fCharge;}
39 Int_t GetListID() {return fListID;}
41 void SetType(EType type) {fType = type;}
42 void SetCutID(Int_t id) {fCutID = id;}
43 void SetCharge(Char_t ch) {fCharge = ch;}
45 static const char *Label(EType type);
46 Bool_t Init(const char *name, TList *list);
47 Bool_t Fill(AliRsnDaughter *track, AliRsnEvent *event);
51 EType fType; // monitor type
52 Int_t fCutID; // ID for cut to be used
53 Char_t fCharge; // charge to be used
54 Int_t fListID; // histogram ID in the list
55 TList *fList; //! global output list
57 ClassDef(AliRsnMiniMonitor, 1) // AliRsnMiniMonitor class
60 inline const char *AliRsnMiniMonitor::Label(EType type)
63 case kdEdxTPCvsP : return "TPCsignal";
64 case ktimeTOFvsPPion : return "TOFsignalPi";
65 case ktimeTOFvsPKaon : return "TOFsignalK";
66 case ktimeTOFvsPProton: return "TOFsignalP";