CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::RootTree Class Reference

#include <RootTree.h>

Public Types

typedef roottree::BranchMap BranchMap
 
typedef roottree::EntryNumber EntryNumber
 

Public Member Functions

void addBranch (BranchDescription const &prod, std::string const &oldBranchName)
 
TBranch * branchEntryInfoBranch () const
 
BranchMap const & branches () const
 
std::vector< std::string > const & branchNames () const
 
BranchType branchType () const
 
TTreeCache * checkTriggerCache (TBranch *branch, EntryNumber entryNumber) const
 
TTreeCache * checkTriggerCacheImpl (TBranch *branch, EntryNumber entryNumber) const
 
void close ()
 
bool current () const
 
bool current (EntryNumber entry) const
 
void dropBranch (std::string const &oldBranchName)
 
EntryNumber const & entries () const
 
EntryNumber const & entryNumber () const
 
EntryNumber const & entryNumberForIndex (unsigned int index) const
 
template<typename T >
void fillAux (T *&pAux)
 
template<typename T >
void fillBranchEntry (TBranch *branch, EntryNumber entryNumber, T *&pbuf)
 
template<typename T >
void fillBranchEntry (TBranch *branch, T *&pbuf)
 
template<typename T >
void fillBranchEntryMeta (TBranch *branch, EntryNumber entryNumber, T *&pbuf)
 
template<typename T >
void fillBranchEntryMeta (TBranch *branch, T *&pbuf)
 
void getEntry (TBranch *branch, EntryNumber entry) const
 
void insertEntryForIndex (unsigned int index)
 
bool isValid () const
 
TTree const * metaTree () const
 
bool next ()
 
bool nextWithCache ()
 
void numberOfBranchesToAdd (size_t iSize)
 
RootTreeoperator= (RootTree const &)=delete
 
bool previous ()
 
DelayedReaderresetAndGetRootDelayedReader () const
 
void resetTraining ()
 
void rewind ()
 
DelayedReaderrootDelayedReader () const
 
 RootTree (RootTree const &)=delete
 
 RootTree (std::shared_ptr< InputFile > filePtr, BranchType const &branchType, unsigned int nIndexes, unsigned int maxVirtualSize, unsigned int cacheSize, unsigned int learningEntries, bool enablePrefetching, InputType inputType)
 
TTreeCache * selectCache (TBranch *branch, EntryNumber entryNumber) const
 
void setEntryNumber (EntryNumber theEntryNumber)
 
void setPresence (BranchDescription &prod, std::string const &oldBranchName)
 
void setSignals (signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> const *preEventReadSource, signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> const *postEventReadSource)
 
bool skipEntries (unsigned int &offset)
 
void trainCache (char const *branchNames)
 
TTree * tree ()
 
TTree const * tree () const
 
 ~RootTree ()
 

Private Member Functions

void setCacheSize (unsigned int cacheSize)
 
void setTreeMaxVirtualSize (int treeMaxVirtualSize)
 
void startTraining ()
 
void stopTraining ()
 

Private Attributes

TBranch * auxBranch_
 
TBranch * branchEntryInfoBranch_
 
BranchMap branches_
 
std::vector< std::string > branchNames_
 
BranchType branchType_
 
unsigned int cacheSize_
 
bool enablePrefetching_
 
bool enableTriggerCache_
 
EntryNumber entries_
 
EntryNumber entryNumber_
 
std::unique_ptr< std::vector< EntryNumber > > entryNumberForIndex_
 
std::shared_ptr< InputFilefilePtr_
 
TTree * infoTree_
 
unsigned int learningEntries_
 
TTree * metaTree_
 
bool performedSwitchOver_
 
std::shared_ptr< TTreeCache > rawTreeCache_
 
EntryNumber rawTriggerSwitchOverEntry_
 
std::shared_ptr< TTreeCache > rawTriggerTreeCache_
 
std::unique_ptr< RootDelayedReaderrootDelayedReader_
 
TBranch * statusBranch_
 
EntryNumber switchOverEntry_
 
std::unordered_set< TBranch * > trainedSet_
 
bool trainNow_
 
TTree * tree_
 
unsigned long treeAutoFlush_
 
std::shared_ptr< TTreeCache > treeCache_
 
std::unordered_set< TBranch * > triggerSet_
 
std::shared_ptr< TTreeCache > triggerTreeCache_
 

Detailed Description

Definition at line 103 of file RootTree.h.

Member Typedef Documentation

◆ BranchMap

Definition at line 105 of file RootTree.h.

◆ EntryNumber

Definition at line 106 of file RootTree.h.

Constructor & Destructor Documentation

◆ RootTree() [1/2]

edm::RootTree::RootTree ( std::shared_ptr< InputFile filePtr,
BranchType const &  branchType,
unsigned int  nIndexes,
unsigned int  maxVirtualSize,
unsigned int  cacheSize,
unsigned int  learningEntries,
bool  enablePrefetching,
InputType  inputType 
)

Definition at line 29 of file RootTree.cc.

