Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CutMonitorRequest.h
1
2/*
3 * Cuts.h
4 *
5 * Created on: 04-05-2022
6 * Author: Daniel Wielanek
7 * E-mail: daniel.wielanek@gmail.com
8 * Warsaw University of Technology, Faculty of Physics
9 */
10#ifndef HALCUTSANDMONITORSREQUEST_H_
11#define HALCUTSANDMONITORSREQUEST_H_
12
13#include "HistogramManager.h"
14
15#include <TObject.h>
16#include <TString.h>
17
18
22namespace Hal {
24 Int_t fCutNo;
25 Int_t fParameterNo;
26 TString fCutName;
27
28 public:
29 CutMonAxisConf() : HistogramAxisConf(), fCutNo(-1), fParameterNo(0) {};
38 CutMonAxisConf(Int_t cut, Int_t par = 0, Int_t bin = 100, Double_t min = 0, Double_t max = 1) :
39 HistogramAxisConf(bin, min, max), fCutNo(cut), fParameterNo(par) {}
48 CutMonAxisConf(TString name, Int_t par = 0, Int_t bin = 100, Double_t min = 0, Double_t max = 1) :
49 HistogramAxisConf(bin, min, max), fCutNo(-1), fParameterNo(par), fCutName(name) {}
50 /***
51 *
52 * @return number of cut
53 */
54 Int_t GetCutNo() const { return fCutNo; }
61 void SetAxis(Int_t bins, Double_t min, Double_t max) { SetConf(bins, min, max); };
66 void FixCutNo(Int_t no);
71 Int_t GetParameterNo() const { return fParameterNo; }
76 TString GetCutClassName() const { return fCutName; };
77 virtual ~CutMonAxisConf() {};
78 ClassDef(CutMonAxisConf, 1)
79 };
80
85 class CutMonitorRequest : public TObject {
86 CutMonAxisConf fXConf;
87 CutMonAxisConf fYConf;
88 CutMonAxisConf fZConf;
89 const Int_t fDim;
90
91 public:
92 CutMonitorRequest(Int_t dim = -1) : fDim(dim) {};
101 CutMonAxisConf GetConf(Char_t axis) const;
106 Int_t GetNDim() const { return fDim; };
107 virtual ~CutMonitorRequest() {};
108 ClassDef(CutMonitorRequest, 1)
109 };
110} // namespace Hal
111#endif
TString GetCutClassName() const
CutMonAxisConf(Int_t cut, Int_t par=0, Int_t bin=100, Double_t min=0, Double_t max=1)
Int_t GetParameterNo() const
CutMonAxisConf(TString name, Int_t par=0, Int_t bin=100, Double_t min=0, Double_t max=1)
void SetAxis(Int_t bins, Double_t min, Double_t max)
CutMonAxisConf GetConf(Char_t axis) const