#ifdef __CLING__
#endif
#include "encoder.hxx"
#include "core.hxx"
#include "decoder.hxx"
#include "output_transform.hxx"
#include <vector>
printf(
" Rmem = %8.3f MB, Vmem = %8.f3 MB \n",
);
return p.fMemResident / 1024.;
}
};
{
size_t fa =
a.size() /
rows, fb =
b.size() /
rows;
std::vector<float> out(
rows * (fa + fb));
for (
size_t i = 0; i <
rows; i++) {
std::copy(
a.begin() + i * fa,
a.begin() + (i + 1) * fa, out.begin() + i * (fa + fb));
std::copy(
b.begin() + i * fb,
b.begin() + (i + 1) * fb, out.begin() + i * (fa + fb) + fa);
}
return out;
}
auto latent =
encoder.infer(
d.num_nodes,
d.node_data.data(),
d.num_edges,
d.edge_data.data(),
std::vector<std::vector<float>> output;
for (
int i = 0; i <
nsteps; i++) {
}
return output;
}
};
for (
int i = 0; i <
nevts; i++) {
auto &
n = (*(
ndata.GetPtr()))[i];
auto &
e = (*(
edata.GetPtr()))[i];
auto &
g = (*(
gdata.GetPtr()))[i];
auto &
r = (*(
rdata.GetPtr()))[i];
auto & s = (*(
sdata.GetPtr()))[i];
gd.edge_data.assign(
e.begin(),
e.end());
gd.global_data.assign(
g.begin(),
g.end());
gd.receivers.assign(
r.begin(),
r.end());
gd.senders.assign(s.begin(), s.end());
}
}
{
std::cout << "reading data\n";
auto h1 =
new TH1D(
"h1_sofie",
"SOFIE Node data",40,1,0);
auto h2 =
new TH1D(
"h2_sofie",
"SOFIE Edge data",40,1,0);
auto h3 =
new TH1D(
"h3_sofie",
"SOFIE Global data",40,1,0);
std::cout << "doing inference...\n";
for (
int i = 0; i <
nevts; i++) {
}
auto c2 =
new TCanvas(
"c2",
"Reference Results");
auto o1 = file->Get<
TH1D>(
"h1");
auto o2 = file->Get<
TH1D>(
"h2");
auto o3 = file->Get<
TH1D>(
"h3");
if (verbose)
std::cout <<
"SOFIE global mean " <<
h3->GetMean() <<
" reference " <<
o3->GetMean() << std::endl;
if (std::abs(
h3->GetMean() -
o3->GetMean()) > 5
e-4)
std::cerr << "Error in comparing SOFIE and reference results" << std::endl;
}
#define R__ADD_INCLUDE_PATH(PATH)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
R__EXTERN TSystem * gSystem
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
const_iterator begin() const
const_iterator end() const
A "std::vector"-like collection of values implementing handy operation to analyse them.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
1-D histogram with a double per channel (see TH1 documentation)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual int GetProcInfo(ProcInfo_t *info) const
Returns cpu and memory used by this process into the ProcInfo_t structure.
Double_t Mean(Long64_t n, const T *a, const Double_t *w=nullptr)
Returns the weighted mean of an array a with length n.