37  : filePtr_(filePtr),
38  tree_(dynamic_cast<TTree*>(
39  filePtr_.get() != nullptr ? filePtr_->Get(BranchTypeToProductTreeName(branchType).c_str()) : nullptr)),
40  metaTree_(dynamic_cast<TTree*>(
41  filePtr_.get() != nullptr ? filePtr_->Get(BranchTypeToMetaDataTreeName(branchType).c_str()) : nullptr)),
43  auxBranch_(tree_ ? getAuxiliaryBranch(tree_, branchType_) : nullptr),
44  treeCache_(),
45  rawTreeCache_(),
48  trainedSet_(),
49  triggerSet_(),
50  entries_(tree_ ? tree_->GetEntries() : 0),
51  entryNumber_(-1),
52  entryNumberForIndex_(new std::vector<EntryNumber>(nIndexes, IndexIntoFile::invalidEntry)),
53  branchNames_(),
54  branches_{},
55  trainNow_(false),
56  switchOverEntry_(-1),
58  performedSwitchOver_{false},
59  learningEntries_(learningEntries),
60  cacheSize_(cacheSize),
61  treeAutoFlush_(0),
62  enablePrefetching_(enablePrefetching),
64  rootDelayedReader_(new RootDelayedReader(*this, filePtr, inputType)),
65  branchEntryInfoBranch_(metaTree_ ? getProductProvenanceBranch(metaTree_, branchType_)
66  : (tree_ ? getProductProvenanceBranch(tree_, branchType_) : nullptr)),
67  infoTree_(dynamic_cast<TTree*>(filePtr_.get() != nullptr
68  ? filePtr->Get(BranchTypeToInfoTreeName(branchType).c_str())
69  : nullptr)) // backward compatibility
70  {
71  if (not tree_) {
72  throw cms::Exception("WrongFileFormat")
73  << "The ROOT file does not contain a TTree named " << BranchTypeToProductTreeName(branchType)
74  << "\n This is either not an edm ROOT file or is one that has been corrupted.";
75  }
76  // On merged files in older releases of ROOT, the autoFlush setting is always negative; we must guess.
77  // TODO: On newer merged files, we should be able to get this from the cluster iterator.
78  long treeAutoFlush = (tree_ ? tree_->GetAutoFlush() : 0);
79  if (treeAutoFlush < 0) {
80  // The "+1" is here to avoid divide-by-zero in degenerate cases.
81  Long64_t averageEventSizeBytes = tree_->GetZipBytes() / (tree_->GetEntries() + 1) + 1;
82  treeAutoFlush_ = cacheSize_ / averageEventSizeBytes + 1;
83  } else {
84  treeAutoFlush_ = treeAutoFlush;
85  }
88  }
89  setTreeMaxVirtualSize(maxVirtualSize);
90  setCacheSize(cacheSize);
91  if (tree_) {
92  Int_t branchCount = tree_->GetListOfBranches()->GetEntriesFast();
93  trainedSet_.reserve(branchCount);
94  triggerSet_.reserve(branchCount);
95  }
96  }

◆ ~RootTree()

edm::RootTree::~RootTree ( )

Definition at line 98 of file RootTree.cc.

98 {}

◆ RootTree() [2/2]

edm::RootTree::RootTree ( RootTree const &  )
delete

Member Function Documentation

◆ addBranch()

void edm::RootTree::addBranch ( BranchDescription const &  prod,
std::string const &  oldBranchName 
)

Definition at line 137 of file RootTree.cc.

137  {
138  assert(isValid());
139  //use the translated branch name
140  TBranch* branch = tree_->GetBranch(oldBranchName.c_str());
141  roottree::BranchInfo info = roottree::BranchInfo(prod);
142  info.productBranch_ = nullptr;
143  if (prod.present()) {
144  info.productBranch_ = branch;
145  //we want the new branch name for the JobReport
146  branchNames_.push_back(prod.branchName());
147  }
148  TTree* provTree = (metaTree_ != nullptr ? metaTree_ : tree_);
149  info.provenanceBranch_ = provTree->GetBranch(oldBranchName.c_str());
150  branches_.insert(prod.branchID(), info);
151  }

References cms::cuda::assert(), MicroEventContent_cff::branch, branches_, branchNames_, info(), edm::roottree::BranchMap::insert(), isValid(), metaTree_, dumpMFGeometry_cfg::prod, and tree_.

◆ branchEntryInfoBranch()

TBranch* edm::RootTree::branchEntryInfoBranch ( ) const
inline

Definition at line 188 of file RootTree.h.

188 { return branchEntryInfoBranch_; }

References branchEntryInfoBranch_.

Referenced by edm::FullProvenanceReader::readProvenance().

◆ branches()

roottree::BranchMap const & edm::RootTree::branches ( ) const

Definition at line 177 of file RootTree.cc.

177 { return branches_; }

References branches_.

Referenced by edm::RootDelayedReader::branches(), checkTriggerCacheImpl(), and trainCache().

◆ branchNames()

std::vector<std::string> const& edm::RootTree::branchNames ( ) const
inline

Definition at line 140 of file RootTree.h.

140 { return branchNames_; }

References branchNames_.

Referenced by edm::RootFile::reportOpened(), and trainCache().

◆ branchType()

BranchType edm::RootTree::branchType ( ) const
inline

Definition at line 196 of file RootTree.h.

196 { return branchType_; }

References branchType_.

Referenced by edm::RootDelayedReader::getProduct_().

◆ checkTriggerCache()

TTreeCache * edm::RootTree::checkTriggerCache ( TBranch *  branch,
EntryNumber  entryNumber 
) const
inline

Definition at line 256 of file RootTree.cc.

256  {
257  if (!treeCache_->IsAsyncReading() && enableTriggerCache_ && (trainedSet_.find(branch) == trainedSet_.end())) {
259  } else {
260  return nullptr;
261  }
262  }

References MicroEventContent_cff::branch, checkTriggerCacheImpl(), enableTriggerCache_, entryNumber(), trainedSet_, and treeCache_.

Referenced by selectCache().

◆ checkTriggerCacheImpl()

TTreeCache * edm::RootTree::checkTriggerCacheImpl ( TBranch *  branch,
EntryNumber  entryNumber 
) const

Definition at line 266 of file RootTree.cc.

