]>
Commit | Line | Data |
---|---|---|
1a26066e | 1 | //==================================================================== |
7984e5f7 | 2 | // |
3 | // Base class for classes that calculate the multiplicity in the | |
4 | // forward regions event-by-event | |
5 | // | |
6 | // Inputs: | |
7 | // - AliESDEvent | |
8 | // | |
9 | // Outputs: | |
10 | // - AliAODForwardMult | |
11 | // | |
12 | // Histograms | |
13 | // | |
14 | // Corrections used | |
1a26066e | 15 | #include "AliForwardMultiplicityBase.h" |
16 | #include "AliLog.h" | |
17 | #include "AliAODHandler.h" | |
18 | #include "AliInputEventHandler.h" | |
19 | #include "AliAnalysisManager.h" | |
20 | #include <TROOT.h> | |
21 | #include <iostream> | |
22 | #include <iomanip> | |
23 | ||
24 | //==================================================================== | |
25 | void | |
26 | AliForwardMultiplicityBase::MarkEventForStore() const | |
27 | { | |
28 | // Make sure the AOD tree is filled | |
29 | AliAnalysisManager* am = AliAnalysisManager::GetAnalysisManager(); | |
30 | AliAODHandler* ah = | |
31 | dynamic_cast<AliAODHandler*>(am->GetOutputEventHandler()); | |
32 | if (!ah) | |
33 | AliFatal("No AOD output handler set in analysis manager"); | |
34 | ||
35 | ah->SetFillAOD(kTRUE); | |
36 | } | |
37 | ||
38 | //____________________________________________________________________ | |
39 | void | |
40 | AliForwardMultiplicityBase::Print(Option_t* option) const | |
41 | { | |
7984e5f7 | 42 | // |
43 | // Print information | |
44 | // | |
45 | // Parameters: | |
46 | // option Not used | |
47 | // | |
1a26066e | 48 | std::cout << "AliForwardMultiplicityBase: " << GetName() << "\n" |
49 | << " Enable low flux code: " << (fEnableLowFlux ? "yes" : "no") | |
50 | << std::endl; | |
51 | } | |
52 | ||
53 | // | |
54 | // EOF | |
55 | // |