if(checkLabelForHIJING) SetGeneratorMinMaxParticles(mcEvent);
fCentBin= -1;
fGoodEvent = kTRUE;//for p+p collisions if we made it this far we have a good event
- if(fDataSet==20100){//If this is Pb+Pb
+ if(fDataSet==20100 ||fDataSet==2011 ){//If this is Pb+Pb
AliCentrality *centrality = realEvent->GetCentrality();
if(fNCentBins<21) fCentBin= centrality->GetCentralityClass10(fCentralityMethod);
else{ fCentBin= centrality->GetCentralityClass5(fCentralityMethod);}
{
AliESDtrack *track = dynamic_cast<AliESDtrack*> (list->At(iTrack));
UInt_t label = (UInt_t)TMath::Abs(track->GetLabel());
- if(checkLabelForHIJING && !IsHIJINGLabel(label,mcEvent,stack) ){cout<<"I am rejecting this particle because it is not HIJING"<<endl;}
+ //if(checkLabelForHIJING && !IsHIJINGLabel(label,mcEvent,stack) ){cout<<"I am rejecting this particle because it is not HIJING"<<endl;}
if(checkLabelForHIJING && !IsHIJINGLabel(label,mcEvent,stack) ) continue;
if (!track)
{
FillHisto1D("SimPiKPEt",fSimPiKPEt,1.0);
FillHisto1D("SimRawEtTPC",fSimRawEtTPC,1.0);
FillHisto1D("SimRawEtITS",fSimRawEtITS,1.0);
- if(fDataSet!=20100 && AliPWG0Helper::GetEventProcessType(mcEvent->Header()) == AliPWG0Helper::kND){
+ if((fDataSet!=20100 || fDataSet==2011) && AliPWG0Helper::GetEventProcessType(mcEvent->Header()) == AliPWG0Helper::kND){
FillHisto1D("SimHadEtND",fSimHadEt,1.0);
FillHisto1D("SimTotEtND",fSimTotEt,1.0);
FillHisto1D("NEventsND",0.5,1);
FillHisto1D("SimRawEtNDMBITS",fSimRawEtITS,1.0);
}
}
- if(fDataSet!=20100 && AliPWG0Helper::GetEventProcessType(mcEvent->Header()) == AliPWG0Helper::kSD){
+ if((fDataSet!=20100||fDataSet==2011) && AliPWG0Helper::GetEventProcessType(mcEvent->Header()) == AliPWG0Helper::kSD){
FillHisto1D("SimHadEtSD",fSimHadEt,1.0);
FillHisto1D("SimTotEtSD",fSimTotEt,1.0);
FillHisto1D("NEventsSD",0.5,1);
FillHisto1D("SimRawEtSDMBITS",fSimRawEtITS,1.0);
}
}
- if(fDataSet!=20100 && AliPWG0Helper::GetEventProcessType(mcEvent->Header()) == AliPWG0Helper::kDD){
+ if((fDataSet!=20100 || fDataSet==2011) && AliPWG0Helper::GetEventProcessType(mcEvent->Header()) == AliPWG0Helper::kDD){
FillHisto1D("SimHadEtDD",fSimHadEt,1.0);
FillHisto1D("SimTotEtDD",fSimTotEt,1.0);
FillHisto1D("NEventsDD",0.5,1);
CreateEtaPtHisto2D("EtNSimulatedAntiProtonEnhanced","Number of simulated #bar{p}");
}
CreateEtaPtHisto2D("EtNSimulatedChargedHadron","Number of simulated charged hadrons");
- if(fDataSet==20100){//If this is Pb+Pb
+ if(fDataSet==20100 || fDataSet==2011){//If this is Pb+Pb
Int_t width = 5;
if(fNCentBins<21) width = 10;
for(Int_t i=0;i<fNCentBins;i++){
CreateEtaPtHisto2D(Form("EtNReconstructed%sAntiProtonEnhanced",cutName->Data()),"Reconstructed E_{T} from #bar{p}");
}
CreateEtaPtHisto2D(Form("EtNReconstructed%sChargedHadron",cutName->Data()),"Reconstructed E_{T} from charged hadrons");
- if(fDataSet==20100){//If this is Pb+Pb
+ if(fDataSet==20100||fDataSet==2011){//If this is Pb+Pb
Int_t width = 5;
if(fNCentBins<21) width = 10;
for(Int_t j=0;j<fNCentBins;j++){
Float_t maxEt = 100.0;
Float_t minEtPiKP = 0.0;
Float_t maxEtPiKP = 100.0;
- if(fDataSet==20100){
+ if(fDataSet==20100 || fDataSet==2011){
maxEt=4000.0;
maxEtPiKP = 2500;
}
TString *sPHOS = new TString("PHOS");
float etDiff = 1.5;
float etDiffLow = etDiff;
- if(fDataSet!=20100){//If this is p+p
+ if(fDataSet!=20100 && fDataSet!=2011){//If this is p+p
etDiffLow = 2.5;
}
CreateHisto1D("SimHadEtDDV0AND","Simulated Hadronic E_{T}","Simulated Hadronic E_{T} for doubly diffractive events","Number of events",nbinsEt*4,minEt,maxEt);
CreateHisto1D("SimTotEtDDMB","Simulated Total E_{T}","Simulated Total E_{T} for doubly diffractive events","Number of events",nbinsEt*4,minEt,maxEt);
CreateHisto1D("SimHadEtDDMB","Simulated Hadronic E_{T}","Simulated Hadronic E_{T} for doubly diffractive events","Number of events",nbinsEt*4,minEt,maxEt);
- if(fDataSet==20100){
+ if(fDataSet==20100||fDataSet==2011){
Int_t width = 5;
if(fNCentBins<21) width = 10;
for(Int_t j=0;j<fNCentBins;j++){
CreatePtHisto1D("pTrecITS","p_{T}^{rec}","p_{T}^{rec}","Number of particles");
CreatePtHisto1D("pTrecTPC","p_{T}^{rec}","p_{T}^{rec}","Number of particles");
CreatePtHisto1D("pTrecTPCITS","p_{T}^{rec}","p_{T}^{rec}","Number of particles");
- if(fDataSet==20100){
+ if(fDataSet==20100||fDataSet==2011){
Int_t width = 5;
if(fNCentBins<21) width = 10;
for(Int_t j=0;j<fNCentBins;j++){
}
fCentBin= -1;
fGoodEvent = kTRUE;//for p+p collisions if we made it this far we have a good event
- if(fDataSet==20100){//If this is Pb+Pb or pPb
+ if(fDataSet==20100||fDataSet==2011){//If this is Pb+Pb or pPb
AliCentrality *centrality = realEvent->GetCentrality();
if(fNCentBins<21) fCentBin= centrality->GetCentralityClass10(fCentralityMethod);
else{ fCentBin= centrality->GetCentralityClass5(fCentralityMethod);}
corrNotID = fCorrections->GetNotIDConstCorrectionITS();
corrNoID = fCorrections->GetNotIDConstCorrectionITSNoID();
}
- if(fDataSet==20100){
+ if(fDataSet==20100||fDataSet==2011){
FillHisto2D("fbkgdVsCentralityBin",fCentBin,corrBkgd,1.0);
FillHisto2D("fnotIDVsCentralityBin",fCentBin,corrNotID,1.0);
FillHisto2D("fpTcutVsCentralityBin",fCentBin,fCorrections->GetpTCutCorrectionTPC(),1.0);
et = Et(track->P(),track->Theta(),fgPiPlusCode,track->Charge());
if(cutset==0){corrEff = fCorrections->GetTPCEfficiencyCorrectionPion(track->Pt(),fCentBin);}
etpartialcorrected = et*corrBkgd*corrEff*corrNotID;
- if(corrEff>0.0&&fDataSet==20100)FillHisto2D("feffPionVsCentralityBin",fCentBin,1.0/corrEff,1.0);
+ if(corrEff>0.0&&(fDataSet==20100||fDataSet==2011))FillHisto2D("feffPionVsCentralityBin",fCentBin,1.0/corrEff,1.0);
if(track->Charge()>0.0){
FillHisto2D(Form("EtDataRaw%sPiPlus",cutName->Data()),track->Pt(),track->Eta(),et);
FillHisto2D(Form("EtDataCorrected%sPiPlus",cutName->Data()),track->Pt(),track->Eta(),etpartialcorrected);
et = Et(track->P(),track->Theta(),fgKPlusCode,track->Charge());
if(cutset==0){corrEff = fCorrections->GetTPCEfficiencyCorrectionKaon(track->Pt(),fCentBin);}
etpartialcorrected = et*corrBkgd*corrEff*corrNotID;
- if(corrEff>0.0&&fDataSet==20100)FillHisto2D("feffKaonVsCentralityBin",fCentBin,1.0/corrEff,1.0);
+ if(corrEff>0.0&&(fDataSet==20100||fDataSet==2011))FillHisto2D("feffKaonVsCentralityBin",fCentBin,1.0/corrEff,1.0);
if(track->Charge()>0.0){
FillHisto2D(Form("EtDataRaw%sKPlus",cutName->Data()),track->Pt(),track->Eta(),et);
et = Et(track->P(),track->Theta(),fgProtonCode,track->Charge());
if(cutset==0){corrEff = fCorrections->GetTPCEfficiencyCorrectionProton(track->Pt(),fCentBin);}
etpartialcorrected = et*corrBkgd*corrEff*corrNotID;
- if(corrEff>0.0&&fDataSet==20100)FillHisto2D("feffProtonVsCentralityBin",fCentBin,1.0/corrEff,1.0);
+ if(corrEff>0.0&&(fDataSet==20100||fDataSet==2011))FillHisto2D("feffProtonVsCentralityBin",fCentBin,1.0/corrEff,1.0);
if(track->Charge()>0.0){
FillHisto2D(Form("EtDataRaw%sProton",cutName->Data()),track->Pt(),track->Eta(),et);
et = Et(track->P(),track->Theta(),fgPiPlusCode,track->Charge());
Float_t etProton = Et(track->P(),track->Theta(),fgProtonCode,track->Charge());
Float_t etKaon = Et(track->P(),track->Theta(),fgKPlusCode,track->Charge());
- if(corrEff>0.0&&fDataSet==20100)FillHisto2D("feffHadronVsCentralityBin",fCentBin,1.0/corrEff,1.0);
+ if(corrEff>0.0&&(fDataSet==20100||fDataSet==2011))FillHisto2D("feffHadronVsCentralityBin",fCentBin,1.0/corrEff,1.0);
etpartialcorrected = et*corrBkgd*corrEffNoID*corrNotID;
etpartialcorrectedPion = et*corrBkgd*corrEffNoID;
etpartialcorrectedProton = etProton*corrBkgd*corrEffNoID;
Int_t nondiff = 0;//(Int_t) AliPWG0Helper::kND;
Int_t doublediff = 0;//(Int_t) AliPWG0Helper::kDD;
Int_t singlediff = 0;//(Int_t) AliPWG0Helper::kSD;
- if(fDataSet!=20100){
+ if(fDataSet!=20100 && fDataSet!=2011){
nondiff = (Int_t) AliPWG0Helper::kND;
doublediff = (Int_t) AliPWG0Helper::kDD;
singlediff = (Int_t) AliPWG0Helper::kSD;
Float_t maxEt = 100.0;
Float_t minEtPiKP = 0.0;
Float_t maxEtPiKP = 100.0;
- if(fDataSet==20100){
+ if(fDataSet==20100||fDataSet==2011){
maxEt=4000.0;
maxEtPiKP = 2500;
}
CreateHisto1D(histoname,histotitle,xtitle,ytitle->Data(),nbinsEt*2,minEtPiKP,maxEtPiKP);//et
}
- if((fDataSet==20100) && type ==0 &&pid==1){//If this is Pb+Pb and full acceptance with pid
+ if((fDataSet==20100||fDataSet==2011) && type ==0 &&pid==1){//If this is Pb+Pb and full acceptance with pid
Int_t width = 5;
if(fNCentBins<21) width = 10;
for(Int_t i=0;i<fNCentBins;i++){
CreateHisto1D("RecoHadEtFullAcceptanceITSAssumingKaon","Reconstructing E_{T}^{had} with full acceptance for p_{T}>0.10 GeV/c assuming kaons","Reconstructed E_{T}^{had}","dN_{eve}/dE_{T}^{had}",nbinsEt*2,minEt,maxEt);
//Cross checks that corrections are applied correctly
- if(fDataSet==20100){
+ if(fDataSet==20100 || fDataSet==2011){
CreateHisto2D("fbkgdVsCentralityBin","f_{bkgd} vs centrality bin","centrality bin","f_{bkgd}",21,-1.5,19.5,200,0.7,1.05);//
CreateHisto2D("feffPionVsCentralityBin","Pion efficiency vs centrality bin","centrality bin","pion efficiency",21,-1.5,19.5,200,0,1.2);//
CreateHisto2D("feffHadronVsCentralityBin","Hadron efficiency vs centrality bin","centrality bin","hadron efficiency",21,-1.5,19.5,200,0,1.2);//