changes in Muon-Hadron correlation efficiency code (Saehanseul Oh <saehanseul.oh...
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Jan 2013 14:49:27 +0000 (14:49 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Jan 2013 14:49:27 +0000 (14:49 +0000)
PWGCF/Correlations/DPhi/FourierDecomposition/AliMuonEffMC.cxx
PWGCF/Correlations/DPhi/FourierDecomposition/AliMuonEffMC.h

index 75254976b4adcde8ec6b3579125cea703e0a8a88..fcc9d0f7f3a3602258d6eb24fb1170406dcf7c96 100644 (file)
@@ -39,19 +39,6 @@ AliMuonEffMC::AliMuonEffMC() :
   fHMuonParGen(0x0), fHMuonDetGen(0x0), fHMuonDetRec(0x0), fHEtcDetRec(0x0)
 {
   // Constructor
-  DefineInput(0, TChain::Class());
-  DefineOutput(1, TList::Class());
-
-  for(Int_t i=0; i<4; i++)
-  {
-    fHMuMotherGenPt[i] = 0x0;
-    fHMuMotherRecPt[i] = 0x0;
-    fHMuMotherGenPhi[i] = 0x0;
-    fHMuMotherRecPhi[i] = 0x0;
-    fHMuMotherGenEta[i] = 0x0;
-    fHMuMotherRecEta[i] = 0x0;
-    fHMuDCA[i] = 0x0;
-  }
 }
 
 //________________________________________________________________________
@@ -64,17 +51,6 @@ AliMuonEffMC::AliMuonEffMC(const char *name) :
   // Constructor
   DefineInput(0, TChain::Class());
   DefineOutput(1, TList::Class());
-
-  for(Int_t i=0; i<4; i++)
-  {
-    fHMuMotherGenPt[i] = 0x0;
-    fHMuMotherRecPt[i] = 0x0;
-    fHMuMotherGenPhi[i] = 0x0;
-    fHMuMotherRecPhi[i] = 0x0;
-    fHMuMotherGenEta[i] = 0x0;
-    fHMuMotherRecEta[i] = 0x0;
-    fHMuDCA[i] = 0x0;
-  }
 }
 
 //________________________________________________________________________
@@ -89,6 +65,16 @@ void AliMuonEffMC::UserCreateOutputObjects()
 {
   // Create histograms
   // Called once (per slave on PROOF!)
+  for(Int_t i=0; i<4; i++)
+  {
+    fHMuMotherGenPt[i] = 0x0;
+    fHMuMotherRecPt[i] = 0x0;
+    fHMuMotherGenPhi[i] = 0x0;
+    fHMuMotherRecPhi[i] = 0x0;
+    fHMuMotherGenEta[i] = 0x0;
+    fHMuMotherRecEta[i] = 0x0;
+    fHMuDCA[i] = 0x0;
+  }
 
   fOutputList = new TList();
   fOutputList->SetOwner(1);
@@ -313,7 +299,6 @@ void AliMuonEffMC::UserExec(Option_t *)
          dcavalue = muonTrack->GetDCA();
        }
       }
-  
 
       Double_t fillArrayDetRec[5] = { tracketa, trackpt, fCentrality, fZVertex, trackphi };
       fHMuonDetRec->Fill(fillArrayDetRec); 
index 63f127fc8e0c0b14d4062f77d8e4d89d58fbe1c8..297f199e0483f2e2e5f1e99cf1e1ee096309c7cd 100644 (file)
@@ -84,7 +84,7 @@ class AliMuonEffMC : public AliAnalysisTaskSE {
   AliMuonEffMC(const AliMuonEffMC&);            // not implemented
   AliMuonEffMC &operator=(const AliMuonEffMC&); // not implemented
 
-  ClassDef(AliMuonEffMC, 2);
+  ClassDef(AliMuonEffMC, 3);
 };
 
 #endif