AliPhysics  c923f52 (c923f52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliCentraldNdetaTask.cxx
Go to the documentation of this file.
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 
17 #ifdef DOXY_INPUT
18 ;
19 #endif
20 
21 //____________________________________________________________________
24 {
25  DGUARD(fDebug,3,"Default CTOR of AliCentraldNdetaTask");
26 }
27 
28 //____________________________________________________________________
30  : AliBasedNdetaTask("Central")
31 {
32  DGUARD(fDebug,3,"Named CTOR of AliCentraldNdetaTask");
33  fCorrEmpty = false;
34  // SetTitle("Central");
35 }
36 
37 //____________________________________________________________________
38 TH2D*
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 //
TH2D * GetHistogram(const AliAODEvent &aod, Bool_t mc=false)
Per-event per bin.
Various utilities used in PWGLF/FORWARD.
Definition: External.C:228
#define DGUARD(L, N, F,...)
const TH2D & GetHistogram() const
ClassImp(AliCentraldNdetaTask)
AliAODCentralMult * GetCentral(const AliAODEvent &aod, Bool_t mc=false, Bool_t verb=true)
bool Bool_t
Definition: External.C:53