Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-15 09:11:33

0001 // Author: Ivan Kabadzhov, Enrico Guiraud CERN  01/2022
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_RDFDescription
0012 #define ROOT_RDFDescription
0013 
0014 #include <string>
0015 
0016 namespace ROOT {
0017 namespace RDF {
0018 
0019 /**
0020 \class ROOT::RDF::RDFDescription
0021 \ingroup dataframe
0022 \brief A DFDescription contains useful information about a given RDataFrame computation graph.
0023 
0024  A DFDescription is returned by the Describe() RDataFrame method.
0025  Each DFDescription object can output either a brief or full description.
0026 */
0027 class RDFDescription {
0028 
0029    std::string fBriefDescription;
0030    std::string fFullDescription;
0031    unsigned int fFileCount;
0032 
0033 public:
0034    RDFDescription(const std::string &briefDescription, const std::string &fullDescription, unsigned int filecount);
0035 
0036    std::string AsString(bool shortFormat = false) const;
0037 
0038    unsigned int GetNFiles() const { return fFileCount; }
0039 
0040    void Print(bool shortFormat = false) const;
0041 
0042    friend std::ostream &operator<<(std::ostream &os, const RDFDescription &description);
0043 };
0044 
0045 } // namespace RDF
0046 } // namespace ROOT
0047 
0048 /// Print an RDFDescription at the prompt
0049 namespace cling {
0050 std::string printValue(ROOT::RDF::RDFDescription *td);
0051 } // namespace cling
0052 
0053 #endif