Added new cuts for (TPC pid & TOF match) and (TPC pid & TOF veto) for K* pA analysis
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnMiniMonitor.h
CommitLineData
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 */
61f275d1 6
7196ee4f 7////////////////////////////////////////////////////////////////////////////////
8//
9// Monitors
10//
11////////////////////////////////////////////////////////////////////////////////
12
13#include "TObjArray.h"
14
15class AliRsnDaughter;
16class AliRsnEvent;
17
18class AliRsnMiniMonitor : public TNamed {
19public:
20
21 enum EType {
9e7b94f5 22 kTrackPt, // pt spectrum of single tracks with a given cut ID and charge
b6ab153d 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
7196ee4f 28 };
29
30 AliRsnMiniMonitor();
31 AliRsnMiniMonitor(const char *name, EType type, Int_t cutID);
61f275d1 32 AliRsnMiniMonitor(const AliRsnMiniMonitor &copy);
33 AliRsnMiniMonitor &operator=(const AliRsnMiniMonitor &copy);
7196ee4f 34 virtual ~AliRsnMiniMonitor() { }
35
36 EType GetType() {return fType;}
37 Int_t GetCutID() {return fCutID;}
9e7b94f5 38 Char_t GetCharge() {return fCharge;}
7196ee4f 39 Int_t GetListID() {return fListID;}
61f275d1 40
7196ee4f 41 void SetType(EType type) {fType = type;}
42 void SetCutID(Int_t id) {fCutID = id;}
9e7b94f5 43 void SetCharge(Char_t ch) {fCharge = ch;}
7196ee4f 44
61f275d1 45 static const char *Label(EType type);
7196ee4f 46 Bool_t Init(const char *name, TList *list);
47 Bool_t Fill(AliRsnDaughter *track, AliRsnEvent *event);
48
49protected:
50
51 EType fType; // monitor type
52 Int_t fCutID; // ID for cut to be used
9e7b94f5 53 Char_t fCharge; // charge to be used
7196ee4f 54 Int_t fListID; // histogram ID in the list
55 TList *fList; //! global output list
61f275d1 56
7196ee4f 57 ClassDef(AliRsnMiniMonitor, 1) // AliRsnMiniMonitor class
58};
59
61f275d1 60inline const char *AliRsnMiniMonitor::Label(EType type)
7196ee4f 61{
62 switch (type) {
b6ab153d 63 case kdEdxTPCvsP : return "TPCsignal";
64 case ktimeTOFvsPPion : return "TOFsignalPi";
65 case ktimeTOFvsPKaon : return "TOFsignalK";
66 case ktimeTOFvsPProton: return "TOFsignalP";
67 default : return "X";
7196ee4f 68 }
69}
70
71#endif