return IsBetween(pair->GetP());
case kTransMomentum:
return IsBetween(pair->GetPt());
- /*
- case kEta:
- return IsBetween (daughter->Eta());
- */
+ case kEta:
+ return IsBetween(pair->GetEta());
+ case kEtaMC:
+ return IsBetween(pair->GetEtaMC());
case kMomentumMC:
return IsBetween(pair->GetPMC());
case kTransMomentumMC:
virtual Double_t Phi() const {return TMath::ATan2(Py(), Px()) * TMath::RadToDeg();} // degrees
virtual Double_t Theta() const {return TMath::ATan2(Pt(), Pz()) * TMath::RadToDeg();} // degrees
virtual Double_t Eta() const {return -TMath::Log(TMath::Tan(0.5*Theta()));}
- virtual Double_t Y() const {return TMath::Log((E() + Pz()) / (E() - Pz()));}
+ virtual Double_t Y() const {return 0.5*TMath::Log((E() + Pz()) / (E() - Pz()));}
// Charge
virtual Short_t Charge() const {return fCharge;}
Double_t dotProd = 0.0;
dotProd += fDaughter[0]->Px() * fDaughter[1]->Px();
- dotProd += fDaughter[0]->Py() * fDaughter[1]->Pz();
+ dotProd += fDaughter[0]->Py() * fDaughter[1]->Py();
dotProd += fDaughter[0]->Pz() * fDaughter[1]->Pz();
Double_t cosAngle = dotProd / (fDaughter[0]->P() * fDaughter[1]->P());
Double_t GetPhi() const {return TMath::Pi() + TMath::ATan2(-fPTot[1], -fPTot[0]);}
Double_t GetTheta() const {if (fPTot[2]==0.0){return TMath::PiOver2();}
else{return TMath::ACos(fPTot[2]/GetP());}}
- Double_t GetEta() const {return -TMath::Log(TMath::ATan(0.5*GetTheta()));}
+ Double_t GetEta() const {return -TMath::Log(TMath::Tan(0.5*GetTheta()));}
Double_t GetY(Double_t m1, Double_t m2) const {return 0.5*TMath::Log((GetEtot(m1,m2)+fPTot[2])/(GetEtot(m1,m2)-fPTot[2]));}
Double_t GetEtotMC(Double_t m1, Double_t m2) const;
Double_t GetPhiMC() const {return TMath::Pi() + TMath::ATan2(-fPTotMC[1], -fPTotMC[0]);}
Double_t GetThetaMC() const {if (fPTotMC[2]==0.0){return TMath::PiOver2();}
else{return TMath::ACos(fPTotMC[2]/GetPMC());}}
- Double_t GetEtaMC() const {return -TMath::Log(TMath::ATan(0.5*GetThetaMC()));}
+ Double_t GetEtaMC() const {return -TMath::Log(TMath::Tan(0.5*GetThetaMC()));}
Double_t GetYMC(Double_t m1, Double_t m2) const {return 0.5*TMath::Log((GetEtotMC(m1,m2)+fPTotMC[2])/(GetEtotMC(m1,m2)-fPTotMC[2]));}
Double_t GetAngle() const;