LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::input Namespace Reference

Classes

struct  BranchInfo
 

Typedefs

using BranchMap = std::map< BranchKey const, BranchInfo >
 
using EntryNumber = Long64_t
 
using EntryNumbers = std::vector< EntryNumber >
 

Enumerations

enum  ItemType {
  IsInvalid, IsStop, IsFile, IsRun,
  IsSubRun, IsEvent
}
 

Functions

std::ostream & operator<< (std::ostream &os, ItemType const it)
 
Int_t getEntry (TBranch *branch, EntryNumber entryNumber)
 
Int_t getEntry (TTree *tree, EntryNumber entryNumber)
 

Typedef Documentation

using art::input::BranchMap = typedef std::map<BranchKey const, BranchInfo>

Definition at line 45 of file Inputfwd.h.

using art::input::EntryNumber = typedef Long64_t

Definition at line 46 of file Inputfwd.h.

using art::input::EntryNumbers = typedef std::vector<EntryNumber>

Definition at line 47 of file Inputfwd.h.

Enumeration Type Documentation

Enumerator
IsInvalid 
IsStop 
IsFile 
IsRun 
IsSubRun 
IsEvent 

Definition at line 21 of file InputSource.h.

Function Documentation

Int_t art::input::getEntry ( TBranch *  branch,
EntryNumber  entryNumber 
)

Definition at line 12 of file getEntry.cc.

References e, and art::errors::FileReadError.

Referenced by art::RootInputFile::fillHistory(), art::MixHelper::generateEventAuxiliarySequence(), art::RootInputTree::getAux(), art::RootDelayedReader::getProduct_(), art::detail::readFileIndex(), art::detail::readMetadata(), art::RootInputFile::readParentageTree(), and art::BranchMapperWithReader::readProvenance_().

12  {
13  return branch->GetEntry(entryNumber);
14  }
15  catch (cet::exception& e) {
17  << e.explain_self() << "\n";
18  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
Float_t e
Definition: plot.C:34
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
Int_t art::input::getEntry ( TTree *  tree,
EntryNumber  entryNumber 
)

Definition at line 21 of file getEntry.cc.

References art::errors::FileReadError.

21  {
22  return tree->GetEntry(entryNumber);
23  }
24  catch (cet::exception& e) {
26  << e.explain_self() << "\n";
27  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
Float_t e
Definition: plot.C:34
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
std::ostream& art::input::operator<< ( std::ostream &  os,
ItemType const  it 
)
inline

Definition at line 23 of file InputSource.h.

References IsFile, IsInvalid, IsRun, IsStop, and IsSubRun.

24  {
25  switch (it) {
26  case IsInvalid:
27  os << "Invalid";
28  break;
29  case IsStop:
30  os << "Stop";
31  break;
32  case IsFile:
33  os << "InputFile";
34  break;
35  case IsRun:
36  os << "Run";
37  break;
38  case IsSubRun:
39  os << "SubRun";
40  break;
41  case IsEvent:
42  os << "Event";
43  }
44  return os;
45  }