]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/AliCentraldNdetaTask.cxx
dN/deta tasks no longer make symmetric extensions, nor
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliCentraldNdetaTask.cxx
CommitLineData
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 16ClassImp(AliCentraldNdetaTask)
ffca499d 17#ifdef DOXY_INPUT
18;
19#endif
20
1a7e2e15 21//____________________________________________________________________
22AliCentraldNdetaTask::AliCentraldNdetaTask()
23 : AliBasedNdetaTask()
24{
5ca83fee 25 DGUARD(fDebug,3,"Default CTOR of AliCentraldNdetaTask");
1a7e2e15 26}
27
ffca499d 28//____________________________________________________________________
29AliCentraldNdetaTask::AliCentraldNdetaTask(const char*)
30 : AliBasedNdetaTask("Central")
31{
5ca83fee 32 DGUARD(fDebug,3,"Named CTOR of AliCentraldNdetaTask");
ffca499d 33 fCorrEmpty = false;
c8b1a7db 34 // SetTitle("Central");
ffca499d 35}
ec82df5b 36
37//____________________________________________________________________
38TH2D*
c8b1a7db 39AliCentraldNdetaTask::GetHistogram(const AliAODEvent& aod, Bool_t mc)
ec82df5b 40{
ec82df5b 41 // Get objects from the event structure
f53fb4f6 42 DGUARD(fDebug,2,"Get our histogram for AliCentraldNdetaTask");
ec82df5b 43 // Cast to good types
c8b1a7db 44 AliAODCentralMult* central = GetCentral(aod, mc, !mc);
45 if (!central) return 0;
fe52e455 46 return &(central->GetHistogram());
ec82df5b 47}
48
fe52e455 49//
50// EOF
51//