ROOT
master
Reference Guide
Loading...
Searching...
No Matches
RDFDescription.cxx
Go to the documentation of this file.
1
// Author: Ivan Kabadzhov, Enrico Guiraud CERN 01/2022
2
3
/*************************************************************************
4
* Copyright (C) 1995-2022, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#include "
ROOT/RDF/RDFDescription.hxx
"
12
#include <iostream>
13
14
namespace
ROOT
{
15
namespace
RDF {
16
17
RDFDescription::RDFDescription(
const
std::string &briefDescription,
const
std::string &fullDescription,
18
unsigned
int
filecount)
19
: fBriefDescription(briefDescription), fFullDescription(fullDescription), fFileCount(filecount){};
20
21
std::string RDFDescription::AsString(
bool
shortFormat
/*= false*/
)
const
22
{
23
if
(shortFormat)
24
return
fBriefDescription
;
25
else
26
return
fBriefDescription
+
"\n\n"
+
fFullDescription
;
27
}
28
29
void
RDFDescription::Print(
bool
shortFormat
/*= false*/
)
const
30
{
31
std::cout <<
AsString
(shortFormat);
32
}
33
34
std::ostream &
operator<<
(std::ostream &os,
const
RDFDescription
&description)
35
{
36
os << description.
AsString
();
37
return
os;
38
}
39
40
}
// namespace RDF
41
}
// namespace ROOT
42
43
namespace
cling {
44
//////////////////////////////////////////////////////////////////////////
45
/// Print an RDFDescription at the prompt
46
std::string printValue(
ROOT::RDF::RDFDescription
*td)
47
{
48
return
td->
AsString
();
49
}
50
51
}
// namespace cling
RDFDescription.hxx
ROOT::RDF::RDFDescription
A DFDescription contains useful information about a given RDataFrame computation graph.
Definition
RDFDescription.hxx:27
ROOT::RDF::RDFDescription::fFullDescription
std::string fFullDescription
Definition
RDFDescription.hxx:30
ROOT::RDF::RDFDescription::fBriefDescription
std::string fBriefDescription
Definition
RDFDescription.hxx:29
ROOT::RDF::RDFDescription::AsString
std::string AsString(bool shortFormat=false) const
Definition
RDFDescription.cxx:21
ROOT::Internal::operator<<
std::ostream & operator<<(std::ostream &os, const RConcurrentHashColl::HashValue &h)
Definition
RConcurrentHashColl.cxx:22
ROOT
Definition
EExecutionPolicy.hxx:4
tree
dataframe
src
RDFDescription.cxx
ROOTmaster - Reference Guide Generated on Sat Oct 10 2026 04:48:52 (GVA Time) using Doxygen 1.10.0