]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDMult.cxx
Fixed some coding violations and warnings. Added some FIXME's
[u/mrichter/AliRoot.git] / FMD / AliFMDMult.cxx
CommitLineData
e802be3e 1/**************************************************************************
2 * Copyright(c) 2004, 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//____________________________________________________________________
4347b38f 19//
7684b53c 20// Base class for reconstructed charged particle multiplicty in the
21// FMD. The class contains the field fMethod which is a flag set by
22// the AliFMDMultAlgorithm that created the object. The flag tells us
23// which algorithm was used to create the data stored in the object.
4347b38f 24//
56b1929b 25#include "AliFMDMult.h" // ALIFMDMULT_H
26#include <TString.h> // ROOT_TString
27#include <Riostream.h> // ROOT_Riostream
4347b38f 28
29//____________________________________________________________________
925e6570 30ClassImp(AliFMDMult)
1a1fdef7 31#if 0
32 ; // This is here to keep Emacs for indenting the next line
33#endif
4347b38f 34
35//____________________________________________________________________
56b1929b 36AliFMDMult::AliFMDMult(Float_t particles, UShort_t method)
37 : fParticles(particles),
4347b38f 38 fMethod(method)
39{
56b1929b 40 // Constructor
4347b38f 41 switch (fMethod) {
42 case kPoission:
43 case kIterative:
56b1929b 44 case kNaiive:
4347b38f 45 break;
46 default:
56b1929b 47 Warning("AliFMDMult", "unknown method: %d", method);
4347b38f 48 break;
49 }
50}
51
52
53//____________________________________________________________________
54void
56b1929b 55AliFMDMult::Print(Option_t* option) const
4347b38f 56{
56b1929b 57 // Print information
58 //
59 // Options:
60 //
61 // V Be verbose
62 //
63 TString opt(option);
64 if (!opt.Contains("v", TString::kIgnoreCase)) return;
65 cout << " Method: " << flush;
4347b38f 66 switch (fMethod) {
7c09877a 67 case kPoission: cout << "Poission" << endl; break;
68 case kIterative: cout << "Iterative" << endl; break;
56b1929b 69 case kNaiive: cout << "Naive" << endl; break;
7c09877a 70 default: cout << "Unknown" << endl; break;
4347b38f 71 }
72}
73
74
75//____________________________________________________________________
76//
77// EOF
78//