52   TFile f1(
"mathcoreVectorIO_F.root",
"RECREATE");
 
   55   TTree t1(
"t1",
"Tree with new Float LorentzVector");
 
   58   t1.Branch(
"LV branch",
"ROOT::Math::XYZTVectorF",&
v1);
 
   61   for (
int i = 0; i < 
n; ++i) {
 
   62      double Px = 
R.Gaus(0,10);
 
   63      double Py = 
R.Gaus(0,10);
 
   64      double Pz = 
R.Gaus(0,10);
 
   65      double E  = 
R.Gaus(100,10);
 
   66      v1->SetCoordinates(Px,Py,Pz,E);
 
   72   std::cout << 
" Time for new Float Vector " << 
timer.RealTime() << 
"  " << 
timer.CpuTime() << std::endl;
 
   81   TFile f1(
"mathcoreVectorIO_F.root");
 
   87   t1->SetBranchAddress(
"LV branch",&
v1);
 
   90   int n = (
int) 
t1->GetEntries();
 
   91   std::cout << 
" Tree Entries " << 
n << std::endl;
 
   93   for (
int i = 0; i < 
n; ++i) {
 
   99   std::cout << 
" Time for new Float Vector " << 
timer.RealTime() << 
"  " << 
timer.CpuTime() << std::endl;
 
  100   std::cout << 
" E average" << 
n<< 
"  " << 
etot << 
"  " << 
etot/
double(
n) << endl;
 
  105#if defined(__CINT__) && !defined(__MAKECINT__) 
  110   cout << 
"This tutorial can run only using ACliC, you must run it by doing: " << endl;
 
  111   cout << 
"\t  .L tutorials/math/mathcoreVectorFloatIO.C+" << endl;
 
  112   cout << 
"\t  runIt()" << endl;
 
  114   int nEvents = 100000;
 
  120#if defined(__CINT__) && !defined(__MAKECINT__) 
  125   cout << 
"This tutorial can run only using ACliC, you must run it by doing: " << endl;
 
  126   cout << 
"\t  .L tutorials/math/mathcoreVectorFloatIO.C+" << endl;
 
  127   cout << 
"\t  runIt()" << endl;
 
#define R(a, b, c, d, e, f, g, h, i)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
R__EXTERN TSystem * gSystem
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
virtual Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
 
This is the base class for the ROOT Random number generators.
 
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
 
A TTree represents a columnar dataset.
 
constexpr Double_t E()
Base of natural log: .