Adding option to change the scaling of V0s
authorcnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 02:39:37 +0000 (02:39 +0000)
committercnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 02:39:37 +0000 (02:39 +0000)
PWG4/totEt/AliAnalysisEtCommon.cxx
PWG4/totEt/AliAnalysisEtCommon.h

index ed98df5..b25da4f 100644 (file)
@@ -74,6 +74,7 @@ AliAnalysisEtCommon::AliAnalysisEtCommon() : TObject()
                                           ,fHistogramNameSuffix("")
                                           ,fCuts(0)
                                           ,fDataSet(2010)
+                                          ,fV0ScaleDataSet(2010)
                                           ,fEsdtrackCutsITSTPC(0)
                                           ,fEsdtrackCutsTPC(0)
                                           ,fEsdtrackCutsITS(0)
@@ -142,7 +143,7 @@ void AliAnalysisEtCommon::Init()
   fAntiLambdaPythiaD6T->FixParameter(3,1.115683);
   fLambdaData->FixParameter(3,1.115683);
   fAntiLambdaData->FixParameter(3,1.115683);
-  if(fDataSet==2009){
+  if(fV0ScaleDataSet==2009){
     //These data are from the ALICE 900 GeV p+p paper
     fK0PythiaD6T->SetParameter(0,0.1437);
     fK0PythiaD6T->SetParameter(1,0.1497);
@@ -163,7 +164,7 @@ void AliAnalysisEtCommon::Init()
     fAntiLambdaData->SetParameter(1,0.210);
     fAntiLambdaData->SetParameter(2,9.2);
   }
-  if(fDataSet==2010 ||fDataSet==20100 ){
+  if(fV0ScaleDataSet==2010 ||fV0ScaleDataSet==20100 ){
     //These data are from the CMS analysis note on 7 TeV spectra
     //http://cdsweb.cern.ch/record/1279344/files/QCD-10-007-pas.pdf
     //Note the CMS parameterization of the Levy function differs from the ALICE parameterization by a constant.
index 0ddc5eb..d816082 100644 (file)
@@ -54,7 +54,8 @@ public:
     void SetITSTrackCuts(const AliESDtrackCuts *cuts){ fEsdtrackCutsITS = (AliESDtrackCuts *) cuts;}
     void SetCentralityMethod(char *method){ fCentralityMethod = TString(method);}
     void SetNumberOfCentralityBins(Int_t bins){fNCentBins = bins;}
-    void SetDataSet(Int_t val){fDataSet = val;}
+    void SetDataSet(Int_t val){fDataSet = val;fV0ScaleDataSet=val;}//defaults to using the same data sets
+    void SetV0ScaleDataSet(Int_t val){fV0ScaleDataSet=val;}
     Int_t DataSet()const {return fDataSet;}
 
 protected:   
@@ -67,6 +68,7 @@ protected:
     //2009 = 900 GeV p+p data from 2009
     //2010 = 7 TeV p+p data from 2010
     //20100 = 2.76 TeV Pb+Pb data from 2010
+    Int_t fV0ScaleDataSet;//Integer corresponding to the data set to use for rescaling V0 spectra.  No scale available for 2.76 TeV so we will use both 900 GeV and 7 TeV
 
     /** PDG Database */
     //TDatabasePDG *fPdgDB;//data base used for looking up pdg codes