]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnMiniMonitor.h
Removed duplicated TFile::Cp from WriteAnalysisFile
[u/mrichter/AliRoot.git] / PWG2 / 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 */
6
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 {
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
46protected:
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
56inline 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