Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::BranchMapperWithReader Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/IO/Root/BranchMapperWithReader.h"

Inheritance diagram for art::BranchMapperWithReader:
art::BranchMapper

Public Types

using result_t = cet::exempt_ptr< ProductProvenance const >
 

Public Member Functions

 BranchMapperWithReader (TBranch *branch, input::EntryNumber entryNumber)
 
void write (std::ostream &) const
 
result_t branchToProductProvenance (ProductID const) const
 
result_t insert (std::unique_ptr< ProductProvenance const > &&)
 
void setDelayedRead (bool const value)
 

Private Member Functions

void readProvenance_ () const override
 

Private Attributes

TBranch * branchPtr_
 
input::EntryNumber entryNumber_
 

Detailed Description

Definition at line 25 of file BranchMapperWithReader.h.

Member Typedef Documentation

Definition at line 37 of file BranchMapper.h.

Constructor & Destructor Documentation

art::BranchMapperWithReader::BranchMapperWithReader ( TBranch *  branch,
input::EntryNumber  entryNumber 
)
inline

Definition at line 37 of file BranchMapperWithReader.h.

40  : BranchMapper(true), branchPtr_(branch), entryNumber_(entryNumber)
41 {}
BranchMapper(BranchMapper const &)=delete

Member Function Documentation

result_t art::BranchMapper::branchToProductProvenance ( ProductID  const) const
inherited
result_t art::BranchMapper::insert ( std::unique_ptr< ProductProvenance const > &&  )
inherited
void art::BranchMapperWithReader::readProvenance_ ( ) const
inlineoverrideprivatevirtual

Reimplemented from art::BranchMapper.

Definition at line 44 of file BranchMapperWithReader.h.

References branchPtr_, entryNumber_, and art::input::getEntry().

45 {
46  typedef std::vector<ProductProvenance> ppVec;
47 
48  ppVec infoVector;
49  ppVec* pInfoVector(&infoVector);
50 
51  branchPtr_->SetAddress(&pInfoVector);
53  branchPtr_->ResetAddress();
54 
55  auto me = const_cast<BranchMapperWithReader*>(this);
56  for (auto const& info : infoVector) {
57  me->insert(std::make_unique<ProductProvenance const>(info));
58  }
59 }
const XML_Char XML_Encoding * info
Definition: expat.h:530
BranchMapperWithReader(TBranch *branch, input::EntryNumber entryNumber)
Definition: NueSkimmer.h:24
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
void art::BranchMapper::setDelayedRead ( bool const  value)
inlineinherited

Definition at line 48 of file BranchMapper.h.

References art::BranchMapper::delayedRead_.

49  {
51  }
const XML_Char int const XML_Char * value
Definition: expat.h:331
void art::BranchMapper::write ( std::ostream &  ) const
inherited

Referenced by art::operator<<().

Member Data Documentation

TBranch* art::BranchMapperWithReader::branchPtr_
private

Definition at line 32 of file BranchMapperWithReader.h.

Referenced by readProvenance_().

input::EntryNumber art::BranchMapperWithReader::entryNumber_
private

Definition at line 33 of file BranchMapperWithReader.h.

Referenced by readProvenance_().


The documentation for this class was generated from the following file: