Definition at line 57 of file RootInputFile.h.
art::RootInputFile::RootInputTree::~RootInputTree |
( |
| ) |
|
Definition at line 127 of file RootInputFile.cc.
135 tree_ =
static_cast<TTree*
>(
149 if (!missingOK && !
isValid()) {
152 <<
" could not be initialized correctly from input file.\n";
std::string const & BranchTypeToProductTreeName(BranchType const bt)
std::string const & productProvenanceBranchName(BranchType const bt)
std::string const & BranchTypeToMetaDataTreeName(BranchType const bt)
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const bt)
std::string const & BranchTypeToString(BranchType const bt)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
art::RootInputFile::RootInputTree::RootInputTree |
( |
RootInputTree const & |
| ) |
|
|
delete |
art::RootInputFile::RootInputTree::RootInputTree |
( |
RootInputTree && |
| ) |
|
|
delete |
Definition at line 202 of file RootInputFile.cc.
205 TBranch* branch =
tree_->GetBranch(bd.branchName().c_str());
206 assert(bd.present() == (branch !=
nullptr));
207 assert(bd.dropped() == (branch ==
nullptr));
208 input::BranchInfo
info{bd, branch};
TBranch * art::RootInputFile::RootInputTree::auxBranch |
( |
| ) |
const |
void art::RootInputFile::RootInputTree::dropBranch |
( |
std::string const & |
branchName | ) |
|
Definition at line 213 of file RootInputFile.cc.
215 TBranch* branch =
tree_->GetBranch(branchName.c_str());
216 if (branch ==
nullptr) {
219 TObjArray* leaves =
tree_->GetListOfLeaves();
220 if (leaves ==
nullptr) {
223 int entries = leaves->GetEntries();
225 TLeaf* leaf =
reinterpret_cast<TLeaf*
>((*leaves)[
i]);
226 if (leaf ==
nullptr) {
229 TBranch* br = leaf->GetBranch();
233 if (br->GetMother() == branch) {
234 leaves->Remove(leaf);
238 tree_->GetListOfBranches()->Remove(branch);
239 tree_->GetListOfBranches()->Compress();
bool art::RootInputFile::RootInputTree::isValid |
( |
| ) |
const |
TTree * art::RootInputFile::RootInputTree::metaTree |
( |
| ) |
const |
TBranch * art::RootInputFile::RootInputTree::productProvenanceBranch |
( |
| ) |
const |
TTree * art::RootInputFile::RootInputTree::tree |
( |
| ) |
const |
TBranch* art::RootInputFile::RootInputTree::auxBranch_ {nullptr} |
|
private |
BranchMap art::RootInputFile::RootInputTree::branches_ {} |
|
private |
EntryNumber art::RootInputFile::RootInputTree::entries_ {0} |
|
private |
TTree* art::RootInputFile::RootInputTree::metaTree_ {nullptr} |
|
private |
TBranch* art::RootInputFile::RootInputTree::productProvenanceBranch_ {nullptr} |
|
private |
TTree* art::RootInputFile::RootInputTree::tree_ {nullptr} |
|
private |
The documentation for this class was generated from the following files: