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