266  {
267  // This branch is not going to be in the cache.
268  // Assume this is a "trigger pattern".
269  // Always make sure the branch is added to the trigger set.
270  if (triggerSet_.find(branch) == triggerSet_.end()) {
271  triggerSet_.insert(branch);
272  if (triggerTreeCache_.get()) {
273  triggerTreeCache_->AddBranch(branch, kTRUE);
274  }
275  }
276 
277  if (rawTriggerSwitchOverEntry_ < 0) {
278  // The trigger has never fired before. Take everything not in the
279  // trainedSet and load it from disk
280 
281  // Calculate the end of the next cluster; triggers in the next cluster
282  // will use the triggerCache, not the rawTriggerCache.
283  //
284  // Guarantee that rawTriggerSwitchOverEntry_ is positive (non-zero) after completion
285  // of this if-block.
286  TTree::TClusterIterator clusterIter = tree_->GetClusterIterator(entryNumber);
288  rawTriggerSwitchOverEntry_ = clusterIter();
289  }
290 
291  // ROOT will automatically expand the cache to fit one cluster; hence, we use
292  // 5 MB as the cache size below
293  tree_->SetCacheSize(static_cast<Long64_t>(5 * 1024 * 1024));
294  rawTriggerTreeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
296  rawTriggerTreeCache_->SetEnablePrefetching(false);
297  TObjArray* branches = tree_->GetListOfBranches();
298  int branchCount = branches->GetEntriesFast();
299 
300  // Train the rawTriggerCache to have everything not in the regular cache.
301  rawTriggerTreeCache_->SetLearnEntries(0);
303  for (int i = 0; i < branchCount; i++) {
304  TBranch* tmp_branch = (TBranch*)branches->UncheckedAt(i);
305  if (trainedSet_.find(tmp_branch) != trainedSet_.end()) {
306  continue;
307  }
308  rawTriggerTreeCache_->AddBranch(tmp_branch, kTRUE);
309  }
310  performedSwitchOver_ = false;
311  rawTriggerTreeCache_->StopLearningPhase();
312  filePtr_->SetCacheRead(nullptr);
313 
314  return rawTriggerTreeCache_.get();
316  // The raw trigger has fired and it contents are valid.
317  return rawTriggerTreeCache_.get();
318  } else if (rawTriggerSwitchOverEntry_ > 0) {
319  // The raw trigger has fired, but we are out of the cache. Use the
320  // triggerCache instead.
321  if (!performedSwitchOver_) {
322  rawTriggerTreeCache_.reset();
323  performedSwitchOver_ = true;
324 
325  // Train the triggerCache
326  tree_->SetCacheSize(static_cast<Long64_t>(5 * 1024 * 1024));
327  triggerTreeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
328  triggerTreeCache_->SetEnablePrefetching(false);
329  triggerTreeCache_->SetLearnEntries(0);
330  triggerTreeCache_->SetEntryRange(entryNumber, tree_->GetEntries());
331  for (std::unordered_set<TBranch*>::const_iterator it = triggerSet_.begin(), itEnd = triggerSet_.end();
332  it != itEnd;
333  it++) {
334  triggerTreeCache_->AddBranch(*it, kTRUE);
335  }
336  triggerTreeCache_->StopLearningPhase();
337  filePtr_->SetCacheRead(nullptr);
338  }
339  return triggerTreeCache_.get();
340  }
341 
342  // By construction, this case should be impossible.
343  assert(false);
344  return nullptr;
345  }

References cms::cuda::assert(), MicroEventContent_cff::branch, branches(), entryNumber(), entryNumber_, filePtr_, mps_fire::i, performedSwitchOver_, rawTriggerSwitchOverEntry_, rawTriggerTreeCache_, trainedSet_, tree_, triggerSet_, and triggerTreeCache_.

Referenced by checkTriggerCache().

◆ close()

void edm::RootTree::close ( void  )

Definition at line 440 of file RootTree.cc.

440  {
441  // The TFile is about to be closed, and destructed.
442  // Just to play it safe, zero all pointers to quantities that are owned by the TFile.
444  tree_ = metaTree_ = infoTree_ = nullptr;
445  // We own the treeCache_.
446  // We make sure the treeCache_ is detached from the file,
447  // so that ROOT does not also delete it.
448  filePtr_->SetCacheRead(nullptr);
449  // We *must* delete the TTreeCache here because the TFilePrefetch object
450  // references the TFile. If TFile is closed, before the TTreeCache is
451  // deleted, the TFilePrefetch may continue to do TFile operations, causing
452  // deadlocks or exceptions.
453  treeCache_.reset();
454  rawTreeCache_.reset();
455  triggerTreeCache_.reset();
456  rawTriggerTreeCache_.reset();
457  // We give up our shared ownership of the TFile itself.
458  filePtr_.reset();
459  }

References auxBranch_, branchEntryInfoBranch_, filePtr_, infoTree_, metaTree_, rawTreeCache_, rawTriggerTreeCache_, tree_, treeCache_, and triggerTreeCache_.

Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().

◆ current() [1/2]

bool edm::RootTree::current ( ) const
inline

Definition at line 130 of file RootTree.h.

130 { return entryNumber_ < entries_ && entryNumber_ >= 0; }

Referenced by edm::RootFile::fillEventAuxiliary(), edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlockAuxiliary_(), and edm::RootFile::readRunAuxiliary_().

◆ current() [2/2]

bool edm::RootTree::current ( EntryNumber  entry) const
inline

Definition at line 131 of file RootTree.h.

131 { return entry < entries_ && entry >= 0; }

◆ dropBranch()

void edm::RootTree::dropBranch ( std::string const &  oldBranchName)

Definition at line 153 of file RootTree.cc.

153  {
154  //use the translated branch name
155  TBranch* branch = tree_->GetBranch(oldBranchName.c_str());
156  if (branch != nullptr) {
157  TObjArray* leaves = tree_->GetListOfLeaves();
158  int entries = leaves->GetEntries();
159  for (int i = 0; i < entries; ++i) {
160  TLeaf* leaf = (TLeaf*)(*leaves)[i];
161  if (leaf == nullptr)
162  continue;
163  TBranch* br = leaf->GetBranch();
164  if (br == nullptr)
165  continue;
166  if (br->GetMother() == branch) {
167  leaves->Remove(leaf);
168  }
169  }
170  leaves->Compress();
171  tree_->GetListOfBranches()->Remove(branch);
172  tree_->GetListOfBranches()->Compress();
173  delete branch;
174  }
175  }

References beamvalidation::br, MicroEventContent_cff::branch, entries(), mps_fire::i, and tree_.

◆ entries()

EntryNumber const& edm::RootTree::entries ( ) const
inline

◆ entryNumber()

EntryNumber const& edm::RootTree::entryNumber ( ) const
inline

◆ entryNumberForIndex()

