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
edm::FileBlock::processBlockTrees_
std::vector< TTree * > processBlockTrees_
Definition:
FileBlock.h:147
edm::FileBlock::tree_
TTree * tree_
Definition:
FileBlock.h:141
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::FileBlock::processesWithProcessBlockTrees_
std::vector< std::string > processesWithProcessBlockTrees_
Definition:
FileBlock.h:148
edm::FileBlock::processesWithProcessBlockTrees
std::vector< std::string > const & processesWithProcessBlockTrees() const
Definition:
FileBlock.h:126
edm::FileBlock::metaTree_
TTree * metaTree_
Definition:
FileBlock.h:142
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:19
BXlumiParameters_cfi.lumi
lumi
Definition:
BXlumiParameters_cfi.py:6
edm::FileBlock::processBlockTree
TTree * processBlockTree(std::string const &processName) const
Definition:
FileBlock.cc:24
ntuplemaker.fill
fill
Definition:
ntuplemaker.py:304
edm::FileBlock::lumiMetaTree_
TTree * lumiMetaTree_
Definition:
FileBlock.h:144
edm::FileBlock::close
void close()
Definition:
FileBlock.cc:33
edm::FileBlock::runMetaTree_
TTree * runMetaTree_
Definition:
FileBlock.h:146
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SimL1EmulatorRepack_CalouGT_cff.processName
processName
Definition:
SimL1EmulatorRepack_CalouGT_cff.py:17
FileBlock.h
edm::FileBlock::processBlockTrees
std::vector< TTree * > const & processBlockTrees() const
Definition:
FileBlock.h:125
edm::FileBlock::runTree_
TTree * runTree_
Definition:
FileBlock.h:145
eostools.move
def move(src, dest)
Definition:
eostools.py:511
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:97
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
edm::FileBlock::lumiTree_
TTree * lumiTree_
Definition:
FileBlock.h:143
HLT_FULL_cff.distance
distance
Definition:
HLT_FULL_cff.py:7746
lumi
Definition:
LumiSectionData.h:20
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
Generated for CMSSW Reference Manual by
1.8.16