Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
FWCore
Framework
src
FileBlock.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/FileBlock.h
"
2
3
#include <algorithm>
4
5
namespace
edm {
6
void
FileBlock::updateTTreePointers
(TTree*
ev
,
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
24
TTree*
FileBlock::processBlockTree
(
std::string
const
&
processName
)
const
{
25
auto
it =
std::find
(
processesWithProcessBlockTrees_
.begin(),
processesWithProcessBlockTrees_
.end(),
processName
);
26
if
(it !=
processesWithProcessBlockTrees_
.end()) {
27
auto
index
=
std::distance
(
processesWithProcessBlockTrees_
.begin(), it);
28
return
processBlockTrees_
[
index
];
29
}
30
return
nullptr
;
31
}
32
33
void
FileBlock::close
() {
34
runMetaTree_
=
lumiMetaTree_
=
metaTree_
=
runTree_
=
lumiTree_
=
tree_
=
nullptr
;
35
std::fill
(
processBlockTrees_
.begin(),
processBlockTrees_
.end(),
nullptr
);
36
}
37
38
}
// namespace edm
HLT_FULL_cff.distance
tuple distance
Definition:
HLT_FULL_cff.py:7955
edm::FileBlock::processBlockTree
TTree * processBlockTree(std::string const &processName) const
Definition:
FileBlock.cc:24
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:96
edm::FileBlock::lumiTree_
TTree * lumiTree_
Definition:
FileBlock.h:143
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:19
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::FileBlock::lumiMetaTree_
TTree * lumiMetaTree_
Definition:
FileBlock.h:144
edm::FileBlock::processBlockTrees_
std::vector< TTree * > processBlockTrees_
Definition:
FileBlock.h:147
edm::FileBlock::close
void close()
Definition:
FileBlock.cc:33
edm::FileBlock::runMetaTree_
TTree * runMetaTree_
Definition:
FileBlock.h:146
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
FSQHLTOfflineSource_cfi.processName
string processName
Definition:
FSQHLTOfflineSource_cfi.py:594
submitPVValidationJobs.run
tuple run
Definition:
submitPVValidationJobs.py:227
edm::FileBlock::runTree_
TTree * runTree_
Definition:
FileBlock.h:145
eostools.move
def move
Definition:
eostools.py:511
dqmdumpme.lumi
list lumi
Definition:
dqmdumpme.py:53
edm::FileBlock::updateTTreePointers
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
PVValHelper::fill
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
Definition:
PVValidationHelpers.cc:20
edm::FileBlock::tree_
TTree * tree_
Definition:
FileBlock.h:141
edm::FileBlock::metaTree_
TTree * metaTree_
Definition:
FileBlock.h:142
edm::FileBlock::processesWithProcessBlockTrees_
std::vector< std::string > processesWithProcessBlockTrees_
Definition:
FileBlock.h:148
FileBlock.h
Generated for CMSSW Reference Manual by
1.8.5