RootTree::EntryNumber const & edm::RootTree::entryNumberForIndex ( unsigned int  index) const

Definition at line 100 of file RootTree.cc.

100  {
101  assert(index < entryNumberForIndex_->size());
102  return (*entryNumberForIndex_)[index];
103  }

References cms::cuda::assert(), entryNumberForIndex_, and findQualityFiles::size.

Referenced by edm::RootDelayedReader::getProduct_(), and edm::FullProvenanceReader::readProvenance().

◆ fillAux()

template<typename T >
void edm::RootTree::fillAux ( T *&  pAux)
inline

◆ fillBranchEntry() [1/2]

template<typename T >
void edm::RootTree::fillBranchEntry ( TBranch *  branch,
EntryNumber  entryNumber,
T *&  pbuf 
)
inline

Definition at line 177 of file RootTree.h.

177  {
178  branch->SetAddress(&pbuf);
180  }

References MicroEventContent_cff::branch, entryNumber(), and getEntry().

◆ fillBranchEntry() [2/2]

template<typename T >
void edm::RootTree::fillBranchEntry ( TBranch *  branch,
T *&  pbuf 
)
inline

Definition at line 160 of file RootTree.h.

160  {
161  branch->SetAddress(&pbuf);
163  }

References MicroEventContent_cff::branch, entryNumber_, and getEntry().

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

◆ fillBranchEntryMeta() [1/2]

template<typename T >
void edm::RootTree::fillBranchEntryMeta ( TBranch *  branch,
EntryNumber  entryNumber,
T *&  pbuf 
)
inline

Definition at line 166 of file RootTree.h.

166  {
167  if (metaTree_ != nullptr) {
168  // Metadata was in separate tree. Not cached.
169  branch->SetAddress(&pbuf);
171  } else {
172  fillBranchEntry<T>(branch, entryNumber, pbuf);
173  }
174  }

References MicroEventContent_cff::branch, entryNumber(), edm::roottree::getEntry(), and metaTree_.

◆ fillBranchEntryMeta() [2/2]

template<typename T >
void edm::RootTree::fillBranchEntryMeta ( TBranch *  branch,
T *&  pbuf 
)
inline

Definition at line 149 of file RootTree.h.

149  {
150  if (metaTree_ != nullptr) {
151  // Metadata was in separate tree. Not cached.
152  branch->SetAddress(&pbuf);
154  } else {
155  fillBranchEntry<T>(branch, pbuf);
156  }
157  }

References MicroEventContent_cff::branch, entryNumber_, edm::roottree::getEntry(), and metaTree_.

Referenced by edm::FullProvenanceReader::readProvenance().

◆ getEntry()

void edm::RootTree::getEntry ( TBranch *  branch,
EntryNumber  entry 
) const

Definition at line 365 of file RootTree.cc.

365  {
366  try {
367  TTreeCache* cache = selectCache(branch, entryNumber);
368  filePtr_->SetCacheRead(cache);
369  branch->GetEntry(entryNumber);
370  filePtr_->SetCacheRead(nullptr);
371  } catch (cms::Exception const& e) {
372  // We make sure the treeCache_ is detached from the file,
373  // so that ROOT does not also delete it.
374  filePtr_->SetCacheRead(nullptr);
376  t.addContext(std::string("Reading branch ") + branch->GetName());
377  throw t;
378  }
379  }

References MicroEventContent_cff::branch, utilities::cache(), MillePedeFileConverter_cfg::e, entryNumber(), filePtr_, edm::errors::FileReadError, selectCache(), AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.

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

◆ insertEntryForIndex()

void edm::RootTree::insertEntryForIndex ( unsigned int  index)

Definition at line 105 of file RootTree.cc.

105  {
106  assert(index < entryNumberForIndex_->size());
107  (*entryNumberForIndex_)[index] = entryNumber();
108  }

References cms::cuda::assert(), entryNumber(), and findQualityFiles::size.

Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlock_(), and edm::RootFile::readRun_().

◆ isValid()

bool edm::RootTree::isValid ( void  ) const

Definition at line 110 of file RootTree.cc.

110  {
111  if (metaTree_ == nullptr || metaTree_->GetNbranches() == 0) {
112  return tree_ != nullptr && auxBranch_ != nullptr;
113  }
114  if (tree_ != nullptr && auxBranch_ != nullptr && metaTree_ != nullptr) { // backward compatibility
115  if (branchEntryInfoBranch_ != nullptr || infoTree_ != nullptr)
116  return true; // backward compatibility
117  return (entries_ == metaTree_->GetEntries() &&
118  tree_->GetNbranches() <= metaTree_->GetNbranches() + 1); // backward compatibility
119  } // backward compatibility
120  return false;
121  }

References auxBranch_, branchEntryInfoBranch_, entries_, infoTree_, metaTree_, and tree_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), addBranch(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::RootFile::readRun_(), edm::RootFile::readRunAuxiliary_(), core.AutoHandle.AutoHandle::ReallyLoad(), setPresence(), and edm::RootFile::validateFile().

◆ metaTree()

TTree const* edm::RootTree::metaTree ( ) const
inline

Definition at line 184 of file RootTree.h.

184 { return metaTree_; }

References metaTree_.

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

◆ next()

bool edm::RootTree::next ( void  )
inline

Definition at line 127 of file RootTree.h.

127 { return ++entryNumber_ < entries_; }

References entries_, and entryNumber_.

Referenced by edm::RootFile::fillIndexIntoFile(), and edm::RootFile::initializeDuplicateChecker().

◆ nextWithCache()

bool edm::RootTree::nextWithCache ( )

Definition at line 194 of file RootTree.cc.

194  {
195  bool returnValue = ++entryNumber_ < entries_;
196  if (returnValue) {
198  }
199  return returnValue;
200  }

References entries_, entryNumber_, and setEntryNumber().

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

◆ numberOfBranchesToAdd()

void edm::RootTree::numberOfBranchesToAdd ( size_t  iSize)
inline

Definition at line 121 of file RootTree.h.

121 { branches_.reserve(iSize); }

References branches_, and edm::roottree::BranchMap::reserve().

◆ operator=()

RootTree& edm::RootTree::operator= ( RootTree const &  )
delete

◆ previous()

bool edm::RootTree::previous ( )
inline

Definition at line 129 of file RootTree.h.

129 { return --entryNumber_ >= 0; }

References entryNumber_.

◆ resetAndGetRootDelayedReader()

DelayedReader * edm::RootTree::resetAndGetRootDelayedReader ( ) const

Definition at line 123 of file RootTree.cc.

123  {
124  rootDelayedReader_->reset();
125  return rootDelayedReader_.get();
126  }

References rootDelayedReader_.

Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlock_(), and edm::RootFile::readRun_().

◆ resetTraining()

void edm::RootTree::resetTraining ( )
inline

Definition at line 194 of file RootTree.h.

194 { trainNow_ = true; }

References trainNow_.

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

◆ rewind()

void edm::RootTree::rewind ( )
inline

Definition at line 132 of file RootTree.h.

132 { entryNumber_ = 0; }

References entryNumber_.

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

◆ rootDelayedReader()

DelayedReader * edm::RootTree::rootDelayedReader ( ) const

Definition at line 128 of file RootTree.cc.

128 { return rootDelayedReader_.get(); }

References rootDelayedReader_.

Referenced by edm::FullProvenanceReader::readProvenanceAsync().

◆ selectCache()

TTreeCache * edm::RootTree::selectCache ( TBranch *  branch,
EntryNumber  entryNumber 
) const
inline

Definition at line 347 of file RootTree.cc.

347  {
348  TTreeCache* triggerCache = nullptr;
349  if (!treeCache_) {
350  return nullptr;
351  } else if (treeCache_->IsLearning() && rawTreeCache_) {
352  treeCache_->AddBranch(branch, kTRUE);
353  trainedSet_.insert(branch);
354  return rawTreeCache_.get();
355  } else if ((triggerCache = checkTriggerCache(branch, entryNumber))) {
356  // A NULL return value from checkTriggerCache indicates the trigger cache case
357  // does not apply, and we should continue below.
358  return triggerCache;
359  } else {
360  // The "normal" TTreeCache case.
361  return treeCache_.get();
362  }
363  }

References MicroEventContent_cff::branch, checkTriggerCache(), entryNumber(), rawTreeCache_, trainedSet_, and treeCache_.

Referenced by getEntry().

◆ setCacheSize()

void edm::RootTree::setCacheSize ( unsigned int  cacheSize)
private

Definition at line 179 of file RootTree.cc.

179  {
180  cacheSize_ = cacheSize;
181  tree_->SetCacheSize(static_cast<Long64_t>(cacheSize));
182  treeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
183  if (treeCache_)
184  treeCache_->SetEnablePrefetching(enablePrefetching_);
185  filePtr_->SetCacheRead(nullptr);
186  rawTreeCache_.reset();
187  }

References cacheSize_, enablePrefetching_, filePtr_, rawTreeCache_, tree_, and treeCache_.

◆ setEntryNumber()

void edm::RootTree::setEntryNumber ( EntryNumber  theEntryNumber)

Definition at line 202 of file RootTree.cc.

202  {
203  filePtr_->SetCacheRead(treeCache_.get());
204 
205  // Detect a backward skip. If the skip is sufficiently large, we roll the dice and reset the treeCache.
206  // This will cause some amount of over-reading: we pre-fetch all the events in some prior cluster.
207  // However, because reading one event in the cluster is supposed to be equivalent to reading all events in the cluster,
208  // we're not incurring additional over-reading - we're just doing it more efficiently.
209  // NOTE: Constructor guarantees treeAutoFlush_ is positive, even if TTree->GetAutoFlush() is negative.
210  if (theEntryNumber < entryNumber_ and theEntryNumber >= 0) {
211  //We started reading the file near the end, now we need to correct for the learning length
212  if (switchOverEntry_ > tree_->GetEntries()) {
213  switchOverEntry_ = switchOverEntry_ - tree_->GetEntries();
214  if (rawTreeCache_) {
215  rawTreeCache_->SetEntryRange(theEntryNumber, switchOverEntry_);
216  rawTreeCache_->FillBuffer();
217  }
218  }
220  //We are using the triggerTreeCache_ not the rawTriggerTreeCache_.
221  //The triggerTreeCache was originally told to start from an entry further in the file.
222  triggerTreeCache_->SetEntryRange(theEntryNumber, tree_->GetEntries());
223  } else if (rawTriggerTreeCache_) {
224  //move the switch point to the end of the cluster holding theEntryNumber
226  TTree::TClusterIterator clusterIter = tree_->GetClusterIterator(theEntryNumber);
227  while ((rawTriggerSwitchOverEntry_ < theEntryNumber) || (rawTriggerSwitchOverEntry_ <= 0)) {
228  rawTriggerSwitchOverEntry_ = clusterIter();
229  }
230  rawTriggerTreeCache_->SetEntryRange(theEntryNumber, rawTriggerSwitchOverEntry_);
231  }
232  }
233  if ((theEntryNumber < static_cast<EntryNumber>(entryNumber_ - treeAutoFlush_)) && (treeCache_) &&
234  (!treeCache_->IsLearning()) && (entries_ > 0) && (switchOverEntry_ >= 0)) {
235  treeCache_->SetEntryRange(theEntryNumber, entries_);
236  treeCache_->FillBuffer();
237  }
238 
239  entryNumber_ = theEntryNumber;
240  tree_->LoadTree(entryNumber_);
241  filePtr_->SetCacheRead(nullptr);
242  if (treeCache_ && trainNow_ && entryNumber_ >= 0) {
243  startTraining();
244  trainNow_ = false;
245  trainedSet_.clear();
246  triggerSet_.clear();
248  }
249  if (treeCache_ && treeCache_->IsLearning() && switchOverEntry_ >= 0 && entryNumber_ >= switchOverEntry_) {
250  stopTraining();
251  }
252  }

