]>
Commit | Line | Data |
---|---|---|
ec82df5b | 1 | //==================================================================== |
2 | #include "AliCentraldNdetaTask.h" | |
3 | #include <TMath.h> | |
4 | #include <TH2D.h> | |
5 | #include <TH1D.h> | |
6 | #include <THStack.h> | |
7 | #include <TList.h> | |
8 | #include <AliAnalysisManager.h> | |
9 | #include <AliAODEvent.h> | |
10 | #include <AliAODHandler.h> | |
11 | #include <AliAODInputHandler.h> | |
12 | #include "AliForwardUtil.h" | |
13 | #include "AliAODForwardMult.h" | |
3e478dba | 14 | #include "AliAODCentralMult.h" |
ec82df5b | 15 | |
52cc64b7 | 16 | ClassImp(AliCentraldNdetaTask) |
ffca499d | 17 | #ifdef DOXY_INPUT |
18 | ; | |
19 | #endif | |
20 | ||
1a7e2e15 | 21 | //____________________________________________________________________ |
22 | AliCentraldNdetaTask::AliCentraldNdetaTask() | |
23 | : AliBasedNdetaTask() | |
24 | { | |
5ca83fee | 25 | DGUARD(fDebug,3,"Default CTOR of AliCentraldNdetaTask"); |
1a7e2e15 | 26 | } |
27 | ||
ffca499d | 28 | //____________________________________________________________________ |
29 | AliCentraldNdetaTask::AliCentraldNdetaTask(const char*) | |
30 | : AliBasedNdetaTask("Central") | |
31 | { | |
5ca83fee | 32 | DGUARD(fDebug,3,"Named CTOR of AliCentraldNdetaTask"); |
ffca499d | 33 | fSymmetrice = false; |
34 | fCorrEmpty = false; | |
c8b1a7db | 35 | // SetTitle("Central"); |
ffca499d | 36 | } |
ec82df5b | 37 | |
38 | //____________________________________________________________________ | |
39 | TH2D* | |
c8b1a7db | 40 | AliCentraldNdetaTask::GetHistogram(const AliAODEvent& aod, Bool_t mc) |
ec82df5b | 41 | { |
ec82df5b | 42 | // Get objects from the event structure |
f53fb4f6 | 43 | DGUARD(fDebug,2,"Get our histogram for AliCentraldNdetaTask"); |
ec82df5b | 44 | // Cast to good types |
c8b1a7db | 45 | AliAODCentralMult* central = GetCentral(aod, mc, !mc); |
46 | if (!central) return 0; | |
fe52e455 | 47 | return &(central->GetHistogram()); |
ec82df5b | 48 | } |
49 | ||
fe52e455 | 50 | // |
51 | // EOF | |
52 | // |