]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/AliFMDMultCuts.h
remove buggy histos
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliFMDMultCuts.h
CommitLineData
bfcbb65a 1#ifndef ALIFMDMULTCUTS_H
2#define ALIFMDMULTCUTS_H
3#include <TObject.h>
4
290052e7 5/**
6 * Cuts used when calculating the multiplicity
7 *
8 */
bfcbb65a 9class AliFMDMultCuts : public TObject
10{
11public:
290052e7 12 /**
13 * CTOR
14 */
bfcbb65a 15 AliFMDMultCuts();
290052e7 16 /**
17 * Copy CTOR
18 *
19 * @param o Oject to copy from
20 */
bfcbb65a 21 AliFMDMultCuts(const AliFMDMultCuts& o);
290052e7 22 /**
23 * Assignment operator
24 *
25 * @param o Object to asing from
26 *
27 * @return Reference to this object
28 */
bfcbb65a 29 AliFMDMultCuts& operator=(const AliFMDMultCuts& o);
290052e7 30 /**
31 * Get the multiplicity cuts for a specific ring and pseudo-rapidity
32 *
33 * @param d Detector
34 * @param r Ring
35 * @param eta pseudo-rapidity
36 * @param errors Get error on cut
37 *
38 * @return Cut value
39 */
bfcbb65a 40 Double_t GetMultCut(UShort_t d, Char_t r, Double_t eta, Bool_t errors) const;
290052e7 41 /**
42 * Get the multiplicity cuts for a specific ring and pseudo-rapidity
43 *
44 * @param d Detector
45 * @param r Ring
46 * @param etabin pseudo-rapidity bin
47 * @param errors Get error on cut
48 *
49 * @return Cut value
50 */
bfcbb65a 51 Double_t GetMultCut(UShort_t d, Char_t r, Int_t etabin, Bool_t errors) const;
290052e7 52 /**
53 * Clear the cuts
54 *
55 */
bfcbb65a 56 void UnsetMultCuts() { SetMultCuts(-1); }
290052e7 57 /**
58 * Set the cuts
59 *
60 * @param fmd1i Value for FMD1i
61 * @param fmd2i Value for FMD2i
62 * @param fmd2o Value for FMD2o
63 * @param fmd3i Value for FMD3i
64 * @param fmd3o Value for FMD3o
65 */
bfcbb65a 66 void SetMultCuts(Double_t fmd1i,
67 Double_t fmd2i=-1,
68 Double_t fmd2o=-1,
69 Double_t fmd3i=-1,
70 Double_t fmd3o=-1);
290052e7 71 /**
72 * Set the faction of most probable value
73 *
74 * @param frac Fraction
75 */
bfcbb65a 76 void SetMPVFraction(Double_t frac=0) { fMPVFraction = frac; }
290052e7 77 /**
78 * Set the number times the Landau width
79 *
80 * @param nXi Number of widths
81 */
bfcbb65a 82 void SetNXi(Double_t nXi) { fNXi = nXi; }
290052e7 83 /**
84 * Set wether to includle the Gaussian sigma in cut calculation
85 *
86 * @param in If true, use Gaussian variance
87 */
bfcbb65a 88 void SetIncludeSigma(Bool_t in) { fIncludeSigma = in; }
290052e7 89 /**
90 * Print information
91 *
92 * @param option Not used
93 */
bfcbb65a 94 void Print(Option_t* option="") const;
290052e7 95 /**
96 * Define outputs
97 *
98 * @param l List to add to
99 * @param name Name
100 */
bfcbb65a 101 void Output(TList* l, const char* name=0) const;
241cca4d 102 /**
103 * Read in cuts stored in file
104 *
105 * @param l List to read from
106 * @param name Name of possible sub-list
107 *
108 * @return true on success
109 */
110 Bool_t Input(TList* l, const char* name);
290052e7 111 /**
112 * Get a fixed cut value
113 *
114 * @param d Detector
115 * @param r Ring
116 *
117 * @return Fixed cut value
118 */
bfcbb65a 119 Double_t GetFixedCut(UShort_t d, Char_t r) const;
120protected:
290052e7 121 Double_t fMultCuts[5]; // Fixed cuts
122 Double_t fMPVFraction; // Most probably value fraction
123 Double_t fNXi; // Times of Landau width
124 Bool_t fIncludeSigma; // Include Gaussian variance
125
bfcbb65a 126 ClassDef(AliFMDMultCuts,1); // Cuts on ESD Mult
127};
128
129#endif
130// Local Variables:
131// mode: C++
132// End: