Warning, file /include/root/ROOT/RDF/RSample.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_RDF_RSAMPLE
0012 #define ROOT_RDF_RSAMPLE
0013
0014 #include <ROOT/RDF/RMetaData.hxx>
0015
0016 #include <string>
0017 #include <vector>
0018
0019 namespace ROOT {
0020 namespace RDF {
0021 namespace Experimental {
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 class RSample {
0040
0041 std::string fSampleName;
0042
0043
0044
0045
0046
0047
0048 std::vector<std::string> fTreeNames;
0049
0050
0051
0052
0053 std::vector<std::string> fFileNameGlobs;
0054
0055 RMetaData fMetaData;
0056
0057
0058 unsigned int fSampleId{0};
0059
0060 public:
0061 RSample(RSample &&) = default;
0062 RSample &operator=(RSample &&) = default;
0063 RSample(const RSample &) = default;
0064 RSample &operator=(const RSample &) = default;
0065 RSample() = delete;
0066
0067 RSample(const std::string &sampleName, const std::string &treeName, const std::string &fileNameGlob,
0068 const RMetaData &metaData = {});
0069
0070 RSample(const std::string &sampleName, const std::string &treeName, const std::vector<std::string> &fileNameGlobs,
0071 const RMetaData &metaData = {});
0072
0073 RSample(const std::string &sampleName, const std::vector<std::pair<std::string, std::string>> &treeAndFileNameGlobs,
0074 const RMetaData &metaData = {});
0075
0076 RSample(const std::string &sampleName, const std::vector<std::string> &treeNames,
0077 const std::vector<std::string> &fileNameGlobs, const RMetaData &metaData = {});
0078
0079 const std::string &GetSampleName() const;
0080 const std::vector<std::string> &GetTreeNames() const;
0081 const std::vector<std::string> &GetFileNameGlobs() const;
0082 const RMetaData &GetMetaData() const;
0083
0084
0085 unsigned int GetSampleId() const;
0086 void SetSampleId(unsigned int id);
0087
0088 };
0089
0090 }
0091 }
0092 }
0093
0094 #endif