]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowCommon/AliFittingQDistribution.cxx
added the possibility to use weights of the Q vector to FittingQDistributions
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFittingQDistribution.cxx
index b9749a163e414bfdd57a987526b13e0a4e739384..becab152c6a962471588de14fdba501544236acd 100644 (file)
@@ -57,26 +57,32 @@ ClassImp(AliFittingQDistribution)
 AliFittingQDistribution::AliFittingQDistribution():  
  fTrack(NULL),
  fHistList(NULL),
+ fWeightsList(NULL),
  fAvMultIntFlowFQD(NULL),
  fIntFlowResultsFQD(NULL),
  fSigma2(NULL),
  fCommonHists(NULL),
  fCommonHistsResults(NULL),
- fQDistributionFQD(NULL)
+ fQDistributionFQD(NULL),
+ fUsePhiWeights(kFALSE),
+ fUsePtWeights(kFALSE),
+ fUseEtaWeights(kFALSE)
 {
  //constructor 
- fHistList = new TList(); 
+ fHistList = new TList();
+ fWeightsList = new TList(); 
 }
 
 AliFittingQDistribution::~AliFittingQDistribution()
 {
  //desctructor
  delete fHistList; 
+ delete fWeightsList;
 }
 
 //================================================================================================================
 
-void AliFittingQDistribution::CreateOutputObjects()
+void AliFittingQDistribution::Init()
 {
  //various output histograms
  
@@ -124,7 +130,7 @@ void AliFittingQDistribution::CreateOutputObjects()
  fCommonHistsResults= new AliFlowCommonHistResults("AliFlowCommonHistResultsFQD");
  fHistList->Add(fCommonHistsResults); 
  
-}//end of CreateOutputObjects()
+}//end of Init()
 
 //================================================================================================================
 
@@ -142,7 +148,7 @@ void AliFittingQDistribution::Make(AliFlowEventSimple* anEvent)
  AliFlowVector fQVector;
  fQVector.Set(0.,0.);
  fQVector.SetMult(0);
- fQVector=anEvent->GetQ(n);                                                                                  
+ fQVector=anEvent->GetQ(n,fWeightsList,fUsePhiWeights,fUsePtWeights,fUseEtaWeights);                                                                                  
                                                                                                                                                                       
  //multiplicity
  fAvMultIntFlowFQD->Fill(0.,fQVector.GetMult(),1.);