7 #include "StjMCParticleRegion.h"
12 StjMCParticleList StjMCParticleRegion::Do(
const StjMCParticleList& mcParticleList,
const StJetCandidate* leadingjet,
const TString bname)
14 StjMCParticleList elist;
16 for (StjMCParticleList::const_iterator iParticle = mcParticleList.begin(); iParticle != mcParticleList.end(); ++iParticle) {
18 if(bname ==
"toward" ){
19 if(TMath::Abs(TVector2::Phi_mpi_pi( leadingjet->phi() - particle.phi) < (mphiplus * TMath::DegToRad())) && TMath::Abs(particle.eta) < mdeta ){
20 elist.push_back(particle);
24 if(TMath::Abs(TVector2::Phi_mpi_pi( leadingjet->phi() - particle.phi) > (mphiplus * TMath::DegToRad())) && TMath::Abs(particle.eta) < mdeta ){
25 elist.push_back(particle);
28 if(bname ==
"transP" || bname ==
"transM"){
29 if(TVector2::Phi_mpi_pi( leadingjet->phi() - particle.phi) < (mphiplus * TMath::DegToRad()) && TVector2::Phi_mpi_pi( leadingjet->phi() - particle.phi) > (mphiminus * TMath::DegToRad()) && TMath::Abs(particle.eta) < mdeta ){
30 elist.push_back(particle);