Hello All,
I am trying use the vector class. I was wondering if someone could point out how I read co-ordinates into the vector. Here is my attempt:
[code]#include "Math/Vector3D.h"
void test() {
#ifdef CINT
gSystem->Load(“libMathCore”);
using namespace ROOT::Math;
#endif
XYZVectorF p1,p2;
Float_t temp;
TFile f("2007-10-01.root");
TTree *Coincidences = (TTree*)gDirectory->Get("Coincidences");
Coincidences->SetBranchAddress("globalPosX1",&temp);
p1->SetX(temp);
}[/code]
I get this error:
Error: Can’t call DisplacementVector3D<ROOT::Math::Cartesian3D,ROOT::Math::DefaultCoordinateSystemTag>::SetX(temp) in current scope test.C:22:
Possible candidates are…
*** Interpreter error recovered ***
Thanks
MT