CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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;
20  processBlockTrees_ = std::move(processBlockTrees);
21  processesWithProcessBlockTrees_ = std::move(processesWithProcessBlockTrees);
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
TTree * processBlockTree(std::string const &processName) const
Definition: FileBlock.cc:24
bool ev
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
def move
Definition: eostools.py:511
list lumi
Definition: dqmdumpme.py:53
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
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
TTree * tree_
Definition: FileBlock.h:141
TTree * metaTree_
Definition: FileBlock.h:142
std::vector< std::string > processesWithProcessBlockTrees_
Definition: FileBlock.h:148