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 (BranchKey const &key, 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, T *&pbuf)
 
template<typename T >
void fillBranchEntry (TBranch *branch, EntryNumber entryNumber, T *&pbuf)
 
template<typename T >
void fillBranchEntryMeta (TBranch *branch, T *&pbuf)
 
template<typename T >
void fillBranchEntryMeta (TBranch *branch, EntryNumber entryNumber, T *&pbuf)
 
void getEntry (TBranch *branch, EntryNumber entry) const
 
void insertEntryForIndex (unsigned int index)
 
bool isValid () const
 
TTree const * metaTree () const
 
bool next ()
 
RootTreeoperator= (RootTree const &)=delete
 
bool previous ()
 
DelayedReaderresetAndGetRootDelayedReader () const
 
void resetTraining ()
 
void rewind ()
 
DelayedReaderrootDelayedReader () const
 
 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)
 
 RootTree (RootTree const &)=delete
 
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 const * tree () const
 
TTree * tree ()
 
 ~RootTree ()
 

Private Member Functions

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

Private Attributes

TBranch * auxBranch_
 
TBranch * branchEntryInfoBranch_
 
std::shared_ptr< BranchMapbranches_
 
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 69 of file RootTree.h.

Member Typedef Documentation

Definition at line 71 of file RootTree.h.

Definition at line 72 of file RootTree.h.

Constructor & Destructor Documentation

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 28 of file RootTree.cc.

References edm::BranchTypeToProductTreeName(), cacheSize_, Exception, learningEntries_, setCacheSize(), setTreeMaxVirtualSize(), trainedSet_, tree_, treeAutoFlush_, and triggerSet_.

35  :
36  filePtr_(filePtr),
37  tree_(dynamic_cast<TTree*>(filePtr_.get() != nullptr ? filePtr_->Get(BranchTypeToProductTreeName(branchType).c_str()) : nullptr)),
38  metaTree_(dynamic_cast<TTree*>(filePtr_.get() != nullptr ? filePtr_->Get(BranchTypeToMetaDataTreeName(branchType).c_str()) : nullptr)),
40  auxBranch_(tree_ ? getAuxiliaryBranch(tree_, branchType_) : nullptr),
41  treeCache_(),
42  rawTreeCache_(),
45  trainedSet_(),
46  triggerSet_(),
47  entries_(tree_ ? tree_->GetEntries() : 0),
48  entryNumber_(-1),
49  entryNumberForIndex_(new std::vector<EntryNumber>(nIndexes, IndexIntoFile::invalidEntry)),
50  branchNames_(),
51  branches_(new BranchMap),
52  trainNow_(false),
53  switchOverEntry_(-1),
55  learningEntries_(learningEntries),
56  cacheSize_(cacheSize),
57  treeAutoFlush_(0),
58  enablePrefetching_(enablePrefetching),
60  rootDelayedReader_(new RootDelayedReader(*this, filePtr, inputType)),
61  branchEntryInfoBranch_(metaTree_ ? getProductProvenanceBranch(metaTree_, branchType_) : (tree_ ? getProductProvenanceBranch(tree_, branchType_) : nullptr)),
62  infoTree_(dynamic_cast<TTree*>(filePtr_.get() != nullptr ? filePtr->Get(BranchTypeToInfoTreeName(branchType).c_str()) : nullptr)) // backward compatibility
63  {
64  if(not tree_) {
65  throw cms::Exception("WrongFileFormat")<< "The ROOT file does not contain a TTree named "<<BranchTypeToProductTreeName(branchType)<<"\n This is either not an edm ROOT file or is one that has been corrupted.";
66  }
67  // On merged files in older releases of ROOT, the autoFlush setting is always negative; we must guess.
68  // TODO: On newer merged files, we should be able to get this from the cluster iterator.
69  long treeAutoFlush = (tree_ ? tree_->GetAutoFlush() : 0);
70  if (treeAutoFlush < 0) {
71  // The "+1" is here to avoid divide-by-zero in degenerate cases.
72  Long64_t averageEventSizeBytes = tree_->GetZipBytes() / (tree_->GetEntries()+1) + 1;
73  treeAutoFlush_ = cacheSize_/averageEventSizeBytes+1;
74  } else {
75  treeAutoFlush_ = treeAutoFlush;
76  }
79  }
80  setTreeMaxVirtualSize(maxVirtualSize);
81  setCacheSize(cacheSize);
82  if (tree_) {
83  Int_t branchCount = tree_->GetListOfBranches()->GetEntriesFast();
84  trainedSet_.reserve(branchCount);
85  triggerSet_.reserve(branchCount);
86  }
87  }
EntryNumber entryNumber_
Definition: RootTree.h:192
std::string const & BranchTypeToMetaDataTreeName(BranchType const &branchType)
Definition: BranchType.cc:107
unsigned int learningEntries_
Definition: RootTree.h:200
std::shared_ptr< TTreeCache > rawTriggerTreeCache_
Definition: RootTree.h:188
std::vector< std::string > branchNames_
Definition: RootTree.h:194
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
TTree * tree_
Definition: RootTree.h:178
bool trainNow_
Definition: RootTree.h:196
std::shared_ptr< BranchMap > branches_
Definition: RootTree.h:195
EntryNumber rawTriggerSwitchOverEntry_
Definition: RootTree.h:198
roottree::BranchMap BranchMap
Definition: RootTree.h:71
TTree * metaTree_
Definition: RootTree.h:179
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
TBranch * branchEntryInfoBranch_
Definition: RootTree.h:209
EntryNumber entries_
Definition: RootTree.h:191
bool enablePrefetching_
Definition: RootTree.h:205
std::unique_ptr< RootDelayedReader > rootDelayedReader_
Definition: RootTree.h:207
void setTreeMaxVirtualSize(int treeMaxVirtualSize)
Definition: RootTree.cc:191
BranchType branchType() const
Definition: RootTree.h:163
unsigned long treeAutoFlush_
Definition: RootTree.h:202
std::string const & BranchTypeToProductTreeName(BranchType const &branchType)
Definition: BranchType.cc:103
TBranch * auxBranch_
Definition: RootTree.h:181
std::string const & BranchTypeToInfoTreeName(BranchType const &branchType)
Definition: BranchType.cc:111
bool enableTriggerCache_
Definition: RootTree.h:206
static EntryNumber_t const invalidEntry
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:186
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
void setCacheSize(unsigned int cacheSize)
Definition: RootTree.cc:181
std::unique_ptr< std::vector< EntryNumber > > entryNumberForIndex_
Definition: RootTree.h:193
unsigned int cacheSize_
Definition: RootTree.h:201
std::unordered_set< TBranch * > triggerSet_
Definition: RootTree.h:190
EntryNumber switchOverEntry_
Definition: RootTree.h:197
std::shared_ptr< TTreeCache > triggerTreeCache_
Definition: RootTree.h:187
BranchType branchType_
Definition: RootTree.h:180
TTree * infoTree_
Definition: RootTree.h:211
edm::RootTree::~RootTree ( )

