Add cut number string to the name of electron cut histograms
authorpgonzale <pedro.gonzalez.zamora@cern.ch>
Tue, 22 Jul 2014 13:50:58 +0000 (15:50 +0200)
committerpgonzale <pedro.gonzalez.zamora@cern.ch>
Tue, 22 Jul 2014 13:51:44 +0000 (15:51 +0200)
PWGGA/GammaConv/AliDalitzElectronCuts.cxx
PWGGA/GammaConv/macros/AddTask_GammaConvDalitzQAV1_pPb.C
PWGGA/GammaConv/macros/AddTask_GammaConvDalitzV1_pPb.C

index d7e718e..dda084d 100644 (file)
@@ -316,16 +316,16 @@ void AliDalitzElectronCuts::InitCutHistograms(TString name, Bool_t preCut,TStrin
     hTrackNFindClsPtTPCafter = new TH2F(Form("hTrack_NFindCls_Pt_TPC_after %s",cutName.Data()),"Track: N Findable Cls TPC Vs Pt after",60,0,1.5,kPtBins,binsPtDummy);
     fHistograms->Add(hTrackNFindClsPtTPCafter); 
     
-    hTrackPosEtabeforeDedx = new TH1F("hTrack_Pos_Eta_before_Dedx","hTrack_Pos_Eta_before_Dedx",600,-1.5,1.5);
+    hTrackPosEtabeforeDedx = new TH1F(Form("hTrack_Pos_Eta_before_Dedx %s",cutName.Data()),"hTrack_Pos_Eta_before_Dedx",600,-1.5,1.5);
     fHistograms->Add(hTrackPosEtabeforeDedx);
     
-    hTrackNegEtabeforeDedx = new TH1F("hTrack_Neg_Eta_before_Dedx","hTrack_Neg_Eta_before_Dedx",600,-1.5,1.5);
+    hTrackNegEtabeforeDedx = new TH1F(Form("hTrack_Neg_Eta_before_Dedx %s",cutName.Data()),"hTrack_Neg_Eta_before_Dedx",600,-1.5,1.5);
     fHistograms->Add(hTrackNegEtabeforeDedx);
     
-    hTrackPosEtaafterDedx  = new TH1F("hTrack_Pos_Eta_after_Dedx","hTrack_Pos_Eta_after_Dedx",600,-1.5,1.5);
+    hTrackPosEtaafterDedx  = new TH1F(Form("hTrack_Pos_Eta_after_Dedx %s",cutName.Data()),"hTrack_Pos_Eta_after_Dedx",600,-1.5,1.5);
     fHistograms->Add(hTrackPosEtaafterDedx);
     
-    hTrackNegEtaafterDedx  = new TH1F("hTrack_Neg_Eta_afterDedx","hTrack_Neg_Eta_after_Dedx",600,-1.5,1.5);
+    hTrackNegEtaafterDedx  = new TH1F(Form("hTrack_Neg_Eta_afterDedx %s",cutName.Data()),"hTrack_Neg_Eta_after_Dedx",600,-1.5,1.5);
     fHistograms->Add(hTrackNegEtaafterDedx);
     
     
index 36e756b..5c4aaa8 100644 (file)
@@ -516,7 +516,7 @@ if( trainConfig == 1 ) {  // No eta shift |Y| < 0.8
        analysisMesonCuts[i]->SetFillCutHistograms("");
   
 
-      TString cutName( Form("%s_%s_%s_%s",eventCutArray[i].Data(), photonCutArray[i].Data(),ElecCutarray[i].Data(),MesonCutarray[i].Data() ) );
+      //TString cutName( Form("%s_%s_%s_%s",eventCutArray[i].Data(), photonCutArray[i].Data(),ElecCutarray[i].Data(),MesonCutarray[i].Data() ) );
 
 
       analysisElecCuts[i] = new AliDalitzElectronCuts();
@@ -527,7 +527,7 @@ if( trainConfig == 1 ) {  // No eta shift |Y| < 0.8
       }
       
       ElecCutList->Add(analysisElecCuts[i]);
-      analysisElecCuts[i]->SetFillCutHistograms("",kFALSE,cutName); 
+      analysisElecCuts[i]->SetFillCutHistograms("",kFALSE,ElecCutarray[i].Data()); 
            
 
    }
index a0e275e..49126ec 100644 (file)
@@ -455,7 +455,7 @@ if( trainConfig == 1 ) {  // No eta shift |Y| < 0.8
       
 
 
-      TString cutName( Form("%s_%s_%s",photonCutArray[i].Data(),ElecCutarray[i].Data(),MesonCutarray[i].Data() ) );
+      //TString cutName( Form("%s_%s_%s",photonCutArray[i].Data(),ElecCutarray[i].Data(),MesonCutarray[i].Data() ) );
 
 
        analysisElecCuts[i] = new AliDalitzElectronCuts();
@@ -465,7 +465,7 @@ if( trainConfig == 1 ) {  // No eta shift |Y| < 0.8
             return 0;
        }
        ElecCutList->Add(analysisElecCuts[i]);
-       analysisElecCuts[i]->SetFillCutHistograms("",kFALSE,cutName); 
+       analysisElecCuts[i]->SetFillCutHistograms("",kFALSE,ElecCutarray[i].Data()); 
        
 
    }