case 331: // Eta'
fHistograms->FillHistogram("MC_DecayEtapGamma_Pt", particle->Pt());
break;
+ case 333: // Phi
+ fHistograms->FillHistogram("MC_DecayPhiGamma_Pt", particle->Pt());
+ break;
}
}
fCFManager->GetParticleContainer()->Fill(containerInput,kStepGenerated); // generated gamma
}
- if(particle->GetMother(0) < 0){ // direct gamma
+ if(particle->GetMother(0) < 0 || //Phojet p+p -> Direct Photons have no mother
+ ((particle->GetMother(0) > -1) &&
+ (TMath::Abs(fStack->Particle(particle->GetMother(0))->GetPdgCode()) < 10)) //Pythia p+p -> Direct Photons have quarks as mother
+ ){ // direct gamma
fHistograms->FillHistogram("MC_allDirectGamma_Energy",particle->Energy());
fHistograms->FillHistogram("MC_allDirectGamma_Pt", particle->Pt());
fHistograms->FillHistogram("MC_allDirectGamma_Eta", particle->Eta());
if(fV0Reader->GetNegativeTracknTPCFClusters()!=0 && fV0Reader->GetNegativeTracknTPCClusters()!=0 ){
Double_t eClsToF= (Double_t)fV0Reader->GetNegativeTracknTPCClusters()/(Double_t)fV0Reader->GetNegativeTracknTPCFClusters();
fHistograms->FillHistogram("ESD_E_nTPCClustersToFP", fV0Reader->GetNegativeTrackP(),eClsToF );
+ fHistograms->FillHistogram("ESD_E_nTPCClustersToFR", fV0Reader->GetXYRadius(),eClsToF );
fHistograms->FillHistogram("ESD_E_TPCchi2", fV0Reader->GetNegativeTrackTPCchi2()/(Double_t)fV0Reader->GetNegativeTracknTPCClusters());
}
if(fV0Reader->GetPositiveTracknTPCFClusters()!=0 && (Double_t)fV0Reader->GetPositiveTracknTPCClusters()!=0 ){
Double_t pClsToF= (Double_t)fV0Reader->GetPositiveTracknTPCClusters()/(Double_t)fV0Reader->GetPositiveTracknTPCFClusters();
fHistograms->FillHistogram("ESD_P_nTPCClustersToFP",fV0Reader->GetPositiveTrackP(), pClsToF);
+ fHistograms->FillHistogram("ESD_P_nTPCClustersToFR",fV0Reader->GetXYRadius(), pClsToF);
fHistograms->FillHistogram("ESD_P_TPCchi2", fV0Reader->GetPositiveTrackTPCchi2()/(Double_t)fV0Reader->GetPositiveTracknTPCClusters());
}
fHistograms->FillHistogram("ESD_TrueConvGamma_Pt_Chi2", fV0Reader->GetMotherCandidatePt(), fV0Reader->GetMotherCandidateChi2());
fHistograms->FillHistogram("ESD_TrueConvGamma_Eta_Chi2", fV0Reader->GetMotherCandidateEta(), fV0Reader->GetMotherCandidateChi2());
-
+
+ if(fV0Reader->GetNegativeTracknTPCFClusters()!=0 && fV0Reader->GetNegativeTracknTPCClusters()!=0 ){
+ Double_t eClsToF= (Double_t)fV0Reader->GetNegativeTracknTPCClusters()/
+ (Double_t)fV0Reader->GetNegativeTracknTPCFClusters();
+ fHistograms->FillHistogram("ESD_TrueConversion_E_nTPCClustersToFR", fV0Reader->GetXYRadius(),eClsToF );
+ }
+
+ if(fV0Reader->GetPositiveTracknTPCFClusters()!=0 && fV0Reader->GetPositiveTracknTPCClusters()!=0 ){
+ Double_t pClsToF= (Double_t)fV0Reader->GetPositiveTracknTPCClusters()
+ /(Double_t)fV0Reader->GetPositiveTracknTPCFClusters();
+ fHistograms->FillHistogram("ESD_TrueConversion_P_nTPCClustersToFR",fV0Reader->GetXYRadius(), pClsToF);
+ }
fHistograms->FillHistogram("ESD_TrueConversion_XY", fV0Reader->GetX(),fV0Reader->GetY());
fHistograms->FillHistogram("ESD_TrueConversion_R", fV0Reader->GetXYRadius());
fHistograms->FillHistogram("ESD_TrueConversion_ZR", fV0Reader->GetZ(),fV0Reader->GetXYRadius());
if(!isRealPi0 && !isRealEta){
if(gamma1MotherLabel>-1 && gamma2MotherLabel>-1){
- fHistograms->FillHistogram("ESD_TrueBckGG_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TrueBckGG_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}else{
- fHistograms->FillHistogram("ESD_TrueBckCont_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TrueBckCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
+ }
+ if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111){
+ fHistograms->FillHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}
}
}
if(!isRealPi0 && !isRealEta){
if(gamma1MotherLabel>-1 && gamma2MotherLabel>-1){
- fHistograms->FillHistogram("ESD_TrueBckGG_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TrueBckGG_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}else{
- fHistograms->FillHistogram("ESD_TrueBckCont_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TrueBckCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
+ }
+ if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111){
+ fHistograms->FillHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}
}
}
fHistograms->FillHistogram("ESD_TruePi0_InvMass",massTwoGammaCandidate);
fHistograms->FillHistogram("ESD_TruePi0_InvMass_vs_Pt_alpha",massTwoGammaCandidate ,momentumVectorTwoGammaCandidate.Pt());
if(gamma1MotherLabel > fV0Reader->GetMCStack()->GetNprimary()){
- fHistograms->FillHistogram("ESD_TruePi0Sec_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TruePi0Sec_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}
}
if(!isRealPi0 && !isRealEta){
if(gamma1MotherLabel>-1 && gamma2MotherLabel>-1){
- fHistograms->FillHistogram("ESD_TrueBckGG_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TrueBckGG_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}else{
- fHistograms->FillHistogram("ESD_TrueBckCont_InvMass",massTwoGammaCandidate);
+ fHistograms->FillHistogram("ESD_TrueBckCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
+ }
+ if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111){
+ fHistograms->FillHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
}
}
}
Double_t kGClastXBinNITSClusters = 6.5;
//TPCcluster to Findable-plots
-Int_t kGCnYBinsClsToF = 120;
+Int_t kGCnYBinsClsToF = 200;
Double_t kGCfirstYBinClsToF = 0.;
-Double_t kGClastYBinClsToF = 1.2;
+Double_t kGClastYBinClsToF = 2.0;
//TPCchi2 -plots
Int_t kGCnXBinsTPCchi2 = 100;
else{
cout<<"Using mixed event for bg."<<endl;
}
+ if(kGCUseTrackMultiplicityForBG){
+ cout<<"Using track multiplicity for bck"<<endl;
+ }else{
+ cout<<"Using V0 multiplicity for bck"<<endl;
+ }
gammaconversion->SetDoRotation(kGCUseRotationMethodInBG);
cout<<"Using :"<<kGCnumberOfRotationEventsForBG<<" rotations in bg calculation"<<endl;
gammaconversion->SetNumberOfRotationsBG(kGCnumberOfRotationEventsForBG);
histograms->AddHistogram("MC_DecayOmegaGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
histograms->AddHistogram("MC_DecayK0sGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
histograms->AddHistogram("MC_DecayEtapGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
+ histograms->AddHistogram("MC_DecayPhiGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
histograms->AddHistogram("MC_DecayAllGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
}
if(kGCplotESDENITSClusters == kTRUE){ histograms->AddHistogram("ESD_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
if(kGCplotESDENTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_E_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
if(kGCplotESDENTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_E_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
+ if(kGCplotESDENTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_TrueConversion_E_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
if(kGCplotESDETPCchi2 == kTRUE){ histograms->AddHistogram("ESD_E_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
if(kGCplotESDPNITSClusters == kTRUE){ histograms->AddHistogram("ESD_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
if(kGCplotESDPNTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_P_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
if(kGCplotESDPNTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_P_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
+ if(kGCplotESDPNTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_TrueConversion_P_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
if(kGCplotESDPTPCchi2 == kTRUE){ histograms->AddHistogram("ESD_P_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
}
// if(kGCdoNeutralMesonV0MCCheck == kTRUE){
- histograms->AddHistogram("ESD_TrueBckGG_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
- histograms->AddHistogram("ESD_TrueBckCont_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
+ histograms->AddHistogram("ESD_TrueBckGG_InvMass_vs_Pt","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
+ histograms->AddHistogram("ESD_TrueBckCont_InvMass_vs_Pt","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
histograms->AddHistogram("ESD_TruePi0Sec_InvMass_vs_Pt","Invariant mass vs Pt",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
histograms->AddHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt","Invariant mass vs Pt",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
histograms->AddHistogram("ESD_TruePi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
switch(BackgroundScheme){
case 0: //Rotation
kGCUseRotationMethodInBG=kTRUE;
+ kGCdoBGProbability=kFALSE;
break;
- case 1: // mixed event
+ case 1: // mixed event with track multiplicity
kGCUseRotationMethodInBG=kFALSE;
+ kGCUseTrackMultiplicityForBG=kFALSE;
+ kGCdoBGProbability=kFALSE;
+ break;
+ case 2: // mixed event with V0 multiplicity
+ kGCUseRotationMethodInBG=kFALSE;
+ kGCUseTrackMultiplicityForBG=kTRUE;
+ kGCdoBGProbability=kFALSE;
+ break;
+ case 3: //Rotation
+ kGCUseRotationMethodInBG=kTRUE;
+ kGCdoBGProbability=kTRUE;
break;
-
default:
return iResult;
}
case 5:
kGCnumberOfRotationEventsForBG = 50;
break;
+ case 6:
+ kGCnumberOfRotationEventsForBG = 80;
+ break;
+ case 7:
+ kGCnumberOfRotationEventsForBG = 100;
+ break;
default:
return iResult;
}