References entries_, entryNumber_, filePtr_, performedSwitchOver_, rawTreeCache_, rawTriggerSwitchOverEntry_, rawTriggerTreeCache_, startTraining(), stopTraining(), switchOverEntry_, trainedSet_, trainNow_, tree_, treeAutoFlush_, treeCache_, triggerSet_, and triggerTreeCache_.

Referenced by edm::RootFile::fillEventAuxiliary(), edm::RootFile::fillIndexIntoFile(), edm::RootFileEventFinder::getEventNumberOfEntry(), edm::RootFile::initializeDuplicateChecker(), nextWithCache(), edm::RootFile::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::RootFile::readRunAuxiliary_(), edm::RootFile::setAtEventEntry(), edm::RootFile::setEntryAtEvent(), edm::RootFile::setEntryAtLumi(), and edm::RootFile::setEntryAtRun().

◆ setPresence()

void edm::RootTree::setPresence ( BranchDescription prod,
std::string const &  oldBranchName 
)

Definition at line 130 of file RootTree.cc.

130  {
131  assert(isValid());
132  if (tree_->GetBranch(oldBranchName.c_str()) == nullptr) {
133  prod.setDropped(true);
134  }
135  }

References cms::cuda::assert(), isValid(), dumpMFGeometry_cfg::prod, and tree_.

◆ setSignals()

void edm::RootTree::setSignals ( signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> const *  preEventReadSource,
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> const *  postEventReadSource 
)

Definition at line 489 of file RootTree.cc.

491  {
492  rootDelayedReader_->setSignals(preEventReadSource, postEventReadSource);
493  }

References rootDelayedReader_.

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

◆ setTreeMaxVirtualSize()

void edm::RootTree::setTreeMaxVirtualSize ( int  treeMaxVirtualSize)
private

Definition at line 189 of file RootTree.cc.

189  {
190  if (treeMaxVirtualSize >= 0)
191  tree_->SetMaxVirtualSize(static_cast<Long64_t>(treeMaxVirtualSize));
192  }

References tree_.

◆ skipEntries()

bool edm::RootTree::skipEntries ( unsigned int &  offset)

Definition at line 381 of file RootTree.cc.

381  {
382  entryNumber_ += offset;
383  bool retval = (entryNumber_ < entries_);
384  if (retval) {
385  offset = 0;
386  } else {
387  // Not enough entries in the file to skip.
388  // The +1 is needed because entryNumber_ is -1 at the initialization of the tree, not 0.
389  long long overshoot = entryNumber_ + 1 - entries_;
391  offset = overshoot;
392  }
393  return retval;
394  }

References entries_, entryNumber_, and hltrates_dqm_sourceclient-live_cfg::offset.

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

◆ startTraining()

void edm::RootTree::startTraining ( )
private

Definition at line 396 of file RootTree.cc.

396  {
397  if (cacheSize_ == 0) {
398  return;
399  }
403  treeCache_->SetLearnEntries(learningEntries_);
404  tree_->SetCacheSize(static_cast<Long64_t>(cacheSize_));
405  rawTreeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
406  rawTreeCache_->SetEnablePrefetching(false);
407  filePtr_->SetCacheRead(nullptr);
408  rawTreeCache_->SetLearnEntries(0);
410  auto rawStart = entryNumber_;
411  auto rawEnd = switchOverEntry_;
412  auto treeStart = switchOverEntry_;
413  if (switchOverEntry_ >= tree_->GetEntries()) {
414  treeStart = switchOverEntry_ - tree_->GetEntries();
415  rawEnd = tree_->GetEntries();
416  }
417  rawTreeCache_->StartLearningPhase();
418  rawTreeCache_->SetEntryRange(rawStart, rawEnd);
419  rawTreeCache_->AddBranch("*", kTRUE);
420  rawTreeCache_->StopLearningPhase();
421  treeCache_->StartLearningPhase();
422  treeCache_->SetEntryRange(treeStart, tree_->GetEntries());
423  // Make sure that 'branchListIndexes' branch exist in input file
424  if (filePtr_->Get(poolNames::branchListIndexesBranchName().c_str()) != nullptr) {
425  treeCache_->AddBranch(poolNames::branchListIndexesBranchName().c_str(), kTRUE);
426  }
427  treeCache_->AddBranch(BranchTypeToAuxiliaryBranchName(branchType_).c_str(), kTRUE);
428  trainedSet_.clear();
429  triggerSet_.clear();
430  assert(treeCache_->GetTree() == tree_);
431  }

References cms::cuda::assert(), edm::poolNames::branchListIndexesBranchName(), branchType_, edm::BranchTypeToAuxiliaryBranchName(), cacheSize_, entryNumber_, filePtr_, edm::InEvent, learningEntries_, rawTreeCache_, switchOverEntry_, trainedSet_, tree_, treeCache_, and triggerSet_.

Referenced by setEntryNumber().

◆ stopTraining()

void edm::RootTree::stopTraining ( )
private

Definition at line 433 of file RootTree.cc.

433  {
434  filePtr_->SetCacheRead(treeCache_.get());
435  treeCache_->StopLearningPhase();
436  filePtr_->SetCacheRead(nullptr);
437  rawTreeCache_.reset();
438  }

References filePtr_, rawTreeCache_, and treeCache_.

Referenced by setEntryNumber().

◆ trainCache()

void edm::RootTree::trainCache ( char const *  branchNames)

Definition at line 461 of file RootTree.cc.

461  {
462  if (cacheSize_ == 0) {
463  return;
464  }
465  tree_->LoadTree(0);
467  filePtr_->SetCacheRead(treeCache_.get());
468  treeCache_->StartLearningPhase();
469  treeCache_->SetEntryRange(0, tree_->GetEntries());
470  treeCache_->AddBranch(branchNames, kTRUE);
471  treeCache_->StopLearningPhase();
472  assert(treeCache_->GetTree() == tree_);
473  // We own the treeCache_.
474  // We make sure the treeCache_ is detached from the file,
475  // so that ROOT does not also delete it.
476  filePtr_->SetCacheRead(nullptr);
477 
478  // Must also manually add things to the trained set.
479  TObjArray* branches = tree_->GetListOfBranches();
480  int branchCount = branches->GetEntriesFast();
481  for (int i = 0; i < branchCount; i++) {
482  TBranch* branch = (TBranch*)branches->UncheckedAt(i);
483  if ((branchNames[0] == '*') || (strcmp(branchNames, branch->GetName()) == 0)) {
484  trainedSet_.insert(branch);
485  }
486  }
487  }

