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