7 #include "StjTrackRegion.h"
12 StjTrackList StjTrackRegion::Do(
const StjTrackList& trackList,
const StJetCandidate* leadingjet,
const TString bname)
17 for (StjTrackList::const_iterator iTrack = trackList.begin(); iTrack != trackList.end(); ++iTrack) {
20 if(bname ==
"toward" ){
21 if(TMath::Abs(TVector2::Phi_mpi_pi( leadingjet->phi() - track.phi)) < (mphiplus * TMath::DegToRad()) && TMath::Abs(track.eta) < mdeta ){
22 elist.push_back(track);
26 if(TMath::Abs(TVector2::Phi_mpi_pi( leadingjet->phi() - track.phi)) > (mphiplus * TMath::DegToRad()) && TMath::Abs(track.eta) < mdeta ){
27 elist.push_back(track);
30 if(bname ==
"transP" || bname ==
"transM"){
31 if(TVector2::Phi_mpi_pi( leadingjet->phi() - track.phi) < (mphiplus * TMath::DegToRad()) && TVector2::Phi_mpi_pi( leadingjet->phi() - track.phi) > (mphiminus * TMath::DegToRad()) && TMath::Abs(track.eta) < mdeta ){
32 elist.push_back(track);