References cms::cuda::assert(), MicroEventContent_cff::branch, branches(), branchNames(), cacheSize_, filePtr_, mps_fire::i, trainedSet_, tree_, and treeCache_.

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

◆ tree() [1/2]

TTree* edm::RootTree::tree ( )
inline

◆ tree() [2/2]

TTree const* edm::RootTree::tree ( ) const
inline

Member Data Documentation

◆ auxBranch_

TBranch* edm::RootTree::auxBranch_
private

Definition at line 215 of file RootTree.h.

Referenced by close(), fillAux(), and isValid().

◆ branchEntryInfoBranch_

TBranch* edm::RootTree::branchEntryInfoBranch_
private

Definition at line 244 of file RootTree.h.

Referenced by branchEntryInfoBranch(), close(), and isValid().

◆ branches_

BranchMap edm::RootTree::branches_
private

Definition at line 230 of file RootTree.h.

Referenced by addBranch(), branches(), and numberOfBranchesToAdd().

◆ branchNames_

std::vector<std::string> edm::RootTree::branchNames_
private

Definition at line 229 of file RootTree.h.

Referenced by addBranch(), and branchNames().

◆ branchType_

BranchType edm::RootTree::branchType_
private

Definition at line 214 of file RootTree.h.

Referenced by branchType(), and startTraining().

◆ cacheSize_

unsigned int edm::RootTree::cacheSize_
private

Definition at line 236 of file RootTree.h.

Referenced by setCacheSize(), startTraining(), and trainCache().

◆ enablePrefetching_

bool edm::RootTree::enablePrefetching_
private

Definition at line 240 of file RootTree.h.

Referenced by setCacheSize().

◆ enableTriggerCache_

bool edm::RootTree::enableTriggerCache_
private

Definition at line 241 of file RootTree.h.

Referenced by checkTriggerCache().

◆ entries_

EntryNumber edm::RootTree::entries_
private

Definition at line 226 of file RootTree.h.

Referenced by entries(), isValid(), next(), nextWithCache(), setEntryNumber(), and skipEntries().

◆ entryNumber_

EntryNumber edm::RootTree::entryNumber_
private

◆ entryNumberForIndex_

std::unique_ptr<std::vector<EntryNumber> > edm::RootTree::entryNumberForIndex_
private

Definition at line 228 of file RootTree.h.

Referenced by entryNumberForIndex().

◆ filePtr_

std::shared_ptr<InputFile> edm::RootTree::filePtr_
private

◆ infoTree_

TTree* edm::RootTree::infoTree_
private

Definition at line 246 of file RootTree.h.

Referenced by close(), and isValid().

◆ learningEntries_

unsigned int edm::RootTree::learningEntries_
private

Definition at line 235 of file RootTree.h.

Referenced by startTraining().

◆ metaTree_

TTree* edm::RootTree::metaTree_
private

Definition at line 213 of file RootTree.h.

Referenced by addBranch(), close(), fillBranchEntryMeta(), isValid(), and metaTree().

◆ performedSwitchOver_

bool edm::RootTree::performedSwitchOver_
mutableprivate

Definition at line 234 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), and setEntryNumber().

◆ rawTreeCache_

std::shared_ptr<TTreeCache> edm::RootTree::rawTreeCache_
private

◆ rawTriggerSwitchOverEntry_

EntryNumber edm::RootTree::rawTriggerSwitchOverEntry_
mutableprivate

Definition at line 233 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), and setEntryNumber().

◆ rawTriggerTreeCache_

std::shared_ptr<TTreeCache> edm::RootTree::rawTriggerTreeCache_
mutableprivate

Definition at line 223 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), close(), and setEntryNumber().

◆ rootDelayedReader_

std::unique_ptr<RootDelayedReader> edm::RootTree::rootDelayedReader_
private

Definition at line 242 of file RootTree.h.

Referenced by resetAndGetRootDelayedReader(), rootDelayedReader(), and setSignals().

◆ statusBranch_

TBranch* edm::RootTree::statusBranch_
private

Definition at line 247 of file RootTree.h.

◆ switchOverEntry_

EntryNumber edm::RootTree::switchOverEntry_
private

Definition at line 232 of file RootTree.h.

Referenced by setEntryNumber(), and startTraining().

◆ trainedSet_

std::unordered_set<TBranch*> edm::RootTree::trainedSet_
mutableprivate

◆ trainNow_

bool edm::RootTree::trainNow_
private

Definition at line 231 of file RootTree.h.

Referenced by resetTraining(), and setEntryNumber().

◆ tree_

TTree* edm::RootTree::tree_
private

◆ treeAutoFlush_

unsigned long edm::RootTree::treeAutoFlush_
private

Definition at line 237 of file RootTree.h.

Referenced by setEntryNumber().

◆ treeCache_

std::shared_ptr<TTreeCache> edm::RootTree::treeCache_
private

◆ triggerSet_

std::unordered_set<TBranch*> edm::RootTree::triggerSet_
mutableprivate

Definition at line 225 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), setEntryNumber(), and startTraining().

◆ triggerTreeCache_

std::shared_ptr<TTreeCache> edm::RootTree::triggerTreeCache_
mutableprivate

Definition at line 222 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), close(), and setEntryNumber().

