CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions | Variables
edm::input Namespace Reference

Classes

struct  BranchInfo
 

Typedefs

typedef std::map< BranchKey
const, BranchInfo
BranchMap
 
typedef Long64_t EntryNumber
 

Functions

Int_t getEntry (TBranch *branch, EntryNumber entryNumber)
 
Int_t getEntry (TTree *tree, EntryNumber entryNumber)
 
Int_t getEntryWithCache (TBranch *branch, EntryNumber entryNumber, TTreeCache *treeCache, InputFile *filePtr)
 
Int_t getEntryWithCache (TTree *tree, EntryNumber entryNumber, TTreeCache *treeCache, InputFile *filePtr)
 

Variables

unsigned int const defaultCacheSize = 20U * 1024 * 1024
 
unsigned int const defaultLearningEntries = 20U
 
unsigned int const defaultNonEventCacheSize = 1U * 1024 * 1024
 
unsigned int const defaultNonEventLearningEntries = 1U
 

Typedef Documentation

typedef std::map<BranchKey const, BranchInfo> edm::input::BranchMap

Definition at line 39 of file Inputfwd.h.

typedef Long64_t edm::input::EntryNumber

Definition at line 40 of file Inputfwd.h.

Function Documentation

Int_t edm::input::getEntry ( TBranch *  branch,
EntryNumber  entryNumber 
)
Int_t edm::input::getEntry ( TTree *  tree,
EntryNumber  entryNumber 
)

Definition at line 196 of file RootTree.cc.

References ExpressReco_HICollisions_FallBack::e, edm::hlt::Exception, cms::Exception::explainSelf(), edm::errors::FileReadError, and n.

196  {
197  Int_t n = 0;
198  try {
199  n = tree->GetEntry(entryNumber);
200  }
201  catch(cms::Exception const& e) {
203  }
204  return n;
205  }
virtual std::string explainSelf() const
Definition: Exception.cc:56
Int_t edm::input::getEntryWithCache ( TBranch *  branch,
EntryNumber  entryNumber,
TTreeCache *  treeCache,
InputFile *  filePtr 
)

Definition at line 208 of file RootTree.cc.

References getEntry(), n, and edm::InputFile::SetCacheRead().

Referenced by edm::RootTree::fillAux(), edm::RootTree::fillBranchEntry(), and edm::RootDelayedReader::getProduct_().

208  {
209  if (tc == 0) {
210  return getEntry(branch, entryNumber);
211  }
212  filePtr->SetCacheRead(tc);
213  Int_t n = getEntry(branch, entryNumber);
214  filePtr->SetCacheRead(0);
215  return n;
216  }
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: RootTree.cc:184
Int_t edm::input::getEntryWithCache ( TTree *  tree,
EntryNumber  entryNumber,
TTreeCache *  treeCache,
InputFile *  filePtr 
)

Definition at line 219 of file RootTree.cc.

References getEntry(), n, and edm::InputFile::SetCacheRead().

219  {
220  if (tc == 0) {
221  return getEntry(tree, entryNumber);
222  }
223  filePtr->SetCacheRead(tc);
224  Int_t n = getEntry(tree, entryNumber);
225  filePtr->SetCacheRead(0);
226  return n;
227  }
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: RootTree.cc:184

Variable Documentation

unsigned int const edm::input::defaultCacheSize = 20U * 1024 * 1024

Definition at line 22 of file Inputfwd.h.

Referenced by edm::RootInputFileSequence::fillDescription().

unsigned int const edm::input::defaultLearningEntries = 20U

Definition at line 24 of file Inputfwd.h.

unsigned int const edm::input::defaultNonEventCacheSize = 1U * 1024 * 1024

Definition at line 23 of file Inputfwd.h.

Referenced by edm::RootFile::RootFile().

unsigned int const edm::input::defaultNonEventLearningEntries = 1U

Definition at line 25 of file Inputfwd.h.