2 // This class contains the secondary correction and the double hit
3 // correction used in low-flux events.
5 #ifndef ALIFMDCORRDOUBLEHIT_H
6 #define ALIFMDCORRDOUBLEHIT_H
12 * This class contains double hit correction used in low-flux events.
15 * The double hit correction is given by
17 * h_{r}(\eta) = \frac{\sum_i N_{i,strips hit}(\eta)}{
18 * \sum_i N_{i,total hits}(\eta)}
21 * where @f$ N_{i,strips hit}(\eta)@f$ is the number of strips in the
22 * @f$\eta@f$ bin that had one or more hits in event @f$i@f$, and
23 * @f$N_{i,total hits}(\eta)@f$ is the total number hits in the
26 * These are generated from Monte-Carlo truth information.
28 * @ingroup pwg2_forward_corr
31 class AliFMDCorrDoubleHit : public TObject
37 AliFMDCorrDoubleHit();
41 * @param o Object to copy from
43 AliFMDCorrDoubleHit(const AliFMDCorrDoubleHit& o);
48 virtual ~AliFMDCorrDoubleHit();
52 * @param o Object to assign from
54 * @return Reference to this object
56 AliFMDCorrDoubleHit& operator=(const AliFMDCorrDoubleHit& o);
59 * @name Get corrections and parameters
62 * Get the double hit correction @f$ h_{r}(\eta)@f$
64 * @param d Detector number
65 * @param r Ring identifier
67 * @return @f$ h_{r}(\eta)@f$
69 TH1D* GetCorrection(UShort_t d, Char_t r) const;
74 * @name Set corrections and parameters
77 * Set the double hit correction @f$ h_{r}(\eta)@f$. Note, that the
78 * object takes ownership of the passed pointer.
80 * @param d Detector number (1-3)
81 * @param r Ring identifier (I or O)
82 * @param h @f$ h_{r}(\eta)@f$
84 * @return true if operation succeeded
86 Bool_t SetCorrection(UShort_t d, Char_t r, TH1D* h);
91 * @name Auxiliary member functions
94 * Declare this as a folder
98 Bool_t IsFolder() const { return true; }
100 * Browse this object in the browser
104 void Browse(TBrowser* b);
110 void Print(Option_t* option="R") const; //*MENU*
114 * Get the index corresponding to the given ring
119 * @return Index (0 based) or negative in case of errors
121 Int_t GetRingIndex(UShort_t d, Char_t r) const;
123 TObjArray fCorrections; // Array of per-ring double hit corr.
124 ClassDef(AliFMDCorrDoubleHit,1); //