edm::RootTree::triggerTreeCache_
std::shared_ptr< TTreeCache > triggerTreeCache_
Definition: RootTree.h:222
edm::RootTree::treeAutoFlush_
unsigned long treeAutoFlush_
Definition: RootTree.h:237
edm::roottree::BranchMap::reserve
void reserve(size_t iSize)
Definition: RootTree.h:74
mps_fire.i
i
Definition: mps_fire.py:428
edm::RootTree::setEntryNumber
void setEntryNumber(EntryNumber theEntryNumber)
Definition: RootTree.cc:202
edm::RootTree::cacheSize_
unsigned int cacheSize_
Definition: RootTree.h:236
edm::RootTree::startTraining
void startTraining()
Definition: RootTree.cc:396
edm::RootTree::tree_
TTree * tree_
Definition: RootTree.h:212
edm::RootTree::branches
BranchMap const & branches() const
Definition: RootTree.cc:177
MicroEventContent_cff.branch
branch
Definition: MicroEventContent_cff.py:178
edm::RootTree::auxBranch_
TBranch * auxBranch_
Definition: RootTree.h:215
edm::RootTree::trainedSet_
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:224
edm::RootTree::rawTriggerTreeCache_
std::shared_ptr< TTreeCache > rawTriggerTreeCache_
Definition: RootTree.h:223
edm::IndexIntoFile::invalidEntry
static constexpr EntryNumber_t invalidEntry
Definition: IndexIntoFile.h:236
edm::RootTree::rawTreeCache_
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:220
edm::RootTree::checkTriggerCacheImpl
TTreeCache * checkTriggerCacheImpl(TBranch *branch, EntryNumber entryNumber) const
Definition: RootTree.cc:266
cms::cuda::assert
assert(be >=bs)
edm::RootTree::entries_
EntryNumber entries_
Definition: RootTree.h:226
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::BranchTypeToProductTreeName
std::string const & BranchTypeToProductTreeName(BranchType const &branchType)
Definition: BranchType.cc:93
edm::RootTree::setCacheSize
void setCacheSize(unsigned int cacheSize)
Definition: RootTree.cc:179
edm::poolNames::branchListIndexesBranchName
std::string const & branchListIndexesBranchName()
Definition: BranchType.cc:202
edm::RootTree::branches_
BranchMap branches_
Definition: RootTree.h:230
edm::BranchTypeToAuxiliaryBranchName
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:109
edm::RootTree::branchEntryInfoBranch_
TBranch * branchEntryInfoBranch_
Definition: RootTree.h:244
edm::RootTree::entryNumberForIndex_
std::unique_ptr< std::vector< EntryNumber > > entryNumberForIndex_
Definition: RootTree.h:228
edm::BranchTypeToInfoTreeName
std::string const & BranchTypeToInfoTreeName(BranchType const &branchType)
Definition: BranchType.cc:104
edm::RootTree::enablePrefetching_
bool enablePrefetching_
Definition: RootTree.h:240
edm::RootTree::switchOverEntry_
EntryNumber switchOverEntry_
Definition: RootTree.h:232
edm::RootTree::selectCache
TTreeCache * selectCache(TBranch *branch, EntryNumber entryNumber) const
Definition: RootTree.cc:347
edm::RootTree::filePtr_
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:208
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::RootTree::branchNames_
std::vector< std::string > branchNames_
Definition: RootTree.h:229
edm::InEvent
Definition: BranchType.h:11
edm::RootTree::triggerSet_
std::unordered_set< TBranch * > triggerSet_
Definition: RootTree.h:225
edm::RootTree::infoTree_
TTree * infoTree_
Definition: RootTree.h:246
utilities.cache
def cache(function)
Definition: utilities.py:3
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::RootTree::getEntry
void getEntry(TBranch *branch, EntryNumber entry) const
Definition: RootTree.cc:365
edm::RootTree::branchType_
BranchType branchType_
Definition: RootTree.h:214
edm::RootTree::enableTriggerCache_
bool enableTriggerCache_
Definition: RootTree.h:241
edm::RootTree::entryNumber_
EntryNumber entryNumber_
Definition: RootTree.h:227
Exception
edm::BranchTypeToMetaDataTreeName
std::string const & BranchTypeToMetaDataTreeName(BranchType const &branchType)
Definition: BranchType.cc:98
beamvalidation.br
br
Definition: beamvalidation.py:398
edm::RootTree::checkTriggerCache
TTreeCache * checkTriggerCache(TBranch *branch, EntryNumber entryNumber) const
Definition: RootTree.cc:256
edm::RootTree::trainNow_
bool trainNow_
Definition: RootTree.h:231
edm::RootTree::branchNames
std::vector< std::string > const & branchNames() const
Definition: RootTree.h:140
edm::RootTree::isValid
bool isValid() const
Definition: RootTree.cc:110
edm::RootTree::learningEntries_
unsigned int learningEntries_
Definition: RootTree.h:235
edm::RootTree::stopTraining
void stopTraining()
Definition: RootTree.cc:433
edm::RootTree::setTreeMaxVirtualSize
void setTreeMaxVirtualSize(int treeMaxVirtualSize)
Definition: RootTree.cc:189
edm::RootTree::entryNumber
EntryNumber const & entryNumber() const
Definition: RootTree.h:135
edm::RootTree::entries
EntryNumber const & entries() const
Definition: RootTree.h:137
Exception
Definition: hltDiff.cc:246
edm::RootTree::rawTriggerSwitchOverEntry_
EntryNumber rawTriggerSwitchOverEntry_
Definition: RootTree.h:233
edm::roottree::BranchMap::insert
void insert(edm::BranchID const &iKey, BranchInfo const &iInfo)
Definition: RootTree.h:75
edm::RootTree::performedSwitchOver_
bool performedSwitchOver_
Definition: RootTree.h:234
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::RootTree::branchType
BranchType branchType() const
Definition: RootTree.h:196
cms::Exception
Definition: Exception.h:70
edm::roottree::getEntry
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: RootTree.cc:496
edm::RootTree::treeCache_
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:219
edm::RootTree::metaTree_
TTree * metaTree_
Definition: RootTree.h:213
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
edm::errors::FileReadError
Definition: EDMException.h:50
edm::RootTree::rootDelayedReader_
std::unique_ptr< RootDelayedReader > rootDelayedReader_
Definition: RootTree.h:242
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37