- Create branch for jet event background in AliAnalysisTaskJets (Elena Bruna)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Aug 2009 09:40:40 +0000 (09:40 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Aug 2009 09:40:40 +0000 (09:40 +0000)
- Includes replaced by fwd declarations. (AM)

JETAN/AliAnalysisTaskJets.cxx
JETAN/AliAnalysisTaskJetsCDF.cxx
JETAN/AliFastJetFinder.cxx
JETAN/AliFastJetFinder.h
JETAN/AliJetFinder.cxx
JETAN/AliJetFinder.h
JETAN/AliUA1JetFinderV1.cxx
JETAN/AliUA1JetFinderV2.cxx

index b34436e..561ba9e 100644 (file)
@@ -106,7 +106,9 @@ void AliAnalysisTaskJets::UserCreateOutputObjects()
       AddAODBranch("TClonesArray",&tca);
       fJetFinder->ConnectAODNonStd(AODEvent(), fNonStdBranch.Data()); 
     }
-  
+  AliAODPWG4JetEventBackground* evBkg = fJetFinder->GetEventBackground();
+  AddAODBranch("AliAODPWG4JetEventBackground",&evBkg);
+
   // Histograms
   OpenFile(1);
   fListOfHistos = new TList();
index 2e7c5db..5cca41e 100644 (file)
@@ -32,6 +32,7 @@
 #include "AliESDInputHandler.h"
 #include "AliMCEvent.h"
 #include "AliStack.h"
+#include "AliJetReader.h"
 
 #include "AliAnalysisTaskJetsCDF.h"
 
index d5e260f..99ce9f8 100644 (file)
@@ -67,8 +67,7 @@ ClassImp(AliFastJetFinder)
 AliFastJetFinder::AliFastJetFinder():
   AliJetFinder(),
   fInputFJ(0),
-  fJetBkg(0),
-  fAODEvBkg(0)
+  fJetBkg(0)
 {
   // Constructor
 }
index 0dae776..5d55b3b 100644 (file)
@@ -57,7 +57,6 @@ class AliFastJetFinder : public AliJetFinder
   AliFastJetFinder& operator = (const AliFastJetFinder& rsfj);
   AliFastJetInput*                fInputFJ;     //! input particles array
   AliJetBkg*                      fJetBkg;      //! pointer to bkg class
-  AliAODPWG4JetEventBackground*   fAODEvBkg;    //! bkg object to be store
   ClassDef(AliFastJetFinder,2)
 };
 
index 1f65dbd..1c397e7 100644 (file)
@@ -30,6 +30,9 @@
 #include "AliAODJet.h"
 #include "AliAODEvent.h"
 #include "AliJetUnitArray.h"
+#include "AliJetReaderHeader.h"
+#include "AliJetHeader.h"
+#include "AliJetReader.h"
 
 class TProcessID;
 class TClonesArray;
@@ -40,7 +43,8 @@ AliJetFinder::AliJetFinder():
     fReader(0x0),
     fHeader(0x0),
     fAODjets(0x0),
-    fNAODjets(0)
+    fNAODjets(0),
+    fAODEvBkg(0)
 {
   //
   // Constructor
index e4bf3f2..63604fa 100755 (executable)
 
 #include <TObject.h>
 #include "AliAODJet.h"
-#include "AliJetReader.h"
-#include "AliJetHeader.h"
-#include "AliJetReaderHeader.h"
 
 class TChain;
+class TTree;
 class AliAODJet;
 class AliAODEvent;
+class AliAODPWG4JetEventBackground;
+class AliJetHeader;
+class AliJetReader;
+class AliJetReaderHeader;
 
 class AliJetFinder : public TObject 
 {
@@ -32,11 +34,13 @@ class AliJetFinder : public TObject
   virtual ~AliJetFinder();
 
   // Getters
-  virtual AliJetReader *GetReader() {return fReader;}
-  virtual AliJetHeader *GetHeader() {return fHeader;}
+  virtual AliJetReader *GetReader() const {return fReader;}
+  virtual AliJetHeader *GetHeader() const {return fHeader;}
+  virtual AliAODPWG4JetEventBackground* GetEventBackground() const {return fAODEvBkg;}
   // Setters
   virtual void          SetJetReader(AliJetReader* r) {fReader=r;}
   virtual void          SetJetHeader(AliJetHeader* h) {fHeader=h;}
+  virtual void          SetEventBackground(AliAODPWG4JetEventBackground* bkg) {fAODEvBkg = bkg;}
   // Others
   virtual void          AddJet(AliAODJet jet);
   virtual void          WriteRHeaderToFile();  
@@ -62,6 +66,7 @@ class AliJetFinder : public TObject
   AliJetHeader* fHeader;         //  pointer to header
   TClonesArray* fAODjets;        //! reconstructed jets
   Int_t         fNAODjets;       //! number of reconstructed jets
+  AliAODPWG4JetEventBackground*   fAODEvBkg;    //! bkg object to be store
   ClassDef(AliJetFinder,2)
 };
 
index 48efa08..378c8c6 100644 (file)
@@ -33,6 +33,9 @@
 #include "AliUA1JetHeaderV1.h"
 #include "AliJetReaderHeader.h"
 #include "AliJetReader.h"
+#include "AliJetHeader.h"
+
+
 #include "AliAODJet.h"
 #include "AliLog.h"
 
index 69ba626..c401860 100644 (file)
@@ -34,6 +34,9 @@
 #include "AliUA1JetFinderV2.h"
 #include "AliUA1JetHeaderV1.h"
 #include "AliJetUnitArray.h"
+#include "AliJetReaderHeader.h"
+#include "AliJetReader.h"
+#include "AliJetHeader.h"
 
 class TArrayF;
 class TFile;