Skip to content

Commit

Permalink
Merge pull request #22476 from bianchil/master
Browse files Browse the repository at this point in the history
fixed charged particle multiplicity
  • Loading branch information
alibuild authored Jul 7, 2023
2 parents 34fef34 + 6611423 commit 8b8064e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PWGLF/STRANGENESS/StrPDF/AliAnalysisTaskMultspec_MCpred.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class TParticle;
#include "AliAnalysisManager.h"
#include "AliMCEvent.h"
#include "AliStack.h"
#include "TParticlePDG.h"

#include "AliAnalysisTaskMultspec_MCpred.h"

Expand Down Expand Up @@ -127,9 +128,12 @@ void AliAnalysisTaskMultspec_MCpred::UserExec(Option_t *)

TParticle *lPart = lMCstack->Particle(itrk);
if(!lPart || !lMCstack->IsPhysicalPrimary(itrk)) continue;
double ch = ((TParticlePDG*)lPart->GetPDG())->Charge();

if(lPart->Eta()>-0.5 && lPart->Eta()<0.5) nch++;
else if((lPart->Eta()>2.8 && lPart->Eta()<5.1)||(lPart->Eta()>-3.7 && lPart->Eta()<-1.7)) nV0++;
if(!(TMath::Abs(ch)<1e-3)) {
if(lPart->Eta()>-0.5 && lPart->Eta()<0.5) nch++;
else if((lPart->Eta()>2.8 && lPart->Eta()<5.1)||(lPart->Eta()>-3.7 && lPart->Eta()<-1.7)) nV0++;
}

double rap = Rap(lPart->Energy(),lPart->Pz());
if(rap<-0.5||rap>0.5) continue;
Expand Down

0 comments on commit 8b8064e

Please sign in to comment.