Definition at line 89 of file RootTree.cc.

89  {
90  }
edm::RootTree::RootTree ( RootTree const &  )
delete

Member Function Documentation

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

Definition at line 136 of file RootTree.cc.

References MicroEventContent_cff::branch, branches_, edm::BranchDescription::branchName(), branchNames_, info(), isValid(), metaTree_, edm::BranchDescription::present(), edm::roottree::BranchInfo::productBranch_, edm::roottree::BranchInfo::provenanceBranch_, and tree_.

138  {
139  assert(isValid());
140  //use the translated branch name
141  TBranch* branch = tree_->GetBranch(oldBranchName.c_str());
142  roottree::BranchInfo info = roottree::BranchInfo(BranchDescription(prod));
143  info.productBranch_ = nullptr;
144  if (prod.present()) {
145  info.productBranch_ = branch;
146  //we want the new branch name for the JobReport
147  branchNames_.push_back(prod.branchName());
148  }
149  TTree* provTree = (metaTree_ != nullptr ? metaTree_ : tree_);
150  info.provenanceBranch_ = provTree->GetBranch(oldBranchName.c_str());
151  branches_->insert(std::make_pair(key, info));
152  }
static const TGPicture * info(bool iBackgroundIsBlack)
std::vector< std::string > branchNames_
Definition: RootTree.h:194
TTree * tree_
Definition: RootTree.h:178
std::shared_ptr< BranchMap > branches_
Definition: RootTree.h:195
TTree * metaTree_
Definition: RootTree.h:179
bool isValid() const
Definition: RootTree.cc:105
TBranch* edm::RootTree::branchEntryInfoBranch ( ) const
inline

Definition at line 155 of file RootTree.h.

References MicroEventContent_cff::branch, and edm::roottree::trainCache().

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

155 {return branchEntryInfoBranch_;}
TBranch * branchEntryInfoBranch_
Definition: RootTree.h:209
roottree::BranchMap const & edm::RootTree::branches ( ) const

Definition at line 178 of file RootTree.cc.

References branches_.

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

178 {return *branches_;}
std::shared_ptr< BranchMap > branches_
Definition: RootTree.h:195
std::vector<std::string> const& edm::RootTree::branchNames ( ) const
inline

Definition at line 107 of file RootTree.h.

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

107 {return branchNames_;}
std::vector< std::string > branchNames_
Definition: RootTree.h:194
BranchType edm::RootTree::branchType ( ) const
inline

Definition at line 163 of file RootTree.h.

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

163 {return branchType_;}
BranchType branchType_
Definition: RootTree.h:180
TTreeCache * edm::RootTree::checkTriggerCache ( TBranch *  branch,
EntryNumber  entryNumber 
) const
inline

Definition at line 228 of file RootTree.cc.

References checkTriggerCacheImpl(), enableTriggerCache_, trainedSet_, and treeCache_.

Referenced by selectCache().

228  {
229  if (!treeCache_->IsAsyncReading() && enableTriggerCache_ && (trainedSet_.find(branch) == trainedSet_.end())) {
231  } else {
232  return nullptr;
233  }
234  }
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
TTreeCache * checkTriggerCacheImpl(TBranch *branch, EntryNumber entryNumber) const
Definition: RootTree.cc:239
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
bool enableTriggerCache_
Definition: RootTree.h:206
TTreeCache * edm::RootTree::checkTriggerCacheImpl ( TBranch *  branch,
EntryNumber  entryNumber 
) const

Definition at line 239 of file RootTree.cc.

References branches(), entryNumber_, filePtr_, mps_fire::i, performedSwitchOver_, rawTriggerSwitchOverEntry_, rawTriggerTreeCache_, trainedSet_, tree_, triggerSet_, and triggerTreeCache_.

Referenced by checkTriggerCache().

239  {
240  // This branch is not going to be in the cache.
241  // Assume this is a "trigger pattern".
242  // Always make sure the branch is added to the trigger set.
243  if (triggerSet_.find(branch) == triggerSet_.end()) {
244  triggerSet_.insert(branch);
245  if (triggerTreeCache_.get()) { triggerTreeCache_->AddBranch(branch, kTRUE); }
246  }
247 
248  if (rawTriggerSwitchOverEntry_ < 0) {
249  // The trigger has never fired before. Take everything not in the
250  // trainedSet and load it from disk
251 
252  // Calculate the end of the next cluster; triggers in the next cluster
253  // will use the triggerCache, not the rawTriggerCache.
254  //
255  // Guarantee that rawTriggerSwitchOverEntry_ is positive (non-zero) after completion
256  // of this if-block.
257  TTree::TClusterIterator clusterIter = tree_->GetClusterIterator(entryNumber);
259  rawTriggerSwitchOverEntry_ = clusterIter();
260  }
261 
262  // ROOT will automatically expand the cache to fit one cluster; hence, we use
263  // 5 MB as the cache size below
264  tree_->SetCacheSize(static_cast<Long64_t>(5*1024*1024));
265  rawTriggerTreeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
266  if(rawTriggerTreeCache_) rawTriggerTreeCache_->SetEnablePrefetching(false);
267  TObjArray *branches = tree_->GetListOfBranches();
268  int branchCount = branches->GetEntriesFast();
269 
270  // Train the rawTriggerCache to have everything not in the regular cache.
271  rawTriggerTreeCache_->SetLearnEntries(0);
273  for (int i=0;i<branchCount;i++) {
274  TBranch *tmp_branch = (TBranch*)branches->UncheckedAt(i);
275  if (trainedSet_.find(tmp_branch) != trainedSet_.end()) {
276  continue;
277  }
278  rawTriggerTreeCache_->AddBranch(tmp_branch, kTRUE);
279  }
280  performedSwitchOver_ = false;
281  rawTriggerTreeCache_->StopLearningPhase();
282  filePtr_->SetCacheRead(nullptr);
283 
284  return rawTriggerTreeCache_.get();
286  // The raw trigger has fired and it contents are valid.
287  return rawTriggerTreeCache_.get();
288  } else if (rawTriggerSwitchOverEntry_ > 0) {
289  // The raw trigger has fired, but we are out of the cache. Use the
290  // triggerCache instead.
291  if (!performedSwitchOver_) {
292  rawTriggerTreeCache_.reset();
293  performedSwitchOver_ = true;
294 
295  // Train the triggerCache
296  tree_->SetCacheSize(static_cast<Long64_t>(5*1024*1024));
297  triggerTreeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
298  triggerTreeCache_->SetEnablePrefetching(false);
299  triggerTreeCache_->SetLearnEntries(0);
300  triggerTreeCache_->SetEntryRange(entryNumber, tree_->GetEntries());
301  for(std::unordered_set<TBranch*>::const_iterator it = triggerSet_.begin(), itEnd = triggerSet_.end();
302  it != itEnd;
303  it++)
304  {
305  triggerTreeCache_->AddBranch(*it, kTRUE);
306  }
307  triggerTreeCache_->StopLearningPhase();
308  filePtr_->SetCacheRead(nullptr);
309  }
310  return triggerTreeCache_.get();
311  }
312 
313  // By construction, this case should be impossible.
314  assert (false);
315  return nullptr;
316  }
EntryNumber entryNumber_
Definition: RootTree.h:192
std::shared_ptr< TTreeCache > rawTriggerTreeCache_
Definition: RootTree.h:188
TTree * tree_
Definition: RootTree.h:178
EntryNumber rawTriggerSwitchOverEntry_
Definition: RootTree.h:198
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
bool performedSwitchOver_
Definition: RootTree.h:199
std::unordered_set< TBranch * > triggerSet_
Definition: RootTree.h:190
BranchMap const & branches() const
Definition: RootTree.cc:178
std::shared_ptr< TTreeCache > triggerTreeCache_
Definition: RootTree.h:187
void edm::RootTree::close ( void  )

