X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PWGGA%2FCaloTrackCorrelations%2FAliAnaPi0EbE.cxx;h=7791eb42e89db8f9a3752b7bc9f8693a9568e4b1;hb=26a8bf11361709362afbbaa290553a0ce3471beb;hp=1828d95d3ed72318652f9347ec4262a7cc2de8b3;hpb=17f5b4b6f5057288f5a866b8c341405ad3122888;p=u%2Fmrichter%2FAliRoot.git diff --git a/PWGGA/CaloTrackCorrelations/AliAnaPi0EbE.cxx b/PWGGA/CaloTrackCorrelations/AliAnaPi0EbE.cxx index 1828d95d3ed..7791eb42e89 100755 --- a/PWGGA/CaloTrackCorrelations/AliAnaPi0EbE.cxx +++ b/PWGGA/CaloTrackCorrelations/AliAnaPi0EbE.cxx @@ -1647,6 +1647,10 @@ void AliAnaPi0EbE::InitParameters() fMinDist2 = 4.; fMinDist3 = 5.; + fNLMECutMin[0] = 10.; + fNLMECutMin[1] = 6. ; + fNLMECutMin[2] = 6. ; + } //__________________________________________________________________ @@ -2090,9 +2094,11 @@ void AliAnaPi0EbE::MakeShowerShapeIdentification() Int_t nMaxima = 0 ; Double_t mass = 0 , angle = 0; Double_t e1 = 0 , e2 = 0; + Int_t absId1 = -1; Int_t absId2 = -1; + Int_t idPartType = GetCaloPID()->GetIdentifiedParticleTypeFromClusterSplitting(calo,cells,GetCaloUtils(), GetVertex(evtIndex),nMaxima, - mass,angle,e1,e2) ; + mass,angle,e1,e2,absId1,absId2) ; if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - PDG of identified particle %d\n",idPartType); @@ -2104,6 +2110,10 @@ void AliAnaPi0EbE::MakeShowerShapeIdentification() continue ; } + if(nMaxima == 1 && fNLMECutMin[0] > mom.E()) continue; + if(nMaxima == 2 && fNLMECutMin[1] > mom.E()) continue; + if(nMaxima > 2 && fNLMECutMin[2] > mom.E()) continue; + if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - NLM %d accepted \n",nMaxima);