Ali3Vector(const Ali3Vector& v); // Copy constructor
virtual void Load(Ali3Vector& q); // Load all attributes of input Ali3Vector
virtual void SetZero(); // (Re)set all attributes to zero.
- void SetVector(Double_t* v,TString f); // Store vector v in frame f
- void GetVector(Double_t* v,TString f) const; // Provide vector v in frame f
- void SetVector(Float_t* v,TString f); // Store vector v in frame f
- void GetVector(Float_t* v,TString f) const; // Provide vector v in frame f
- void SetErrors(Double_t* e,TString f); // Store errors of vector in frame f
- void GetErrors(Double_t* e,TString f) const; // Provide errors of vector in frame f
- void SetErrors(Float_t* e,TString f); // Store errors of vector in frame f
- void GetErrors(Float_t* e,TString f) const; // Provide errors of vector in frame f
- virtual void Data(TString f="car") const; // Print vector components in frame f
+ void SetVector(Double_t* v,TString f,TString u="rad"); // Store vector v in frame f with ang units u
+ void GetVector(Double_t* v,TString f,TString u="rad") const; // Provide vector v in frame f in ang units u
+ void SetVector(Float_t* v,TString f,TString u="rad"); // Store vector v in frame f with ang units u
+ void GetVector(Float_t* v,TString f,TString u="rad") const; // Provide vector v in frame f in ang units u
+ void SetErrors(Double_t* e,TString f,TString u="rad"); // Store errors of vector in frame f with ang units u
+ void GetErrors(Double_t* e,TString f,TString u="rad") const; // Provide errors of vector in frame f in ang units u
+ void SetErrors(Float_t* e,TString f,TString u="rad"); // Store errors of vector in frame f with ang units u
+ void GetErrors(Float_t* e,TString f,TString u="rad") const; // Provide errors of vector in frame f in ang units u
+ virtual void Data(TString f="car",TString u="rad") const; // Print vector components in frame f in ang units u
Double_t GetNorm(); // Provide norm of the vector
Double_t Dot(Ali3Vector& q); // Provide dot product with q
Double_t GetPseudoRapidity(); // Provide the pseudorapidity w.r.t z-axis
Ali3Vector GetVecLong() const; // Provide longitudinal vector w.r.t. z-axis
Ali3Vector GetPrimed(TRotMatrix* m) const; // Provide vector components in a rotated frame
Ali3Vector GetUnprimed(TRotMatrix* m) const; // Provide original vector components from a rotated one
- Double_t GetX(Int_t i,TString f); // Provide i-th vector component in frame f
+ Double_t GetX(Int_t i,TString f,TString u="rad"); // Provide i-th vector component in frame f in units u
+ virtual Double_t GetOpeningAngle(Ali3Vector& q,TString u="rad"); // Provide opening angle with q in units u
protected:
Double_t fV,fTheta,fPhi; // Vector in spherical coordinates
Double_t fDx,fDy,fDz; // Errors on Cartesian coordinates
Double_t fDresult; // Error on scalar result (e.g. norm or dotproduct)
- ClassDef(Ali3Vector,9) // Handling of 3-vectors in various reference frames.
+ ClassDef(Ali3Vector,10) // Handling of 3-vectors in various reference frames.
};
#endif