end-of-line normalization
[u/mrichter/AliRoot.git] / PWGJE / UserTasks / AliAnalysisTaskJetHadronCorrelation.h
index 79e14b9..0211348 100755 (executable)
-#ifndef AliAnalysisTaskJetHadronCorrelation_cxx\r
-#define AliAnalysisTaskJetHadronCorrelation_cxx\r
-\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
- * See cxx source for full Copyright notice                               */\r
-\r
-class AliJetHeader;\r
-class AliESDEvent;\r
-class AliAODEvent;\r
-class AliAODJet;\r
-class AliGenPythiaEventHeader;\r
-class AliCFManager;\r
-\r
-class TList;\r
-class TChain;\r
-class TH2F;\r
-class TH1F;\r
-class TH3F;\r
-class TProfile;\r
-\r
-\r
-#include "AliAnalysisTaskSE.h"\r
-#include  "THnSparse.h" // cannot forward declare ThnSparseF  \r
-#include <TList.h>\r
-#include <TH1F.h>\r
-#include <TH2F.h>\r
-\r
-class AliAnalysisTaskJetHadronCorrelation : public AliAnalysisTaskSE \r
-{\r
-       public:\r
-               AliAnalysisTaskJetHadronCorrelation();\r
-               AliAnalysisTaskJetHadronCorrelation(const char *name);\r
-               virtual ~AliAnalysisTaskJetHadronCorrelation() {;}\r
-\r
-               // Implementation of interface methods\r
-               virtual void   UserCreateOutputObjects();\r
-               virtual void   Init();\r
-               virtual Bool_t Notify();\r
-               virtual void   UserExec(Option_t *option);\r
-               virtual void   Terminate(Option_t *);\r
-               virtual void   SetDebug(Int_t debug = 0)        {fDebug = debug;}\r
-               virtual void   SetAlgorithm(TString jf="ANTIKT"){JFAlg=jf;}\r
-               virtual void   SetRadius(Float_t radius=0.4)    {Radius=radius;}\r
-               virtual void   SetFilterMask(UInt_t filter=256) {Filtermask=filter;}\r
-               virtual void   SetBackSubMode(Int_t backM=0)    {BackM=backM;}\r
-               virtual void   SetTrackPtCut(Float_t tPtcut=0)  {TrackPtcut=tPtcut;}\r
-               virtual void   SetSkipCone(Int_t skipCone=0)    {SkipCone=skipCone;}\r
-               virtual void   SetMC(Bool_t ismc=true)          {IsMC=ismc;}\r
-               virtual void   SetJetEScale  (Float_t JEScale=1.){JetEScale=JEScale;}\r
-               virtual void   SetTrackEScale(Float_t TEScale=1.){TrackEScale=TEScale;}\r
-               virtual void   FinishTaskOutput();\r
-\r
-               //enum {kNPTBINS=10};\r
-\r
-               // 0 all jets\r
-               // 1 all jet in eta window\r
-               // 2 all jets with partner\r
-               // 3 all jets in eta window with partner\r
-               // 4 all jets with partner in eta window\r
-               //enum {kStep0 = 0, kStep1, kStep2, kStep3, kStep4,kMaxStep};\r
-\r
-\r
-\r
-       private:\r
-               AliAnalysisTaskJetHadronCorrelation(const AliAnalysisTaskJetHadronCorrelation &det); // not implemented\r
-               AliAnalysisTaskJetHadronCorrelation& operator=(const AliAnalysisTaskJetHadronCorrelation &det); // not implemented\r
-               Double_t DeltaPhi(Double_t phi1,Double_t phi2);\r
-\r
-               Bool_t          fUseAODInput; // read jets from input AOD\r
-               TString         fJetBranch;   // jet branch to read\r
-               TString         fNonStdFile;\r
-\r
-               AliAODEvent     *fAODIn;       // AOD event\r
-               AliAODEvent     *fAODOut;      // AOD event\r
-               AliAODExtension *fAODExtension;\r
-               TString         JFAlg;\r
-               Float_t         Radius;\r
-               UInt_t          Filtermask;\r
-               Int_t           BackM;\r
-               Float_t         TrackPtcut;\r
-               Int_t           SkipCone;\r
-               Bool_t          IsMC;\r
-               Float_t         JetEScale;\r
-               Float_t         TrackEScale;\r
-\r
-\r
-               Float_t         fxsec;\r
-               Float_t         ftrial;\r
-\r
-               TList           *fHistList; // Output list\r
-    Int_t           fIfiles;//!count no. of files\r
-\r
-\r
-               TH1F            *fH1Events;\r
-               TProfile        *fH1Xsec;\r
-               TH1F            *fH1Trials;\r
-\r
-               TH1F            *fH1Track_pt          ;\r
-               TH1F            *fH1Track_phi         ;\r
-               TH1F            *fH1Track_eta         ;\r
-               TH1F            *fH1MCTrack_pt        ;\r
-               TH1F            *fH1MCTrack_phi       ;\r
-               TH1F            *fH1MCTrack_eta       ;\r
-               TH1F            *fH1MCPrimTrack_pt    ;\r
-               TH1F            *fH1MCPrimTrack_phi   ;\r
-               TH1F            *fH1MCPrimTrack_eta   ;\r
-               TH1F            *fH1Jet_pt            ;\r
-               TH1F            *fH1Jet_phi           ;\r
-               TH1F            *fH1Jet_eta           ;\r
-               TH1F            *fH1leadJet_pt        ;\r
-               TH1F            *fH1leadJet_pt_dijet  ;\r
-               TH1F            *fH1subJet_pt_dijet   ;\r
-               TH1F            *fH1JetMC_pt          ;\r
-               TH1F            *fH1leadJetMC_pt      ;\r
-               TH1F            *fH1leadJetMC_pt_dijet;\r
-               TH1F            *fH1subJetMC_pt_dijet ;\r
-               TH2F            *fH2JetsJet_dphi      ;\r
-               TH2F            *fH2JetsJet_deta      ;\r
-               TH2F            *fH2JetsJet_Aj        ;\r
-               TH2F            *fH2JetsJet_pt        ;\r
-               TH2F            *fH2JetsJetMC_dphi    ;\r
-               TH2F            *fH2JetsJetMC_deta    ;\r
-               TH2F            *fH2JetsJetMC_Aj      ;\r
-               TH2F            *fH2JetsJetMC_pt      ;\r
-\r
-               TH2F         *fH2Mult_Mtrack          ;\r
-               TH2F         *fH2Mult_Mlead           ;\r
-               TH2F         *fH2Mult_Mjet            ;\r
-               TH2F         *fH2Mult_Njet            ;\r
-               TH2F         *fH2Mult_Aj              ;\r
-               TH2F         *fH2Mlead_Aj             ;\r
-               TH2F         *fH2Jet_pt_Mlead         ;\r
-               TH2F         *fH2Jet_pt_Munder        ;\r
-\r
-               TH2F         *fH2leadJetMCptResolution ;\r
-               TH2F         *fH2TrackMCptResolution   ;\r
-               TH2F         *fH2TrackMCptEfficiency   ;\r
-               TH2F         *fH2AjCorrelation_MCRec   ;\r
-               TH2F         *fH2MleadCorrelation_MCRec;\r
-\r
-               TH1F         *fH1ndiJ_ediv                     [5];\r
-               TH1F         *fH1Aj                            [5];\r
-               TH1F         *fH1Mlead                         [5];\r
-\r
-               TH1F         *fH1leadJetMC_dphiResolution      [5];\r
-               TH1F         *fH1subJetMC_dphiResolution       [5];\r
-               TH1F         *fH1leadJetMC_Efficiency          [5];\r
-               TH1F         *fH1subJetMC_Efficiency           [5];\r
-\r
-               TH1F         *fH1JetHadron_dphi_ediv             [5][5];\r
-               TH1F         *fH1JetHadron_dphi_tptweight_ediv   [5][5];\r
-               TH1F         *fH1JetHadron_dphi_tJptweight_ediv  [5][5];\r
-               TH1F         *fH1JetHadronMC_dphi_ediv           [5][5];\r
-               TH1F         *fH1JetHadronMC_dphi_tptweight_ediv [5][5];\r
-               TH1F         *fH1JetHadronMC_dphi_tJptweight_ediv[5][5];\r
-               TH1F         *fH1JetHadronMCPrim_dphi_ediv           [5][5];\r
-               TH1F         *fH1JetHadronMCPrim_dphi_tptweight_ediv [5][5];\r
-               TH1F         *fH1JetHadronMCPrim_dphi_tJptweight_ediv[5][5];\r
-               //TH1F         *fH1JetHadronMCIdeal_dphi_ediv             [5][5];\r
-               //TH1F         *fH1JetHadronMCIdeal_dphi_tptweight_ediv   [5][5];\r
-               //TH1F         *fH1JetHadronMCIdeal_dphi_tJptweight_ediv  [5][5];\r
-\r
-               TH1F         *fH1ndiJ_2040Mlead                         [3];\r
-               TH1F         *fH1ndiJ_2040Aj                            [3];\r
-               TH1F         *fH1JetHadron_dphi_tptweight2040_Mleaddep  [3][5];\r
-               TH1F         *fH1JetHadron_dphi_tptweight2040_Ajdep     [3][5];\r
-               TH1F         *fH1JetHadronMC_dphi_tptweight2040_Mleaddep[3][5];\r
-               TH1F         *fH1JetHadronMC_dphi_tptweight2040_Ajdep   [3][5];\r
-               TH1F         *fH1JetHadronMCPrim_dphi_tptweight2040_Mleaddep[3][5];\r
-               TH1F         *fH1JetHadronMCPrim_dphi_tptweight2040_Ajdep   [3][5];\r
-               //TH1F         *fH1JetHadronMCIdeal_dphi_tptweight2040_Mleaddep[3][5];\r
-               //TH1F         *fH1JetHadronMCIdeal_dphi_tptweight2040_Ajdep   [3][5];\r
-\r
-               ClassDef(AliAnalysisTaskJetHadronCorrelation, 17); // Analysis task for JetHadronCorrelation\r
-};\r
-\r
-#endif\r
+#ifndef AliAnalysisTaskJetHadronCorrelation_cxx
+#define AliAnalysisTaskJetHadronCorrelation_cxx
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+class AliJetHeader;
+class AliESDEvent;
+class AliAODEvent;
+class AliAODJet;
+class AliGenPythiaEventHeader;
+class AliCFManager;
+
+class TList;
+class TChain;
+class TH2F;
+class TH1F;
+class TH3F;
+class TProfile;
+
+
+#include "AliAnalysisTaskSE.h"
+#include  "THnSparse.h" // cannot forward declare ThnSparseF  
+#include <TList.h>
+#include <TH1F.h>
+#include <TH2F.h>
+
+class AliAnalysisTaskJetHadronCorrelation : public AliAnalysisTaskSE 
+{
+       public:
+               AliAnalysisTaskJetHadronCorrelation();
+               AliAnalysisTaskJetHadronCorrelation(const char *name);
+               virtual ~AliAnalysisTaskJetHadronCorrelation() {;}
+
+               // Implementation of interface methods
+               virtual void   UserCreateOutputObjects();
+               virtual void   Init();
+               virtual Bool_t Notify();
+               virtual void   UserExec(Option_t *option);
+               virtual void   Terminate(Option_t *);
+               virtual void   SetDebug(Int_t debug = 0)        {fDebug = debug;}
+               virtual void   SetAlgorithm(TString jf="ANTIKT"){JFAlg=jf;}
+               virtual void   SetRadius(Float_t radius=0.4)    {Radius=radius;}
+               virtual void   SetFilterMask(UInt_t filter=256) {Filtermask=filter;}
+               virtual void   SetBackSubMode(Int_t backM=0)    {BackM=backM;}
+               virtual void   SetTrackPtCut(Float_t tPtcut=0)  {TrackPtcut=tPtcut;}
+               virtual void   SetSkipCone(Int_t skipCone=0)    {SkipCone=skipCone;}
+               virtual void   SetMC(Bool_t ismc=true)          {IsMC=ismc;}
+               virtual void   SetJetEScale  (Float_t JEScale=1.){JetEScale=JEScale;}
+               virtual void   SetTrackEScale(Float_t TEScale=1.){TrackEScale=TEScale;}
+               virtual void   FinishTaskOutput();
+
+               //enum {kNPTBINS=10};
+
+               // 0 all jets
+               // 1 all jet in eta window
+               // 2 all jets with partner
+               // 3 all jets in eta window with partner
+               // 4 all jets with partner in eta window
+               //enum {kStep0 = 0, kStep1, kStep2, kStep3, kStep4,kMaxStep};
+
+
+
+       private:
+               AliAnalysisTaskJetHadronCorrelation(const AliAnalysisTaskJetHadronCorrelation &det); // not implemented
+               AliAnalysisTaskJetHadronCorrelation& operator=(const AliAnalysisTaskJetHadronCorrelation &det); // not implemented
+               Double_t DeltaPhi(Double_t phi1,Double_t phi2);
+
+               Bool_t          fUseAODInput; // read jets from input AOD
+               TString         fJetBranch;   // jet branch to read
+               TString         fNonStdFile;
+
+               AliAODEvent     *fAODIn;       // AOD event
+               AliAODEvent     *fAODOut;      // AOD event
+               AliAODExtension *fAODExtension;
+               TString         JFAlg;
+               Float_t         Radius;
+               UInt_t          Filtermask;
+               Int_t           BackM;
+               Float_t         TrackPtcut;
+               Int_t           SkipCone;
+               Bool_t          IsMC;
+               Float_t         JetEScale;
+               Float_t         TrackEScale;
+
+
+               Float_t         fxsec;
+               Float_t         ftrial;
+
+               TList           *fHistList; // Output list
+    Int_t           fIfiles;//!count no. of files
+
+
+               TH1F            *fH1Events;
+               TProfile        *fH1Xsec;
+               TH1F            *fH1Trials;
+
+               TH1F            *fH1Track_pt          ;
+               TH1F            *fH1Track_phi         ;
+               TH1F            *fH1Track_eta         ;
+               TH1F            *fH1MCTrack_pt        ;
+               TH1F            *fH1MCTrack_phi       ;
+               TH1F            *fH1MCTrack_eta       ;
+               TH1F            *fH1MCPrimTrack_pt    ;
+               TH1F            *fH1MCPrimTrack_phi   ;
+               TH1F            *fH1MCPrimTrack_eta   ;
+               TH1F            *fH1Jet_pt            ;
+               TH1F            *fH1Jet_phi           ;
+               TH1F            *fH1Jet_eta           ;
+               TH1F            *fH1leadJet_pt        ;
+               TH1F            *fH1leadJet_pt_dijet  ;
+               TH1F            *fH1subJet_pt_dijet   ;
+               TH1F            *fH1JetMC_pt          ;
+               TH1F            *fH1leadJetMC_pt      ;
+               TH1F            *fH1leadJetMC_pt_dijet;
+               TH1F            *fH1subJetMC_pt_dijet ;
+               TH2F            *fH2JetsJet_dphi      ;
+               TH2F            *fH2JetsJet_deta      ;
+               TH2F            *fH2JetsJet_Aj        ;
+               TH2F            *fH2JetsJet_pt        ;
+               TH2F            *fH2JetsJetMC_dphi    ;
+               TH2F            *fH2JetsJetMC_deta    ;
+               TH2F            *fH2JetsJetMC_Aj      ;
+               TH2F            *fH2JetsJetMC_pt      ;
+
+               TH2F         *fH2Mult_Mtrack          ;
+               TH2F         *fH2Mult_Mlead           ;
+               TH2F         *fH2Mult_Mjet            ;
+               TH2F         *fH2Mult_Njet            ;
+               TH2F         *fH2Mult_Aj              ;
+               TH2F         *fH2Mlead_Aj             ;
+               TH2F         *fH2Jet_pt_Mlead         ;
+               TH2F         *fH2Jet_pt_Munder        ;
+
+               TH2F         *fH2leadJetMCptResolution ;
+               TH2F         *fH2TrackMCptResolution   ;
+               TH2F         *fH2TrackMCptEfficiency   ;
+               TH2F         *fH2AjCorrelation_MCRec   ;
+               TH2F         *fH2MleadCorrelation_MCRec;
+
+               TH1F         *fH1ndiJ_ediv                     [5];
+               TH1F         *fH1Aj                            [5];
+               TH1F         *fH1Mlead                         [5];
+
+               TH1F         *fH1leadJetMC_dphiResolution      [5];
+               TH1F         *fH1subJetMC_dphiResolution       [5];
+               TH1F         *fH1leadJetMC_Efficiency          [5];
+               TH1F         *fH1subJetMC_Efficiency           [5];
+
+               TH1F         *fH1JetHadron_dphi_ediv             [5][5];
+               TH1F         *fH1JetHadron_dphi_tptweight_ediv   [5][5];
+               TH1F         *fH1JetHadron_dphi_tJptweight_ediv  [5][5];
+               TH1F         *fH1JetHadronMC_dphi_ediv           [5][5];
+               TH1F         *fH1JetHadronMC_dphi_tptweight_ediv [5][5];
+               TH1F         *fH1JetHadronMC_dphi_tJptweight_ediv[5][5];
+               TH1F         *fH1JetHadronMCPrim_dphi_ediv           [5][5];
+               TH1F         *fH1JetHadronMCPrim_dphi_tptweight_ediv [5][5];
+               TH1F         *fH1JetHadronMCPrim_dphi_tJptweight_ediv[5][5];
+               //TH1F         *fH1JetHadronMCIdeal_dphi_ediv             [5][5];
+               //TH1F         *fH1JetHadronMCIdeal_dphi_tptweight_ediv   [5][5];
+               //TH1F         *fH1JetHadronMCIdeal_dphi_tJptweight_ediv  [5][5];
+
+               TH1F         *fH1ndiJ_2040Mlead                         [3];
+               TH1F         *fH1ndiJ_2040Aj                            [3];
+               TH1F         *fH1JetHadron_dphi_tptweight2040_Mleaddep  [3][5];
+               TH1F         *fH1JetHadron_dphi_tptweight2040_Ajdep     [3][5];
+               TH1F         *fH1JetHadronMC_dphi_tptweight2040_Mleaddep[3][5];
+               TH1F         *fH1JetHadronMC_dphi_tptweight2040_Ajdep   [3][5];
+               TH1F         *fH1JetHadronMCPrim_dphi_tptweight2040_Mleaddep[3][5];
+               TH1F         *fH1JetHadronMCPrim_dphi_tptweight2040_Ajdep   [3][5];
+               //TH1F         *fH1JetHadronMCIdeal_dphi_tptweight2040_Mleaddep[3][5];
+               //TH1F         *fH1JetHadronMCIdeal_dphi_tptweight2040_Ajdep   [3][5];
+
+               ClassDef(AliAnalysisTaskJetHadronCorrelation, 17); // Analysis task for JetHadronCorrelation
+};
+
+#endif