// New approch to find particle ratio to reduce memory //
// (Test Only) //
// Copied from NetParticle Classes
-// Origin: Authors: Jochen Thaeder <jochen@thaeder.de>
-// Michael Weber <m.weber@cern.ch>
+// Origin: Jochen Thaeder <jochen@thaeder.de>
+// Michael Weber <m.weber@cern.ch>
//=========================================================================//
#include "TMath.h"
return;
Bool_t isPhysicalPrimary = (fESD) ? fStack->IsPhysicalPrimary(label): (static_cast<AliAODMCParticle*>(particle))->IsPhysicalPrimary();
-
+
// -- Check if correctly identified
// > return if correctly identified -> all ok, no action neededin this method
// > if PID required check -> for the correct (signed pdgcode) particle
Double_t yRec = 0.;
fHelper->IsTrackAcceptedRapidity(track, yRec, ipid);
- Double_t deltaPhi = particle->Phi()-track->Phi();
- if (TMath::Abs(deltaPhi) > TMath::TwoPi()) {
- if (deltaPhi < 0)
- deltaPhi += TMath::TwoPi();
- else
- deltaPhi -= TMath::TwoPi();
- }
-
Double_t yetapid = (ipid == 0 ) ? particle->Eta() : particle->Y();
Double_t yeta = (ipid == 0 ) ? track->Eta() : yRec;
Double_t hnContRec[5] = {fCentralityBin,signRec, yeta,track->Phi(),track->Pt()};
if (ipid == 0) { fHnNchCRec->Fill(hnContRec); fHnNchCMc->Fill(hnContMc); }
- if (ipid == 1) { fHnNpiCRec->Fill(hnContRec); fHnNpiCMc->Fill(hnContMc); }
- if (ipid == 2) { fHnNkaCRec->Fill(hnContRec); fHnNkaCMc->Fill(hnContMc); }
- if (ipid == 3) { fHnNprCRec->Fill(hnContRec); fHnNprCMc->Fill(hnContMc); }
+ else if (ipid == 1) { fHnNpiCRec->Fill(hnContRec); fHnNpiCMc->Fill(hnContMc); }
+ else if (ipid == 2) { fHnNkaCRec->Fill(hnContRec); fHnNkaCMc->Fill(hnContMc); }
+ else if (ipid == 3) { fHnNprCRec->Fill(hnContRec); fHnNprCMc->Fill(hnContMc); }
}
if (idxMC == fLabelsRec[0][ipid][idxRec]) {
recStatus = 1.;
- if (idxMC == fLabelsRec[1][ipid][idxRec])
- recPid = 1.;
+ if (idxMC == fLabelsRec[1][ipid][idxRec]) recPid = 1.;
AliVTrack *track = NULL;
if(fESD)
track = fAOD->GetTrack(idxRec);
if (track) {
- // if no track present (which should not happen)
- // -> pt = 0. , which is not in the looked at range
-
- // -- Get Reconstructed values
- etaRec = track->Eta();
+ etaRec = track->Eta();
phiRec = track->Phi();
ptRec = track->Pt();
signRec = track->Charge();
- fHelper->IsTrackAcceptedRapidity(track, yRec, ipid); // yRec = y for identified particles | yRec = eta for charged particles
+ fHelper->IsTrackAcceptedRapidity(track, yRec, ipid);
+ Double_t yeta = (ipid == 0 ) ? etaRec : yRec;
+ Double_t hneffRec[5] = {fCentralityBin,signRec, yeta,phiRec,ptRec};
+ if (ipid == 0) { fHnNchERec->Fill(hneffRec); }
+ else if (ipid == 1) { fHnNpiERec->Fill(hneffRec); }
+ else if (ipid == 2) { fHnNkaERec->Fill(hneffRec); }
+ else if (ipid == 3) { fHnNprERec->Fill(hneffRec); }
+
}
break;
}
*/
Double_t yetapid = (ipid == 0 ) ? particle->Eta() : particle->Y();
- Double_t yeta = (ipid == 0 ) ? etaRec : yRec;
+
// Printf("%2d %10.5f %10.5f %10.5f %10.5f %10.5f %10.5f", ipid, yetapid, yeta, particle->Eta(), particle->Y(), etaRec, yRec);
Double_t hneffMc[8] = {fCentralityBin,signMC,findable, recStatus, recPid,yetapid,particle->Phi(),particle->Pt()};
- Double_t hneffRec[5] = {fCentralityBin,signRec, yeta,phiRec,ptRec};
+
- if (ipid == 0) { fHnNchERec->Fill(hneffRec); fHnNchEMc->Fill(hneffMc); }
- if (ipid == 1) { fHnNpiERec->Fill(hneffRec); fHnNpiEMc->Fill(hneffMc); }
- if (ipid == 2) { fHnNkaERec->Fill(hneffRec); fHnNkaEMc->Fill(hneffMc); }
- if (ipid == 3) { fHnNprERec->Fill(hneffRec); fHnNprEMc->Fill(hneffMc); }
+ if (ipid == 0) { fHnNchEMc->Fill(hneffMc); }
+ else if (ipid == 1) { fHnNpiEMc->Fill(hneffMc); }
+ else if (ipid == 2) { fHnNkaEMc->Fill(hneffMc); }
+ else if (ipid == 3) { fHnNprEMc->Fill(hneffMc); }
} // for (Int_t idxMC = 0; idxMC < nPart; ++idxMC) {