Work with befriended RNTuples.
Adapted from tree3.C
#include <vector>
void Generate()
{
for (int i=0; i < 1000; i++) {
for (
int n = 0;
n < ntracks;
n++) {
}
}
}
{
Generate();
std::vector<RNTupleReader::ROpenSpec>
friends{
auto c =
new TCanvas(
"c",
"", 200, 10, 700, 500);
TH1F h(
"h",
"pz {pt > 3.}", 100, -15, 35);
for (
auto i :
viewPt.GetFieldRange()) {
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
The RNTupleModel encapulates the schema of an ntuple.
An RNTuple that is used to read data from storage.
An RNTuple that gets filled with entries (data) and writes them to storage.
1-D histogram with a float per channel (see TH1 documentation)
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
Double_t Rndm() override
Machine independent random number generator.
Double_t Sqrt(Double_t x)
Returns the square root of x.
- Date
- April 2020
- Author
- The ROOT Team
Definition in file ntpl006_friends.C.