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 1024 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 1044 of file RDFSnapshotHelpers.cxx.
|
inline |
Definition at line 1045 of file RDFSnapshotHelpers.cxx.
|
delete |
|
deletenoexcept |
|
inline |
Clear all bits, as if none of the variations passed its filter.
Definition at line 1107 of file RDFSnapshotHelpers.cxx.
|
inline |
Test if any of the mask bits are set.
Definition at line 1122 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 1078 of file RDFSnapshotHelpers.cxx.
|
inline |
Set a bit signalling that the variation at index passed its filter.
Definition at line 1114 of file RDFSnapshotHelpers.cxx.
|
inline |
Write the current event and the bitmask to the output dataset.
Definition at line 1128 of file RDFSnapshotHelpers.cxx.
| std::vector<Bitmask> ROOT::Internal::RDF::SnapshotOutputWriter::fBitMasks |
Definition at line 1037 of file RDFSnapshotHelpers.cxx.
| std::unordered_map<std::string, std::pair<std::string, unsigned int> > ROOT::Internal::RDF::SnapshotOutputWriter::fBranchToBitmaskMapping |
Definition at line 1041 of file RDFSnapshotHelpers.cxx.
| std::unordered_map<std::string, unsigned int> ROOT::Internal::RDF::SnapshotOutputWriter::fBranchToVariationMapping |
Definition at line 1039 of file RDFSnapshotHelpers.cxx.
| std::string ROOT::Internal::RDF::SnapshotOutputWriter::fDirectoryName |
Definition at line 1027 of file RDFSnapshotHelpers.cxx.
| std::unique_ptr<TFile> ROOT::Internal::RDF::SnapshotOutputWriter::fFile |
Definition at line 1025 of file RDFSnapshotHelpers.cxx.
| unsigned int ROOT::Internal::RDF::SnapshotOutputWriter::fNBits = 0 |
Definition at line 1042 of file RDFSnapshotHelpers.cxx.
| RLoopManager* ROOT::Internal::RDF::SnapshotOutputWriter::fOutputLoopManager |
Definition at line 1028 of file RDFSnapshotHelpers.cxx.
| std::unique_ptr<TTree> ROOT::Internal::RDF::SnapshotOutputWriter::fTree |
Definition at line 1026 of file RDFSnapshotHelpers.cxx.