Definition at line 410 of file RootTree.cc.

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

Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().

410  {
411  // The TFile is about to be closed, and destructed.
412  // Just to play it safe, zero all pointers to quantities that are owned by the TFile.
414  tree_ = metaTree_ = infoTree_ = nullptr;
415  // We own the treeCache_.
416  // We make sure the treeCache_ is detached from the file,
417  // so that ROOT does not also delete it.
418  filePtr_->SetCacheRead(nullptr);
419  // We *must* delete the TTreeCache here because the TFilePrefetch object
420  // references the TFile. If TFile is closed, before the TTreeCache is
421  // deleted, the TFilePrefetch may continue to do TFile operations, causing
422  // deadlocks or exceptions.
423  treeCache_.reset();
424  rawTreeCache_.reset();
425  triggerTreeCache_.reset();
426  rawTriggerTreeCache_.reset();
427  // We give up our shared ownership of the TFile itself.
428  filePtr_.reset();
429  }
std::shared_ptr< TTreeCache > rawTriggerTreeCache_
Definition: RootTree.h:188
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
TTree * tree_
Definition: RootTree.h:178
TTree * metaTree_
Definition: RootTree.h:179
TBranch * branchEntryInfoBranch_
Definition: RootTree.h:209
TBranch * auxBranch_
Definition: RootTree.h:181
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:186
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
std::shared_ptr< TTreeCache > triggerTreeCache_
Definition: RootTree.h:187
TTree * infoTree_
Definition: RootTree.h:211
bool edm::RootTree::current ( ) const
inline

Definition at line 97 of file RootTree.h.

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

97 {return entryNumber_ < entries_ && entryNumber_ >= 0;}
bool edm::RootTree::current ( EntryNumber  entry) const
inline

Definition at line 98 of file RootTree.h.

98 {return entry < entries_ && entry >= 0;}
void edm::RootTree::dropBranch ( std::string const &  oldBranchName)

Definition at line 155 of file RootTree.cc.

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

