CMS 3D CMS Logo

FileBlock.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
5 namespace edm {
7  TTree* meta,
8  TTree* lumi,
9  TTree* lumiMeta,
10  TTree* run,
11  TTree* runMeta,
12  std::vector<TTree*> processBlockTrees,
13  std::vector<std::string> processesWithProcessBlockTrees) {
14  tree_ = ev;
15  metaTree_ = meta;
16  lumiTree_ = lumi;
17  lumiMetaTree_ = lumiMeta;
18  runTree_ = run;
19  runMetaTree_ = runMeta;
22  }
23 
26  if (it != processesWithProcessBlockTrees_.end()) {
28  return processBlockTrees_[index];
29  }
30  return nullptr;
31  }
32 
35  std::fill(processBlockTrees_.begin(), processBlockTrees_.end(), nullptr);
36  }
37 
38 } // namespace edm
std::vector< TTree * > const & processBlockTrees() const
Definition: FileBlock.h:125
TTree * processBlockTree(std::string const &processName) const
Definition: FileBlock.cc:24
void updateTTreePointers(TTree *ev, TTree *meta, TTree *lumi, TTree *lumiMeta, TTree *run, TTree *runMeta, std::vector< TTree *> processBlockTrees, std::vector< std::string > processesWithProcessBlockTrees)
Definition: FileBlock.cc:6
TTree * lumiTree_
Definition: FileBlock.h:143
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
TTree * lumiMetaTree_
Definition: FileBlock.h:144
std::vector< TTree * > processBlockTrees_
Definition: FileBlock.h:147
void close()
Definition: FileBlock.cc:33
TTree * runMetaTree_
Definition: FileBlock.h:146
TTree * runTree_
Definition: FileBlock.h:145
TTree * tree_
Definition: FileBlock.h:141
HLT enums.
std::vector< std::string > const & processesWithProcessBlockTrees() const
Definition: FileBlock.h:126
TTree * metaTree_
Definition: FileBlock.h:142
std::vector< std::string > processesWithProcessBlockTrees_
Definition: FileBlock.h:148
def move(src, dest)
Definition: eostools.py:511