24from datetime
import datetime
29from dask_lxplus
import CernCluster
36 Creates a connection to HTCondor cluster offered by the CERN batch service.
37 Returns a Dask client that RDataFrame will use to distribute computations.
50 container_runtime=
'none',
56 'MY.JobFlavour':
'"espresso"',
72 client = Client(cluster)
79 print(f
"Waiting for {n_workers} workers to start.")
83 print(f
"All workers are ready, took {round(end - start, 2)} seconds.")
90 Run a simple example with RDataFrame, using the previously created
91 connection to the HTCondor cluster.
94 "x",
"gRandom->Rndm() * 100")
101 print(f
"Dataset has {nentries.GetValue()} entries")
102 print(
"Column x stats:")
103 print(f
"\tmean: {meanv.GetValue()}")
104 print(f
"\tmax: {maxv.GetValue()}")
105 print(f
"\tmin: {minv.GetValue()}")
108if __name__ ==
"__main__":
110 print(f
"Starting the computations at {datetime.now()}")
114 print(f
"Computations ended at {datetime.now()}, "
115 f
"took {round(end - start, 2)} seconds.")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...