80 Error(
"PDEFoamVect",
"COPY CONSTRUCTOR NOT IMPLEMENTED" );
101 if (&vect ==
this)
return *
this;
102 if (fDim != vect.
fDim)
103 Error(
"PDEFoamVect",
"operator=Dims. are different: %d and %d \n ", fDim, vect.
fDim);
104 if (fDim != vect.
fDim) {
109 for(
Int_t i=0; i<fDim; i++)
122 if ((
n<0) || (
n>=fDim)) {
123 Error(
"PDEFoamVect",
"operator[], out of range \n");
133 for(
Int_t i=0;i<fDim;i++)
134 fCoords[i] = fCoords[i]*
x;
143 if(fDim != shift.
fDim){
144 Error(
"PDEFoamVect",
"operator+, different dimensions= %d %d \n", fDim, shift.
fDim);
146 for(
Int_t i=0;i<fDim;i++)
147 fCoords[i] = fCoords[i] + shift.
fCoords[i];
156 if(fDim != shift.
fDim) {
157 Error(
"PDEFoamVect",
"operator+, different dimensions= %d %d \n", fDim, shift.
fDim);
159 for(
Int_t i=0;i<fDim;i++)
160 fCoords[i] = fCoords[i] - shift.
fCoords[i];
193 for(
Int_t i=0; i<fDim; i++)
194 fCoords[i] = Vect[i];
204 for(
Int_t i=0; i<fDim; i++)
219 streamsize
wid = std::cout.width();
222 for(
Int_t i=0; i<fDim-1; i++)
223 std::cout << std::setw(12) << *(fCoords+i) <<
",";
224 std::cout << std::setw(12) << *(fCoords+fDim-1);
226 std::cout.width(
wid);
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
PDEFoamVect operator-(const PDEFoamVect &)
subtraction operator -; difference of 2 vectors; c=a-b, a=a-b, NEVER USE IT, VERY SLOW!...
PDEFoamVect & operator=(const PDEFoamVect &)
substitution operator
PDEFoamVect & operator+=(const PDEFoamVect &)
unary addition operator +=; adding vector c*=x,
PDEFoamVect operator+(const PDEFoamVect &)
addition operator +; sum of 2 vectors: c=a+b, a=a+b, NEVER USE IT, VERY SLOW!!!
void Print(Option_t *option) const
Printout of all vector components.
virtual ~PDEFoamVect()
Destructor.
Double_t & operator[](Int_t)
[] is for access to elements as in ordinary matrix like a[j]=b[j] (Perhaps against some strict rules ...
PDEFoamVect & operator*=(const Double_t &)
unary multiplication operator *=
PDEFoamVect()
Constructor.
PDEFoamVect & operator-=(const PDEFoamVect &)
unary subtraction operator -=
Double_t * fCoords
[fDim] Coordinates
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.