#include <TMBVector3.hpp>
Inheritance diagram for TMBVector3:

Public Member Functions | |
| TMBVector3 (Double_t x=0.0, Double_t y=0.0, Double_t z=0.0) | |
| TMBVector3 (const Double_t *a) | |
| TMBVector3 (const Float_t *a) | |
| TMBVector3 (const TMBVector3 &p) | |
| TMBVector3 (const TVector3 &v) | |
| virtual | ~TMBVector3 () |
| Double_t | operator() (int i) const |
| Double_t | operator[] (int i) const |
| Double_t & | operator() (int i) |
| Double_t & | operator[] (int i) |
| Double_t | x () const |
| Double_t | X () const |
| Double_t | Px () const |
| Double_t | y () const |
| Double_t | Y () const |
| Double_t | Py () const |
| Double_t | z () const |
| Double_t | Z () const |
| Double_t | Pz () const |
| void | SetX (Double_t a) |
| void | SetPx (Double_t a) |
| void | SetY (Double_t a) |
| void | SetPy (Double_t a) |
| void | SetZ (Double_t a) |
| void | SetPz (Double_t a) |
| void | SetXYZ (Double_t x, Double_t y, Double_t z) |
| void | SetPtEtaPhi (Double_t pt, Double_t eta, Double_t phi) |
| void | SetPtThetaPhi (Double_t pt, Double_t theta, Double_t phi) |
| void | GetXYZ (Double_t *carray) const |
| void | GetXYZ (Float_t *carray) const |
| Double_t | Eta () const |
| Double_t | Theta () const |
| Double_t | CosTheta () const |
| Double_t | Phi () const |
| Double_t | Rho () const |
| virtual Double_t | Mag32 () const |
| virtual Double_t | Mag3 () const |
| Double_t | P () const |
| Double_t | DeltaPhi (const TMBVector3 &v) const |
| Double_t | DeltaR (const TMBVector3 &v) const |
| Double_t | DrEtaPhi (const TMBVector3 &lv) const |
| Double_t | Angle (const TVector3 &q) const |
| void | SetPhi (Double_t ph) |
| void | SetTheta (Double_t th) |
| void | SetMag3 (Double_t ma) |
| Double_t | Perp2 () const |
| Double_t | Pt () const |
| Double_t | Perp () const |
| void | SetPerp (Double_t r) |
| Double_t | Perp2 (const TMBVector3 &p) const |
| Double_t | Pt (const TMBVector3 &p) const |
| Double_t | Perp (const TMBVector3 &p) const |
| void | SetMag3ThetaPhi (Double_t mag, Double_t theta, Double_t phi) |
| TMBVector3 & | operator= (const TMBVector3 &p) |
| Bool_t | operator== (const TMBVector3 &v) const |
| Bool_t | operator!= (const TMBVector3 &v) const |
| Bool_t | is_equal (const TMBVector3 &v) const |
| Equivalence operator. | |
| TMBVector3 & | operator+= (const TMBVector3 &p) |
| TMBVector3 & | operator-= (const TMBVector3 &p) |
| TMBVector3 | operator- () const |
| TMBVector3 & | operator *= (Double_t a) |
| TMBVector3 | Unit () const |
| TMBVector3 | Orthogonal () const |
| Double_t | Dot (const TMBVector3 &p) const |
| TMBVector3 | Cross (const TMBVector3 &p) const |
| Double_t | PseudoRapidity () const |
| void | RotateX (Double_t angle) |
| void | RotateY (Double_t angle) |
| void | RotateZ (Double_t angle) |
| void | RotateUz (const TMBVector3 &NewUzVector) |
| void | Rotate (Double_t angle, const TMBVector3 &axis) |
| TMBVector3 & | operator *= (const TRotation &m) |
| TMBVector3 & | Transform (const TRotation &m) |
| TVector2 | XYvector () const |
| operator TVector3 () const | |
| void | Print (Option_t *option="") const |
Static Public Member Functions | |
| bool | is_equal (double x1, double x2) |
Private Attributes | |
| Double32_t | fX |
| X component (left-right). | |
| Double32_t | fY |
| Y component (up-down). | |
| Double32_t | fZ |
| Z component (along the beam). | |
|
||||||||||||||||
|
The constructor. Definition at line 168 of file TMBVector3.hpp. References fX, fY, fZ, and z(). Referenced by Cross(), operator-(), and Orthogonal(). |
|
|
Constructor from an array Definition at line 172 of file TMBVector3.hpp. |
|
|
Constructor from an array Definition at line 176 of file TMBVector3.hpp. |
|
|
Copy constructor. Definition at line 180 of file TMBVector3.hpp. |
|
|
conversion constructor from TVector3 Definition at line 185 of file TMBVector3.hpp. |
|
|
Definition at line 190 of file TMBVector3.hpp. |
|
|
Angle wrt. another vector. Definition at line 325 of file TMBVector3.hpp. |
|
|
get cos(Theta) Definition at line 289 of file TMBVector3.hpp. Referenced by TMBTrack::fill_trpars(), and PseudoRapidity(). |
|
|
Cross product Definition at line 454 of file TMBVector3.hpp. References fX, fY, fZ, and TMBVector3(). |
|
|
Get difference in phi, between -pi and pi Definition at line 308 of file TMBVector3.hpp. References Phi(). |
|
|
Get "distance" dR of v to *this, dR=sqrt(dPhi*dPhi+dEta*dEta) Definition at line 312 of file TMBVector3.hpp. Referenced by DrEtaPhi(), and TMBTrackCalJet::GetDR(). |
|
|
Scalar product. Definition at line 451 of file TMBVector3.hpp. Referenced by Angle(), TMBLorentzVector::Dot(), operator *(), and Perp2(). |
|
|
Get "distance" dR of lv to *this, dR=sqrt(dPhi*dPhi+dEta*dEta) Definition at line 318 of file TMBVector3.hpp. References DeltaR(). |
|
|
|
Getters into an arry (no checking of array bounds!) Definition at line 281 of file TMBVector3.hpp. |
|
|
Getters into an arry (no checking of array bounds!) Definition at line 278 of file TMBVector3.hpp. Referenced by TMBLorentzVector::GetXYZT(). |
|
||||||||||||
|
Definition at line 10 of file TMBVector3.cpp. |
|
|
Equivalence operator. True if all components are equivalent within machine precision. Definition at line 27 of file TMBVector3.cpp. Referenced by TMBLorentzVector::is_equal(). |
|
|
The magnitude (rho in spherical coordinate system). Definition at line 302 of file TMBVector3.hpp. References Mag32(). Referenced by TMBLorentzVector::Beta(), CosTheta(), P(), Print(), Rho(), SetMag3(), and SetTheta(). |
|
|
The magnitude squared (rho^2 in spherical coordinate system). Definition at line 299 of file TMBVector3.hpp. Referenced by Angle(), TMBLorentzVector::E(), Mag3(), Perp2(), TMBLorentzVector::SetT(), and Unit(). |
|
|
Transform with a rotation matrix Reimplemented in TMBLorentzVector. Definition at line 519 of file TMBVector3.hpp. |
|
|
Scaling with real numbers. Reimplemented in TMBLorentzVector. Definition at line 430 of file TMBVector3.hpp. Referenced by Rotate(). |
|
|
cast to a TVector3 Definition at line 532 of file TMBVector3.hpp. |
|
|
Inequality operator. Not equal if any of X,Y,Z are not equal. Definition at line 409 of file TMBVector3.hpp. |
|
|
Get components by index. Definition at line 208 of file TMBVector3.hpp. |
|
|
Get components by index. Reimplemented in TMBLorentzVector. Definition at line 193 of file TMBVector3.hpp. Referenced by operator[](). |
|
|
Addition. Definition at line 417 of file TMBVector3.hpp. |
|
|
Unary minus. Reimplemented in TMBLorentzVector. Definition at line 427 of file TMBVector3.hpp. References fX, fY, fZ, and TMBVector3(). |
|
|
Subtraction. Definition at line 422 of file TMBVector3.hpp. |
|
|
Assignment. Definition at line 400 of file TMBVector3.hpp. |
|
|
Equality operator. Equal if all components X,Y,Z are equal. Definition at line 406 of file TMBVector3.hpp. |
|
|
Set components by index. Definition at line 219 of file TMBVector3.hpp. References operator()(). |
|
|
Get components by index. Reimplemented in TMBLorentzVector. Definition at line 204 of file TMBVector3.hpp. References operator()(). |
|
|
Vector orthogonal to this. Definition at line 442 of file TMBVector3.hpp. References fX, fY, fZ, and TMBVector3(). |
|
|
get |P| Definition at line 305 of file TMBVector3.hpp. References Mag3(). Referenced by TMBJet::ActAsJESCorrected(), TMBJet::ActAsJESCorrectedShiftedMinus(), TMBJet::ActAsJESCorrectedShiftedPlus(), TMBJet::ActAsJESMUCorrected(), TMBJet::ActAsJESMUCorrectedShiftedMinus(), TMBJet::ActAsJESMUCorrectedShiftedPlus(), TMBJet::ActAsSmeared(), TMBJet::ActAsSmearedMU(), TMBSecondaryVertex::fill_pv_attributes(), and TMBTrackCalJet::print(). |
|
|
The transverse component w.r.t. given axis. Definition at line 388 of file TMBVector3.hpp. References Perp2(). |
|
|
The transverse component (R in cylindrical coordinate system) Definition at line 365 of file TMBVector3.hpp. References Perp2(). Referenced by TMBTau::ET(), Pt(), SetPerp(), SetPhi(), and Theta(). |
|
|
The transverse component w.r.t. given axis squared. Definition at line 378 of file TMBVector3.hpp. |
|
|
The transverse component squared (R^2 in cylindrical coordinate system) Definition at line 359 of file TMBVector3.hpp. Referenced by Perp(). |
|
|
|
print components to stdout Definition at line 536 of file TMBVector3.hpp. |
|
|
Returns the pseudo-rapidity, i.e. -ln(tan(theta/2)) Definition at line 458 of file TMBVector3.hpp. References CosTheta(), and fZ. Referenced by Eta(). |
|
|
The transverse component w.r.t. given axis. Definition at line 385 of file TMBVector3.hpp. References Perp(). |
|
|
transverse component; projection of 3 vector onto XY plane (R in cylindrical coords) Definition at line 362 of file TMBVector3.hpp. References Perp(). Referenced by TMBJet::ActAsUnCorrected(), caf_util::ApplyJES::after(), TMBJet::btag_print(), TMBMuon::CorrectPt(), TMBTrack::fill_trpars(), TMBTrack::fill_trpos(), caf_util::MuonSelector::GetCorrectedPt(), caf_util::ResSelector::GetElectron(), caf_util::ResSelector::GetMuon(), moreThan(), TMBTrackCalJet::print(), TMBTrackCal::print(), caf_util::ResSelector::processEvent(), TMBTrack::propagate(), caf_util::VertexSelector::selectObject(), caf_util::TauSelector::selectObject(), caf_util::JetSelector::selectObject(), and caf_util::ElectronSelector::selectObject(). |
|
|
get X component Definition at line 226 of file TMBVector3.hpp. References x(). Referenced by caf_util::ApplyJES::after(), TMBMuon::CorrectPt(), TMBSecondaryVertex::fill_pv_attributes(), TMBTrack::fill_trpos(), caf_util::ApplyJES::PTrel(), and TMBTrackCalJet::TMBTrackCalJet(). |
|
|
get X component Definition at line 233 of file TMBVector3.hpp. References y(). Referenced by caf_util::ApplyJES::after(), TMBMuon::CorrectPt(), TMBSecondaryVertex::fill_pv_attributes(), TMBTrack::fill_trpos(), caf_util::ApplyJES::PTrel(), and TMBTrackCalJet::TMBTrackCalJet(). |
|
|
get X component Definition at line 240 of file TMBVector3.hpp. References z(). Referenced by caf_util::ApplyJES::after(), TMBMuon::CorrectPt(), TMBTau::etad(), TMBSecondaryVertex::fill_pv_attributes(), caf_util::ReComputeMET::processEvent(), caf_util::ApplyJES::PTrel(), TMBLorentzVector::Rapidity(), and TMBTrackCalJet::TMBTrackCalJet(). |
|
|
get magnitude of momentum ("radius" in spherical coords) Definition at line 296 of file TMBVector3.hpp. References Mag3(). |
|
||||||||||||
|
Rotates around the axis specified by another vector Definition at line 512 of file TMBVector3.hpp. References operator *=(). |
|
|
Rotates reference frame from Uz to newUz (must be unit vector!) Definition at line 494 of file TMBVector3.hpp. |
|
|
Rotates around the x-axis. Definition at line 467 of file TMBVector3.hpp. |
|
|
Rotates around the y-axis. Definition at line 476 of file TMBVector3.hpp. |
|
|
Rotates around the z-axis. Definition at line 485 of file TMBVector3.hpp. |
|
|
Set magnitude keeping theta and phi constant Definition at line 348 of file TMBVector3.hpp. |
|
||||||||||||||||
|
Set all components as magnitude, theta, and phi Definition at line 392 of file TMBVector3.hpp. |
|
|
Set the transverse component keeping phi and z constant. Definition at line 369 of file TMBVector3.hpp. |
|
|
set phi keeping mag and theta constant Definition at line 334 of file TMBVector3.hpp. |
|
||||||||||||||||
|
set all members using |momentum|, eta, and phi Definition at line 259 of file TMBVector3.hpp. References SetXYZ(). Referenced by TMBLorentzVector::SetPEtaPhiE(), TMBLorentzVector::SetPEtaPhiM(), TMBLorentzVector::SetPtEtaPhiE(), and TMBLorentzVector::SetPtEtaPhiM(). |
|
||||||||||||||||
|
set all members using |momentum|, theta, and phi Definition at line 267 of file TMBVector3.hpp. |
|
|
set X component, see TVector3::SetX() Definition at line 245 of file TMBVector3.hpp. References SetX(). |
|
|
set X component, see TVector3::SetX() Definition at line 249 of file TMBVector3.hpp. References SetY(). |
|
|
set X component, see TVector3::SetX() Definition at line 253 of file TMBVector3.hpp. References SetZ(). |
|
|
Set theta keeping mag and phi constant Definition at line 340 of file TMBVector3.hpp. |
|
|
set X component, see TVector3::SetX() Definition at line 243 of file TMBVector3.hpp. References fX. Referenced by SetMag3(), SetPhi(), SetPx(), and SetTheta(). |
|
||||||||||||||||
|
set all members using Cartesian coordinates Definition at line 255 of file TMBVector3.hpp. Referenced by SetPtEtaPhi(), TMBLorentzVector::SetXYZM(), and TMBLorentzVector::SetXYZT(). |
|
|
set X component, see TVector3::SetY() Definition at line 247 of file TMBVector3.hpp. References fY. Referenced by SetMag3(), SetPhi(), SetPy(), and SetTheta(). |
|
|
set X component, see TVector3::SetZ() Definition at line 251 of file TMBVector3.hpp. References fZ. Referenced by SetMag3(), SetPz(), and SetTheta(). |
|
|
get theta Definition at line 287 of file TMBVector3.hpp. References fX, fY, fZ, and Perp(). Referenced by Print(), caf_util::ReComputeMET::processEvent(), and TMBMuonType::tlm(). |
|
|
Transform with a rotation matrix Reimplemented in TMBLorentzVector. Definition at line 523 of file TMBVector3.hpp. Referenced by TMBLorentzVector::Transform(). |
|
|
Unit vector parallel to this. Definition at line 436 of file TMBVector3.hpp. |
|
|
get X component Definition at line 224 of file TMBVector3.hpp. References x(). Referenced by operator *(), TMBLorentzVector::operator TLorentzVector(), operator TVector3(), operator+(), operator-(), Print(), and TMBVector3(). |
|
|
get X component Reimplemented in TMBTrack. Definition at line 222 of file TMBVector3.hpp. References fX. Referenced by TMBTau::give_sign(), Px(), and X(). |
|
|
TVector2 containing x and y components Definition at line 528 of file TMBVector3.hpp. |
|
|
get Y component Definition at line 231 of file TMBVector3.hpp. References y(). Referenced by operator *(), TMBLorentzVector::operator TLorentzVector(), operator TVector3(), operator+(), operator-(), Print(), and TMBVector3(). |
|
|
get Y component Reimplemented in TMBTrack. Definition at line 229 of file TMBVector3.hpp. References fY. |
|
|
get Z component Definition at line 238 of file TMBVector3.hpp. References z(). Referenced by TMBLorentzVector::Minus(), TMBLorentzVector::Mt2(), operator *(), TMBLorentzVector::operator TLorentzVector(), operator TVector3(), operator+(), operator-(), TMBLorentzVector::Plus(), Print(), and TMBVector3(). |
|
|
get Y component Reimplemented in TMBTrack. Definition at line 236 of file TMBVector3.hpp. References fZ. Referenced by TMBTau::etad(), Pz(), TMBVector3(), TMBTau::vz(), and Z(). |
|
|
X component (left-right).
Definition at line 547 of file TMBVector3.hpp. Referenced by Cross(), Dot(), GetXYZ(), is_equal(), Mag32(), operator *=(), operator!=(), operator()(), operator+=(), operator-()< |