155  {
156  //use the translated branch name
157  TBranch* branch = tree_->GetBranch(oldBranchName.c_str());
158  if (branch != nullptr) {
159  TObjArray* leaves = tree_->GetListOfLeaves();
160  int entries = leaves->GetEntries();
161  for (int i = 0; i < entries; ++i) {
162  TLeaf* leaf = (TLeaf*)(*leaves)[i];
163  if (leaf == nullptr) continue;
164  TBranch* br = leaf->GetBranch();
165  if (br == nullptr) 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  }
TTree * tree_
Definition: RootTree.h:178
EntryNumber const & entries() const
Definition: RootTree.h:104
EntryNumber const& edm::RootTree::entries ( ) const
inline
EntryNumber const& edm::RootTree::entryNumber ( ) const
inline
RootTree::EntryNumber const & edm::RootTree::entryNumberForIndex ( unsigned int  index) const

Definition at line 93 of file RootTree.cc.

References entryNumberForIndex_, diffTreeTool::index, and findQualityFiles::size.

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

93  {
94  assert(index < entryNumberForIndex_->size());
95  return (*entryNumberForIndex_)[index];
96  }
size
Write out results.
std::unique_ptr< std::vector< EntryNumber > > entryNumberForIndex_
Definition: RootTree.h:193
template<typename T >
void edm::RootTree::fillAux ( T *&  pAux)
inline

Definition at line 111 of file RootTree.h.

References edm::roottree::getEntry().

Referenced by edm::RootFile::fillLumiAuxiliary(), edm::RootFile::fillRunAuxiliary(), and edm::RootFile::fillThisEventAuxiliary().

111  {
112  auxBranch_->SetAddress(&pAux);
114  }
EntryNumber entryNumber_
Definition: RootTree.h:192
TBranch * auxBranch_
Definition: RootTree.h:181
void getEntry(TBranch *branch, EntryNumber entry) const
Definition: RootTree.cc:338
template<typename T >
void edm::RootTree::fillBranchEntry ( TBranch *  branch,
T *&  pbuf 
)
inline

Definition at line 127 of file RootTree.h.

References edm::roottree::getEntry().

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

127  {
128  branch->SetAddress(&pbuf);
130  }
EntryNumber entryNumber_
Definition: RootTree.h:192
void getEntry(TBranch *branch, EntryNumber entry) const
Definition: RootTree.cc:338
template<typename T >
void edm::RootTree::fillBranchEntry ( TBranch *  branch,
EntryNumber  entryNumber,
T *&  pbuf 
)
inline

Definition at line 144 of file RootTree.h.

References edm::roottree::getEntry().

144  {
145  branch->SetAddress(&pbuf);
147  }
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
void getEntry(TBranch *branch, EntryNumber entry) const
Definition: RootTree.cc:338
template<typename T >
void edm::RootTree::fillBranchEntryMeta ( TBranch *  branch,
T *&  pbuf 
)
inline

Definition at line 116 of file RootTree.h.

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

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

116  {
117  if (metaTree_ != nullptr) {
118  // Metadata was in separate tree. Not cached.
119  branch->SetAddress(&pbuf);
121  } else {
122  fillBranchEntry<T>(branch, pbuf);
123  }
124  }
EntryNumber entryNumber_
Definition: RootTree.h:192
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: RootTree.cc:471
TTree * metaTree_
Definition: RootTree.h:179
template<typename T >
void edm::RootTree::fillBranchEntryMeta ( TBranch *  branch,
EntryNumber  entryNumber,
T *&  pbuf 
)
inline

Definition at line 133 of file RootTree.h.

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

133  {
134  if (metaTree_ != nullptr) {
135  // Metadata was in separate tree. Not cached.
136  branch->SetAddress(&pbuf);
138  } else {
139  fillBranchEntry<T>(branch, entryNumber, pbuf);
140  }
141  }
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: RootTree.cc:471
TTree * metaTree_
Definition: RootTree.h:179
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
void edm::RootTree::getEntry ( TBranch *  branch,
EntryNumber  entry 
) const

Definition at line 338 of file RootTree.cc.

References cms::Exception::addContext(), helperFunctions::cache(), MillePedeFileConverter_cfg::e, filePtr_, edm::errors::FileReadError, selectCache(), AlCaHLTBitMon_QueryRunRegistry::string, and lumiQTWidget::t.

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

338  {
339  try {
340  TTreeCache * cache = selectCache(branch, entryNumber);
341  filePtr_->SetCacheRead(cache);
342  branch->GetEntry(entryNumber);
343  filePtr_->SetCacheRead(nullptr);
344  } catch(cms::Exception const& e) {
345  // We make sure the treeCache_ is detached from the file,
346  // so that ROOT does not also delete it.
347  filePtr_->SetCacheRead(nullptr);
349  t.addContext(std::string("Reading branch ")+branch->GetName());
350  throw t;
351  }
352  }
TTreeCache * selectCache(TBranch *branch, EntryNumber entryNumber) const
Definition: RootTree.cc:319
def cache(function)
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
void edm::RootTree::insertEntryForIndex ( unsigned int  index)

Definition at line 99 of file RootTree.cc.

References entryNumber(), diffTreeTool::index, and findQualityFiles::size.

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

99  {
100  assert(index < entryNumberForIndex_->size());
101  (*entryNumberForIndex_)[index] = entryNumber();
102  }
size
Write out results.
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
bool edm::RootTree::isValid ( void  ) const

Definition at line 105 of file RootTree.cc.

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().

105  {
106  if (metaTree_ == nullptr || metaTree_->GetNbranches() == 0) {
107  return tree_ != nullptr && auxBranch_ != nullptr;
108  }
109  if (tree_ != nullptr && auxBranch_ != nullptr && metaTree_ != nullptr) { // backward compatibility
110  if (branchEntryInfoBranch_ != nullptr || infoTree_ != nullptr) return true; // backward compatibility
111  return (entries_ == metaTree_->GetEntries() && tree_->GetNbranches() <= metaTree_->GetNbranches() + 1); // backward compatibility
112  } // backward compatibility
113  return false;
114  }
TTree * tree_
Definition: RootTree.h:178
TTree * metaTree_
Definition: RootTree.h:179
TBranch * branchEntryInfoBranch_
Definition: RootTree.h:209
EntryNumber entries_
Definition: RootTree.h:191
TBranch * auxBranch_
Definition: RootTree.h:181
TTree * infoTree_
Definition: RootTree.h:211
TTree const* edm::RootTree::metaTree ( ) const
inline

Definition at line 151 of file RootTree.h.

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

151 {return metaTree_;}
TTree * metaTree_
Definition: RootTree.h:179
bool edm::RootTree::next ( void  )
inline

Definition at line 95 of file RootTree.h.

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

95 {return ++entryNumber_ < entries_;}
EntryNumber entryNumber_
Definition: RootTree.h:192
EntryNumber entries_
Definition: RootTree.h:191
RootTree& edm::RootTree::operator= ( RootTree const &  )
delete
bool edm::RootTree::previous ( )
inline

Definition at line 96 of file RootTree.h.

96 {return --entryNumber_ >= 0;}
EntryNumber entryNumber_
Definition: RootTree.h:192
DelayedReader * edm::RootTree::resetAndGetRootDelayedReader ( ) const

Definition at line 117 of file RootTree.cc.

References rootDelayedReader_.

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

117  {
118  rootDelayedReader_->reset();
119  return rootDelayedReader_.get();
120  }
std::unique_ptr< RootDelayedReader > rootDelayedReader_
Definition: RootTree.h:207
void edm::RootTree::resetTraining ( )
inline

Definition at line 161 of file RootTree.h.

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

161 {trainNow_ = true;}
bool trainNow_
Definition: RootTree.h:196
void edm::RootTree::rewind ( )
inline

Definition at line 99 of file RootTree.h.

References PFRecoTauDiscriminationByIsolation_cfi::offset.

99 {entryNumber_ = 0;}
EntryNumber entryNumber_
Definition: RootTree.h:192
DelayedReader * edm::RootTree::rootDelayedReader ( ) const

Definition at line 123 of file RootTree.cc.

References rootDelayedReader_.

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

123  {
124  return rootDelayedReader_.get();
125  }
std::unique_ptr< RootDelayedReader > rootDelayedReader_
Definition: RootTree.h:207
TTreeCache * edm::RootTree::selectCache ( TBranch *  branch,
EntryNumber  entryNumber 
) const
inline

Definition at line 319 of file RootTree.cc.

References checkTriggerCache(), rawTreeCache_, trainedSet_, and treeCache_.

Referenced by getEntry().

319  {
320  TTreeCache *triggerCache = nullptr;
321  if (!treeCache_) {
322  return nullptr;
323  } else if (treeCache_->IsLearning() && rawTreeCache_) {
324  treeCache_->AddBranch(branch, kTRUE);
325  trainedSet_.insert(branch);
326  return rawTreeCache_.get();
327  } else if ((triggerCache = checkTriggerCache(branch, entryNumber))) {
328  // A NULL return value from checkTriggerCache indicates the trigger cache case
329  // does not apply, and we should continue below.
330  return triggerCache;
331  } else {
332  // The "normal" TTreeCache case.
333  return treeCache_.get();
334  }
335  }
TTreeCache * checkTriggerCache(TBranch *branch, EntryNumber entryNumber) const
Definition: RootTree.cc:228
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
EntryNumber const & entryNumber() const
Definition: RootTree.h:102
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:186
void edm::RootTree::setCacheSize ( unsigned int  cacheSize)
private

Definition at line 181 of file RootTree.cc.

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

Referenced by RootTree().

181  {
182  cacheSize_ = cacheSize;
183  tree_->SetCacheSize(static_cast<Long64_t>(cacheSize));
184  treeCache_.reset(dynamic_cast<TTreeCache*>(filePtr_->GetCacheRead()));
185  if(treeCache_) treeCache_->SetEnablePrefetching(enablePrefetching_);
186  filePtr_->SetCacheRead(nullptr);
187  rawTreeCache_.reset();
188  }
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
TTree * tree_
Definition: RootTree.h:178
bool enablePrefetching_
Definition: RootTree.h:205
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:186
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
unsigned int cacheSize_
Definition: RootTree.h:201
void edm::RootTree::setEntryNumber ( EntryNumber  theEntryNumber)

Definition at line 196 of file RootTree.cc.

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

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

196  {
197  filePtr_->SetCacheRead(treeCache_.get());
198 
199  // Detect a backward skip. If the skip is sufficiently large, we roll the dice and reset the treeCache.
200  // This will cause some amount of over-reading: we pre-fetch all the events in some prior cluster.
201  // However, because reading one event in the cluster is supposed to be equivalent to reading all events in the cluster,
202  // we're not incurring additional over-reading - we're just doing it more efficiently.
203  // NOTE: Constructor guarantees treeAutoFlush_ is positive, even if TTree->GetAutoFlush() is negative.
204  if ((theEntryNumber < static_cast<EntryNumber>(entryNumber_-treeAutoFlush_)) &&
205  (treeCache_) && (!treeCache_->IsLearning()) && (entries_ > 0) && (switchOverEntry_ >= 0)) {
206  treeCache_->SetEntryRange(theEntryNumber, entries_);
207  treeCache_->FillBuffer();
208  }
209 
210  entryNumber_ = theEntryNumber;
211  tree_->LoadTree(entryNumber_);
212  filePtr_->SetCacheRead(nullptr);
213  if(treeCache_ && trainNow_ && entryNumber_ >= 0) {
214  startTraining();
215  trainNow_ = false;
216  trainedSet_.clear();
217  triggerSet_.clear();
219  }
220  if (treeCache_ && treeCache_->IsLearning() && switchOverEntry_ >= 0 && entryNumber_ >= switchOverEntry_) {
221  stopTraining();
222  }
223  }
EntryNumber entryNumber_
Definition: RootTree.h:192
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
TTree * tree_
Definition: RootTree.h:178
bool trainNow_
Definition: RootTree.h:196
EntryNumber rawTriggerSwitchOverEntry_
Definition: RootTree.h:198
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
void stopTraining()
Definition: RootTree.cc:402
EntryNumber entries_
Definition: RootTree.h:191
unsigned long treeAutoFlush_
Definition: RootTree.h:202
void startTraining()
Definition: RootTree.cc:371
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
std::unordered_set< TBranch * > triggerSet_
Definition: RootTree.h:190
EntryNumber switchOverEntry_
Definition: RootTree.h:197
void edm::RootTree::setPresence ( BranchDescription prod,
std::string const &  oldBranchName 
)

Definition at line 128 of file RootTree.cc.

References isValid(), edm::BranchDescription::setDropped(), and tree_.

128  {
129  assert(isValid());
130  if(tree_->GetBranch(oldBranchName.c_str()) == nullptr){
131  prod.setDropped(true);
132  }
133  }
TTree * tree_
Definition: RootTree.h:178
bool isValid() const
Definition: RootTree.cc:105
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 462 of file RootTree.cc.

References rootDelayedReader_.

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

463  {
464  rootDelayedReader_->setSignals(preEventReadSource,
465  postEventReadSource);
466  }
std::unique_ptr< RootDelayedReader > rootDelayedReader_
Definition: RootTree.h:207
void edm::RootTree::setTreeMaxVirtualSize ( int  treeMaxVirtualSize)
private

Definition at line 191 of file RootTree.cc.

References tree_.

Referenced by RootTree().

191  {
192  if (treeMaxVirtualSize >= 0) tree_->SetMaxVirtualSize(static_cast<Long64_t>(treeMaxVirtualSize));
193  }
TTree * tree_
Definition: RootTree.h:178
bool edm::RootTree::skipEntries ( unsigned int &  offset)

Definition at line 355 of file RootTree.cc.

References entries_, entryNumber_, and PFRecoTauDiscriminationByIsolation_cfi::offset.

355  {
356  entryNumber_ += offset;
357  bool retval = (entryNumber_ < entries_);
358  if(retval) {
359  offset = 0;
360  } else {
361  // Not enough entries in the file to skip.
362  // The +1 is needed because entryNumber_ is -1 at the initialization of the tree, not 0.
363  long long overshoot = entryNumber_ + 1 - entries_;
365  offset = overshoot;
366  }
367  return retval;
368  }
EntryNumber entryNumber_
Definition: RootTree.h:192
EntryNumber entries_
Definition: RootTree.h:191
void edm::RootTree::startTraining ( )
private

Definition at line 371 of file RootTree.cc.

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

Referenced by setEntryNumber().

371  {
372  if (cacheSize_ == 0) {
373  return;
374  }
375  assert(treeCache_);
376  assert(branchType_ == InEvent);
377  assert(!rawTreeCache_);
378  treeCache_->SetLearnEntries(learningEntries_);
379  tree_->SetCacheSize(static_cast<Long64_t>(cacheSize_));
380  rawTreeCache_.reset(dynamic_cast<TTreeCache *>(filePtr_->GetCacheRead()));
381  rawTreeCache_->SetEnablePrefetching(false);
382  filePtr_->SetCacheRead(nullptr);
383  rawTreeCache_->SetLearnEntries(0);
385  rawTreeCache_->StartLearningPhase();
387  rawTreeCache_->AddBranch("*", kTRUE);
388  rawTreeCache_->StopLearningPhase();
389  treeCache_->StartLearningPhase();
390  treeCache_->SetEntryRange(switchOverEntry_, tree_->GetEntries());
391  // Make sure that 'branchListIndexes' branch exist in input file
392  if (filePtr_->Get(poolNames::branchListIndexesBranchName().c_str()) != nullptr) {
393  treeCache_->AddBranch(poolNames::branchListIndexesBranchName().c_str(), kTRUE);
394  }
395  treeCache_->AddBranch(BranchTypeToAuxiliaryBranchName(branchType_).c_str(), kTRUE);
396  trainedSet_.clear();
397  triggerSet_.clear();
398  assert(treeCache_->GetTree() == tree_);
399  }
EntryNumber entryNumber_
Definition: RootTree.h:192
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:115
unsigned int learningEntries_
Definition: RootTree.h:200
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
TTree * tree_
Definition: RootTree.h:178
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:186
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
unsigned int cacheSize_
Definition: RootTree.h:201
std::unordered_set< TBranch * > triggerSet_
Definition: RootTree.h:190
std::string const & branchListIndexesBranchName()
Definition: BranchType.cc:247
EntryNumber switchOverEntry_
Definition: RootTree.h:197
BranchType branchType_
Definition: RootTree.h:180
void edm::RootTree::stopTraining ( )
private

Definition at line 402 of file RootTree.cc.

References filePtr_, rawTreeCache_, and treeCache_.

Referenced by setEntryNumber().

402  {
403  filePtr_->SetCacheRead(treeCache_.get());
404  treeCache_->StopLearningPhase();
405  filePtr_->SetCacheRead(nullptr);
406  rawTreeCache_.reset();
407  }
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
std::shared_ptr< TTreeCache > rawTreeCache_
Definition: RootTree.h:186
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
void edm::RootTree::trainCache ( char const *  branchNames)

Definition at line 432 of file RootTree.cc.

References branches(), cacheSize_, filePtr_, mps_fire::i, trainedSet_, tree_, and treeCache_.

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

432  {
433  if (cacheSize_ == 0) {
434  return;
435  }
436  tree_->LoadTree(0);
437  assert(treeCache_);
438  filePtr_->SetCacheRead(treeCache_.get());
439  treeCache_->StartLearningPhase();
440  treeCache_->SetEntryRange(0, tree_->GetEntries());
441  treeCache_->AddBranch(branchNames, kTRUE);
442  treeCache_->StopLearningPhase();
443  assert(treeCache_->GetTree() == tree_);
444  // We own the treeCache_.
445  // We make sure the treeCache_ is detached from the file,
446  // so that ROOT does not also delete it.
447  filePtr_->SetCacheRead(nullptr);
448 
449  // Must also manually add things to the trained set.
450  TObjArray *branches = tree_->GetListOfBranches();
451  int branchCount = branches->GetEntriesFast();
452  for (int i=0;i<branchCount;i++) {
453  TBranch *branch = (TBranch*)branches->UncheckedAt(i);
454  if ((branchNames[0] == '*') || (strcmp(branchNames, branch->GetName()) == 0)) {
455  trainedSet_.insert(branch);
456  }
457  }
458 
459  }
std::vector< std::string > const & branchNames() const
Definition: RootTree.h:107
std::shared_ptr< TTreeCache > treeCache_
Definition: RootTree.h:185
TTree * tree_
Definition: RootTree.h:178
std::unordered_set< TBranch * > trainedSet_
Definition: RootTree.h:189
std::shared_ptr< InputFile > filePtr_
Definition: RootTree.h:174
unsigned int cacheSize_
Definition: RootTree.h:201
BranchMap const & branches() const
Definition: RootTree.cc:178
TTree const* edm::RootTree::tree ( ) const
inline
TTree* edm::RootTree::tree ( )
inline

Member Data Documentation

TBranch* edm::RootTree::auxBranch_
private

Definition at line 181 of file RootTree.h.

Referenced by close(), and isValid().

TBranch* edm::RootTree::branchEntryInfoBranch_
private

Definition at line 209 of file RootTree.h.

Referenced by close(), and isValid().

std::shared_ptr<BranchMap> edm::RootTree::branches_
private

Definition at line 195 of file RootTree.h.

Referenced by addBranch(), and branches().

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

Definition at line 194 of file RootTree.h.

Referenced by addBranch().

BranchType edm::RootTree::branchType_
private

Definition at line 180 of file RootTree.h.

Referenced by startTraining().

unsigned int edm::RootTree::cacheSize_
private

Definition at line 201 of file RootTree.h.

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

bool edm::RootTree::enablePrefetching_
private

Definition at line 205 of file RootTree.h.

Referenced by setCacheSize().

bool edm::RootTree::enableTriggerCache_
private

Definition at line 206 of file RootTree.h.

Referenced by checkTriggerCache().

EntryNumber edm::RootTree::entries_
private

Definition at line 191 of file RootTree.h.

Referenced by isValid(), setEntryNumber(), and skipEntries().

EntryNumber edm::RootTree::entryNumber_
private

Definition at line 192 of file RootTree.h.

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

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

Definition at line 193 of file RootTree.h.

Referenced by entryNumberForIndex().

std::shared_ptr<InputFile> edm::RootTree::filePtr_
private
TTree* edm::RootTree::infoTree_
private

Definition at line 211 of file RootTree.h.

Referenced by close(), and isValid().

unsigned int edm::RootTree::learningEntries_
private

Definition at line 200 of file RootTree.h.

Referenced by RootTree(), and startTraining().

TTree* edm::RootTree::metaTree_
private

Definition at line 179 of file RootTree.h.

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

bool edm::RootTree::performedSwitchOver_
mutableprivate

Definition at line 199 of file RootTree.h.

Referenced by checkTriggerCacheImpl().

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

Definition at line 186 of file RootTree.h.

Referenced by close(), selectCache(), setCacheSize(), startTraining(), and stopTraining().

EntryNumber edm::RootTree::rawTriggerSwitchOverEntry_
mutableprivate

Definition at line 198 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), and setEntryNumber().

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

Definition at line 188 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), and close().

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

Definition at line 207 of file RootTree.h.

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

TBranch* edm::RootTree::statusBranch_
private

Definition at line 212 of file RootTree.h.

EntryNumber edm::RootTree::switchOverEntry_
private

Definition at line 197 of file RootTree.h.

Referenced by setEntryNumber(), and startTraining().

std::unordered_set<TBranch*> edm::RootTree::trainedSet_
mutableprivate
bool edm::RootTree::trainNow_
private

Definition at line 196 of file RootTree.h.

Referenced by setEntryNumber().

TTree* edm::RootTree::tree_
private
unsigned long edm::RootTree::treeAutoFlush_
private

Definition at line 202 of file RootTree.h.

Referenced by RootTree(), and setEntryNumber().

std::shared_ptr<TTreeCache> edm::RootTree::treeCache_
private
std::unordered_set<TBranch*> edm::RootTree::triggerSet_
mutableprivate

Definition at line 190 of file RootTree.h.

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

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

Definition at line 187 of file RootTree.h.

Referenced by checkTriggerCacheImpl(), and close().