Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PWGLF/SPECTRA/PiKaPr/TOF/PbPb502/task/AliAnTOFtrack.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Bool_t AliAnTOFtrack::IsTPCElectron(){

//________________________________________________________________________
Bool_t AliAnTOFtrack::IsTPCPiKP(const UInt_t i){
if(i > 3) AliFatal("Wrong index required");
if(i >= 3) AliFatal("Wrong index required");
if(GetMaskBit(fTPCPIDMask, kIsTPCPion + i)) return kTRUE; //5 sigma cut for Pi/K/P in TPC
return kFALSE;
}
Expand Down
26 changes: 15 additions & 11 deletions PWGLF/SPECTRA/PiKaPr/TOF/PbPb502/task/AliAnalysisTaskTOFSpectra.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -786,31 +786,35 @@ void AliAnalysisTaskTOFSpectra::UserCreateOutputObjects(){
fListHist->AddLast(hTOFDist);

if(fPerformance){
hBeta = new TH2F("hBeta", Form("Distribution of the beta;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
const Int_t Bnbins = 4000;
const Double_t Blim[2] = {0., 1.5};
const Double_t Bplim[2] = {0., 10.};

hBeta = new TH2I("hBeta", Form("Distribution of the beta;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBeta);

hBetaNoMismatch = new TH2F("hBetaNoMismatch", Form("Distribution of the beta w/o Mismatch;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaNoMismatch = new TH2I("hBetaNoMismatch", Form("Distribution of the beta w/o Mismatch;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaNoMismatch);

hBetaNoMismatchEtaCut = new TH2F("hBetaNoMismatchEtaCut", Form("Distribution of the beta w/o Mismatch and a |#eta| < 0.5;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaNoMismatchEtaCut = new TH2I("hBetaNoMismatchEtaCut", Form("Distribution of the beta w/o Mismatch and a |#eta| < 0.5;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaNoMismatchEtaCut);

hBetaNoMismatchEtaCutOut = new TH2F("hBetaNoMismatchEtaCutOut", Form("Distribution of the beta w/o Mismatch and a |#eta| > 0.2;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaNoMismatchEtaCutOut = new TH2I("hBetaNoMismatchEtaCutOut", Form("Distribution of the beta w/o Mismatch and a |#eta| > 0.2;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaNoMismatchEtaCutOut);

hBetaCentral = new TH2F("hBetaCentral", Form("Distribution of the beta Central Events;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaCentral = new TH2I("hBetaCentral", Form("Distribution of the beta Central Events;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaCentral);

hBetaNoMismatchCentral = new TH2F("hBetaNoMismatchCentral", Form("Distribution of the beta w/o Mismatch Central Events;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaNoMismatchCentral = new TH2I("hBetaNoMismatchCentral", Form("Distribution of the beta w/o Mismatch Central Events;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaNoMismatchCentral);

hBetaNoMismatchCentralEtaCut = new TH2F("hBetaNoMismatchCentralEtaCut", Form("Distribution of the beta w/o Mismatch Central Events and a |#eta| < 0.5;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaNoMismatchCentralEtaCut = new TH2I("hBetaNoMismatchCentralEtaCut", Form("Distribution of the beta w/o Mismatch Central Events and a |#eta| < 0.5;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaNoMismatchCentralEtaCut);

hBetaNoMismatchCentralEtaCutOut = new TH2F("hBetaNoMismatchCentralEtaCutOut", Form("Distribution of the beta w/o Mismatch Central Events and a |#eta| > 0.2;%s;TOF #beta", pstring.Data()), 400, 0., 10., 400, 0., 1.5);
hBetaNoMismatchCentralEtaCutOut = new TH2I("hBetaNoMismatchCentralEtaCutOut", Form("Distribution of the beta w/o Mismatch Central Events and a |#eta| > 0.2;%s;TOF #beta", pstring.Data()), Bnbins, Bplim[0], Bplim[1], Bnbins, Blim[0], Blim[1]);
fListHist->AddLast(hBetaNoMismatchCentralEtaCutOut);

hTPCdEdx = new TH2F("hTPCdEdx", Form("Distribution of the TPC dE/dx;%s;d#it{E}/d#it{x} in TPC (arb. units)", pstring.Data()), 1000, 0.25, 30., 1000, 0., 1000);
hTPCdEdx = new TH2I("hTPCdEdx", Form("Distribution of the TPC dE/dx;%s;d#it{E}/d#it{x} in TPC (arb. units)", pstring.Data()), 1000, 0.25, 30., 1000, 0., 1000);
fListHist->AddLast(hTPCdEdx);
}

Expand Down Expand Up @@ -1530,8 +1534,8 @@ void AliAnalysisTaskTOFSpectra::UserExec(Option_t *){
if(track->GetSign() == 0) continue; //No neutral particles
hNTrk->Fill(3);// --> Charged track

FindPtBin(); // Find the corresponding Pt bin
if(fBinPtIndex < 0) continue; //Track has higher momentum than actual binning this cut makes sense because if you don't have the DCA templates you cannot correct for primaries!!
FindPtBin(); // Find the corresponding Pt bin
if(fBinPtIndex < 0 || fBinPtIndex >= kPtBins) continue; //Track has higher momentum than actual binning this cut makes sense because if you don't have the DCA templates you cannot correct for primaries!!
hNTrk->Fill(4);// --> Track in pt range

//
Expand Down
19 changes: 10 additions & 9 deletions PWGLF/SPECTRA/PiKaPr/TOF/PbPb502/task/AliAnalysisTaskTOFSpectra.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ class AliAnalysisTaskTOFSpectra : public AliAnalysisTaskSE {
break;
}
if(fBinPtIndex < 0) AliWarning(Form("Pt bin not assigned, fPt value: %f!", fPt));
//if(fBinPtIndex >= 0 && fBinPtIndex + 1 != hNumMatch[0]->GetXaxis()->FindBin(fPt)) AliFatal(Form("Pt bin is different than intendend: %i vs %i!", fBinPtIndex, hNumMatch[0]->GetXaxis()->FindBin(fPt)));
};

///
Expand Down Expand Up @@ -690,15 +691,15 @@ class AliAnalysisTaskTOFSpectra : public AliAnalysisTaskSE {
TH1D* hTimeOfFlightResNoMismatch; ///< Histogram with the Time Of Flight for PID consistent with TPC for Pi K P
TH2F* hPadDist; ///< Histogram with the Impact Residual X and Residual Z values
TH2F* hTOFDist; ///< Histogram with the distributions of the TOF strips and sectors
TH2F* hBeta; ///< Histogram with the track beta vs the track momentum
TH2F* hBetaNoMismatch; ///< Histogram with the track beta vs the track momentum with a cut on the maximum number of clusters to reduce the mismatch
TH2F* hBetaNoMismatchEtaCut; ///< Histogram with the track beta vs the track momentum with a cut on the maximum number of clusters to reduce the mismatch and a cut on the eta range
TH2F* hBetaNoMismatchEtaCutOut; ///< Histogram with the track beta vs the track momentum with a cut on the maximum number of clusters to reduce the mismatch and a lower cut on the eta range
TH2F* hBetaCentral; ///< Histogram with the track beta vs the track momentum for central events
TH2F* hBetaNoMismatchCentral; ///< Histogram with the track beta vs the track momentum for central events with a cut on the maximum number of clusters to reduce the mismatch
TH2F* hBetaNoMismatchCentralEtaCut; ///< Histogram with the track beta vs the track momentum for central events with a cut on the maximum number of clusters to reduce the mismatch and a cut on the eta range
TH2F* hBetaNoMismatchCentralEtaCutOut; ///< Histogram with the track beta vs the track momentum for central events with a cut on the maximum number of clusters to reduce the mismatch and a cut on the eta range
TH2F* hTPCdEdx; ///< Histogram with the track energy loss in the TOC vs the track momentum
TH2I* hBeta; ///< Histogram with the track beta vs the track momentum
TH2I* hBetaNoMismatch; ///< Histogram with the track beta vs the track momentum with a cut on the maximum number of clusters to reduce the mismatch
TH2I* hBetaNoMismatchEtaCut; ///< Histogram with the track beta vs the track momentum with a cut on the maximum number of clusters to reduce the mismatch and a cut on the eta range
TH2I* hBetaNoMismatchEtaCutOut; ///< Histogram with the track beta vs the track momentum with a cut on the maximum number of clusters to reduce the mismatch and a lower cut on the eta range
TH2I* hBetaCentral; ///< Histogram with the track beta vs the track momentum for central events
TH2I* hBetaNoMismatchCentral; ///< Histogram with the track beta vs the track momentum for central events with a cut on the maximum number of clusters to reduce the mismatch
TH2I* hBetaNoMismatchCentralEtaCut; ///< Histogram with the track beta vs the track momentum for central events with a cut on the maximum number of clusters to reduce the mismatch and a cut on the eta range
TH2I* hBetaNoMismatchCentralEtaCutOut; ///< Histogram with the track beta vs the track momentum for central events with a cut on the maximum number of clusters to reduce the mismatch and a cut on the eta range
TH2I* hTPCdEdx; ///< Histogram with the track energy loss in the TOC vs the track momentum
TH2I* hChannelTime; ///< Histogram with the measured time at TOF divided into each channel (or strip) -> Used to get the mismatch
TH1F* hTOFClusters; ///< Histogram with the number of TOF clusters per track
TH1F* hTOFClustersDCApass; ///< Histogram with the number of TOF clusters per track, for tracks which passed the DCA cut for primaries
Expand Down