An object to store an output file and a tree in one common place to share them between instances of Snapshot with systematic uncertainties.
Definition at line 1013 of file RDFSnapshotHelpers.cxx.
Classes | |
| struct | Bitmask |
Public Member Functions | |
| SnapshotOutputWriter (SnapshotOutputWriter &&) noexcept=delete | |
| SnapshotOutputWriter (SnapshotOutputWriter const &)=delete | |
| SnapshotOutputWriter (TFile *file) | |
| ~SnapshotOutputWriter () | |
| void | ClearMaskBits () |
| Clear all bits, as if none of the variations passed its filter. | |
| bool | MaskEmpty () const |
| Test if any of the mask bits are set. | |
| SnapshotOutputWriter & | operator= (SnapshotOutputWriter &&) noexcept=delete |
| SnapshotOutputWriter & | operator= (SnapshotOutputWriter const &)=delete |
| void | RegisterBranch (std::string const &branchName, unsigned int variationIndex) |
| Register a branch and corresponding systematic uncertainty. | |
| void | SetMaskBit (unsigned int index) |
Set a bit signalling that the variation at index passed its filter. | |
| void | Write () const |
| Write the current event and the bitmask to the output dataset. | |
Public Attributes | |
| std::vector< Bitmask > | fBitMasks |
| std::unordered_map< std::string, std::pair< std::string, unsigned int > > | fBranchToBitmaskMapping |
| std::unordered_map< std::string, unsigned int > | fBranchToVariationMapping |
| std::string | fDirectoryName |
| std::unique_ptr< TFile > | fFile |
| unsigned int | fNBits = 0 |
| RLoopManager * | fOutputLoopManager |
| std::unique_ptr< TTree > | fTree |
|
inline |
Definition at line 1033 of file RDFSnapshotHelpers.cxx.
|
inline |
Definition at line 1034 of file RDFSnapshotHelpers.cxx.
|
delete |
|
deletenoexcept |
|
inline |
Clear all bits, as if none of the variations passed its filter.
Definition at line 1096 of file RDFSnapshotHelpers.cxx.
|
inline |
Test if any of the mask bits are set.
Definition at line 1111 of file RDFSnapshotHelpers.cxx.
|
deletenoexcept |
|
delete |
|
inline |
Register a branch and corresponding systematic uncertainty.
This will create an entry in the mapping from branch names to bitmasks, so the corresponding column can be masked if it doesn't contain valid entries. This mapping is written next to the tree into the output file.
Definition at line 1067 of file RDFSnapshotHelpers.cxx.
|
inline |
Set a bit signalling that the variation at index passed its filter.
Definition at line 1103 of file RDFSnapshotHelpers.cxx.
|
inline |
Write the current event and the bitmask to the output dataset.
Definition at line 1117 of file RDFSnapshotHelpers.cxx.
| std::vector<Bitmask> ROOT::Internal::RDF::SnapshotOutputWriter::fBitMasks |
Definition at line 1026 of file RDFSnapshotHelpers.cxx.
| std::unordered_map<std::string, std::pair<std::string, unsigned int> > ROOT::Internal::RDF::SnapshotOutputWriter::fBranchToBitmaskMapping |
Definition at line 1030 of file RDFSnapshotHelpers.cxx.
| std::unordered_map<std::string, unsigned int> ROOT::Internal::RDF::SnapshotOutputWriter::fBranchToVariationMapping |
Definition at line 1028 of file RDFSnapshotHelpers.cxx.
| std::string ROOT::Internal::RDF::SnapshotOutputWriter::fDirectoryName |
Definition at line 1016 of file RDFSnapshotHelpers.cxx.
| std::unique_ptr<TFile> ROOT::Internal::RDF::SnapshotOutputWriter::fFile |
Definition at line 1014 of file RDFSnapshotHelpers.cxx.
| unsigned int ROOT::Internal::RDF::SnapshotOutputWriter::fNBits = 0 |
Definition at line 1031 of file RDFSnapshotHelpers.cxx.
| RLoopManager* ROOT::Internal::RDF::SnapshotOutputWriter::fOutputLoopManager |
Definition at line 1017 of file RDFSnapshotHelpers.cxx.
| std::unique_ptr<TTree> ROOT::Internal::RDF::SnapshotOutputWriter::fTree |
Definition at line 1015 of file RDFSnapshotHelpers.cxx.