]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
proof of principle
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 10 Feb 2012 07:56:02 +0000 (07:56 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 10 Feb 2012 07:56:02 +0000 (07:56 +0000)
PWGGA/EMCALTasks/AliEsdJetTask.cxx
PWGGA/EMCALTasks/AliEsdJetTask.h

index b15d38ec8fa254abac269c73a2895c0480a5ba99..19796198a1a027cc8e5400c33492f591faecf309 100644 (file)
@@ -154,10 +154,11 @@ void AliEsdJetTask::FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Dou
   for(UInt_t ij=0, jetCount=0; ij<jets_incl.size(); ++ij) {
     if (jets_incl[ij].perp()<1) 
       continue;
-#if 0
-    AliAODJet *jet = new ((*fJets)[jetCount]) 
-      AliAODJet(jets_incl[ij].px(), jets_incl[ij].py(), jets_incl[ij].pz(), jets_incl[ij].E());
-    jet->SetEffArea(fjw.GetJetArea(ij),0);
+    //cout << jets_incl[ij].perp() << " " << jets_incl[ij].eta() << " " << jets_incl[ij].phi() << " " <<  jets_incl[ij].m() << endl;
+    AliESDJet *jet = new ((*fJets)[jetCount]) 
+      AliESDJet(jets_incl[ij].perp(), jets_incl[ij].eta(), jets_incl[ij].phi(), jets_incl[ij].m());
+    jet->SetArea(fjw.GetJetArea(ij));
+#if 0 /*tobedone*/
     jet->GetRefTracks()->Clear();
     vector<fastjet::PseudoJet> constituents = fjw.GetJetConstituents(ij);
     Double_t neutralE = 0;
index ae723bc131783d61d77256182a07fc56ecc814f8..55cf8fb8290df86dfd2af93d045124dac269b1a4 100644 (file)
@@ -18,7 +18,7 @@ class AliEsdJetTask : public AliAnalysisTaskSE {
   void         Terminate(Option_t *option);
 
   void         SetAlgo(Int_t a)                      { fAlgo       = a; }
-  void         SetCaloName(const char *n)            { fCaloName   = n; }
+  void         SetClusName(const char *n)            { fCaloName   = n; }
   void         SetHadCorr(Double_t c)                { fHadCorr    = c; }
   void         SetJetsName(const char *n)            { fJetsName   = n; }
   void         SetTracksName(const char *n)          { fTracksName = n; }
@@ -28,8 +28,8 @@ class AliEsdJetTask : public AliAnalysisTaskSE {
  protected:
   void FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius);
 
-  TString                fTracksName;             // name of track collection (if "" use branch)
-  TString                fCaloName;               // name of calo collection
+  TString                fTracksName;             // name of track collection
+  TString                fCaloName;               // name of calo cluster collection
   TString                fJetsName;               // name of jet collection
   Int_t                  fAlgo;                   // algo (0==kt, 1==antikt)
   Double_t               fRadius;                 // jet radius