]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDMultNaiive.h
Removing memory leak
[u/mrichter/AliRoot.git] / FMD / AliFMDMultNaiive.h
CommitLineData
56b1929b 1#ifndef ALIFMDMULTNAIIVE_H
2#define ALIFMDMULTNAIIVE_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 * reserved.
5 *
6 * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7 *
8 * See cxx source for full Copyright notice
9 */
10/* $Id$ */
11//____________________________________________________________________
12//
13// Class to do multiplicity reconstruction using the Naiive method.
14// That is, we count the number of empty strips in a region, and
15// derive the charge particle multiplicity from that number.
16//
17
18#ifndef ALIFMDMULTALGORITHM_H
19# include "AliFMDMultAlgorithm.h"
20#endif
21
22//____________________________________________________________________
23class AliFMDMultNaiive : public AliFMDMultAlgorithm
24{
25public:
26 AliFMDMultNaiive();
27 virtual ~AliFMDMultNaiive() {}
28
29 virtual void PreRun(AliFMD* fmd);
30 virtual void PreEvent(TTree* treeR, Float_t ipZ);
31 virtual void ProcessDigit(AliFMDDigit* digit,
32 Float_t eta,
33 Float_t phi,
34 UShort_t counts);
35 void SetGain(Float_t g) { fGain = g; }
36 void SetEdepMip(Float_t e) { fEdepMip = e; }
37 Float_t GetGain() const { return fGain; }
38 Float_t GetEdepMip() const { return fEdepMip; }
39protected:
40 Float_t Adc2Energy(AliFMDDigit* digit, Float_t eta, UShort_t count);
41 Float_t Energy2Multiplicity(AliFMDDigit* digit, Float_t edep);
42 Float_t fGain; // GeV per ADC count
43 Float_t fEdepMip; // Energy deposited per MIP
44
45 ClassDef(AliFMDMultNaiive, 0) // Naiive algorithm
46};
47
48#endif
49//____________________________________________________________________
50//
51// Local Variables:
52// mode: C++
53// End:
54//
55// EOF
56//