#include <Write.hpp>
Inheritance diagram for cafe::Write:

Public Member Functions | |
| Write (const char *name) | |
| ~Write () | |
| void | finish () |
| Called at end of processing. | |
| bool | processEvent (Event &event) |
| Called for every event. | |
| void | inputFileOpened (TFile *file) |
| Called for every new input file that was opened. | |
| ClassDef (Write, 0) | |
Private Member Functions | |
| void | copy_file () |
| bool | containsUpdatedClass (TBranch *br) |
| Returns true if the branch references a class of some sort that has a class version different from the one we currently have loaded in memory. | |
| void | updateBranch (TTree *input_tree, const std::string &branch_name) |
| Update the current output tree with a new version of this branch. | |
Private Attributes | |
| std::string | _treeName |
| std::vector< std::string > | _branches |
| std::vector< std::string > | _disable |
| TFile * | _file |
| TTree * | _tree |
| FilePattern | _pattern |
| Long64_t | _autosave |
| bool | _fileOwner |
| std::string | _destination |
| unsigned int | _filesPerOutput |
| unsigned int | _filesPerOutputDone |
| bool | _updateObjectVersion |
| Should we re-write branches that contain new versions of objects. | |
| std::vector< std::string > | _updatedBranches |
| List of top level branch names that need updating. | |
Configuration options:
Definition at line 37 of file Write.hpp.
|
|
Definition at line 49 of file Write.cpp. References _autosave, _branches, _destination, _disable, _filesPerOutput, _filesPerOutputDone, _pattern, _treeName, _updateObjectVersion, cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), and cafe::FilePattern::set(). |
|
|
|
|
||||||||||||
|
|
|
|
Returns true if the branch references a class of some sort that has a class version different from the one we currently have loaded in memory.
Definition at line 261 of file Write.cpp. Referenced by inputFileOpened(). |
|
|
Definition at line 300 of file Write.cpp. References _destination, _file, cafe::Processor::err(), cafe::Processor::name(), and cafe::Processor::out(). Referenced by finish(), and inputFileOpened(). |
|
|
Called at end of processing.
Reimplemented from cafe::Processor. Definition at line 74 of file Write.cpp. References _destination, _file, _fileOwner, and copy_file(). |
|
|
Called for every new input file that was opened.
Reimplemented from cafe::Processor. Definition at line 114 of file Write.cpp. References _branches, _destination, _disable, _file, _fileOwner, _filesPerOutput, _filesPerOutputDone, _pattern, _tree, _treeName, _updatedBranches, _updateObjectVersion, containsUpdatedClass(), copy_file(), disableBranch(), enableBranch(), cafe::Processor::err(), cafe::Processor::getDirectory(), cafe::Processor::name(), cafe::Processor::out(), cafe::FilePattern::replace(), and updateBranch(). |
|
|
Called for every event.
Reimplemented from cafe::Processor. Definition at line 87 of file Write.cpp. References _autosave, _tree, cafe::Processor::eventCount(), cafe::EventBase::getTree(), and cafe::EventBase::readBranch(). |
|
||||||||||||
|
Update the current output tree with a new version of this branch. Get the address and use that Definition at line 280 of file Write.cpp. References _tree. Referenced by inputFileOpened(). |
|
|
Definition at line 55 of file Write.hpp. Referenced by processEvent(), and Write(). |
|
|
Definition at line 50 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
|
|
Definition at line 57 of file Write.hpp. Referenced by copy_file(), finish(), inputFileOpened(), and Write(). |
|
|
Definition at line 51 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
|
|
Definition at line 52 of file Write.hpp. Referenced by copy_file(), finish(), and inputFileOpened(). |
|
|
Definition at line 56 of file Write.hpp. Referenced by finish(), and inputFileOpened(). |
|
|
Definition at line 58 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
|
|
Definition at line 59 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
|
|
Definition at line 54 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
|
|
Definition at line 53 of file Write.hpp. Referenced by inputFileOpened(), processEvent(), and updateBranch(). |
|
|
Definition at line 49 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
|
|
List of top level branch names that need updating.
Definition at line 65 of file Write.hpp. Referenced by inputFileOpened(). |
|
|
Should we re-write branches that contain new versions of objects.
Definition at line 62 of file Write.hpp. Referenced by inputFileOpened(), and Write(). |
1.3.4