]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDPoissonAlgorithm.cxx
Cog correction improved. Hit position at anod
[u/mrichter/AliRoot.git] / FMD / AliFMDPoissonAlgorithm.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 //____________________________________________________________________
19 // 
20 // Base class for FMD poisson algorithms. 
21 //
22 // Derived classes will implement various ways of reconstructing the
23 // charge particle multiplicity in the FMD.  
24 // 
25 #include "AliFMDPoissonAlgorithm.h"     // ALIFMDPOISSONALGORITHM_H
26 #include "AliFMDDigit.h"                // ALIFMDDIGIT_H
27
28 //____________________________________________________________________
29 ClassImp(AliFMDPoissonAlgorithm);
30
31 //____________________________________________________________________
32 AliFMDPoissonAlgorithm::AliFMDPoissonAlgorithm()
33   : AliFMDReconstructionAlgorithm("Poisson", "Poisson")
34 {}
35
36
37 //____________________________________________________________________
38 void
39 AliFMDPoissonAlgorithm::Reset() 
40 {
41   // Reset internal data 
42   fTotal = 0;
43   fEmpty.Reset(kFALSE);
44 }
45
46 //____________________________________________________________________
47 void
48 AliFMDPoissonAlgorithm::ProcessDigit(AliFMDDigit* digit, 
49                                      Float_t eta, Float_t phi, 
50                                      UShort_t count)
51 {
52   // Process one digit. 
53   // 
54   // Parameters: 
55   //    
56   //   digit            Digit to process 
57   //   ipZ              Z--coordinate of the primary interaction
58   //                    vertex of this event 
59   //
60   if (!digit) return;
61   fTotal++;
62   if (charge < threshold) fEmpty(digit->Detector() - 1, 
63                                  digit->Ring(), 
64                                  digit->Setctor(), 
65                                  digit->Strip()) = kTRUE;
66 }
67
68
69 //____________________________________________________________________
70 // 
71 // EOF
72 //