message: including true electrons cut to fill the histos related to the trigger efficiency
diff: @@ -3267,7 +3267,29 @@ void AliAnalysisTask_JPsi_EMCal::UserExec(Option_t *)
  //only electrons after TPC eID
  - if(fTPCnSigma >= fTPCnsigmaCutMin && fTPCnSigma <= fTPCnsigmaCutMax){
  + // if(fTPCnSigma >= fTPCnsigmaCutMin && fTPCnSigma <= fTPCnsigmaCutMax){
  +
  + //instead of TPCnsigma, let's use true e from MC, to avoid hadron contamination!!!
  + if(fIsMC)
  + {
  + if(fIsAOD)
  + {
  + fMCparticle = (AliAODMCParticle*) fMCarray->At(TMath::Abs(track->GetLabel()));
  +
  + if(fMCparticle->Eta()>=fEtaCutMin && fMCparticle->Eta()<=fEtaCutMax && fMCparticle->Charge()!=0)
  + {
  +
  + if(fMCparticle->GetMother()>0){
  +
  + fMCparticleMother = (AliAODMCParticle*) fMCarray->At(fMCparticle->GetMother());
  + if(fMCparticleMother->GetMother()>0){
  + fMCparticleGMother = (AliAODMCParticle*) fMCarray->At(fMCparticleMother->GetMother());
  + }
  +
  + if(fMCparticle->IsPhysicalPrimary())
  + {
  + if(TMath::Abs(fMCparticle->GetPdgCode())==11){
  +
  //checking correlation between energy and pT
  fHist_energy_pT[0]->Fill(fClus->E(), track->Pt());
  @@ -3343,8 +3365,11 @@ void AliAnalysisTask_JPsi_EMCal::UserExec(Option_t *)
  if(feg1 || fdg1)fECluster_ET_deg1_SM->Fill(supermoduleID,ET);
  if(feg2 || fdg2)fECluster_ET_deg2_SM->Fill(supermoduleID,ET);
  -
  -
  + }//change true electrons from MC
  + }
  + }
  + }
  + }
  }
  //}
  //EID THnsparse
  