src
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
makeMEIFBenchmarkPlots.ev
ev
Definition:
makeMEIFBenchmarkPlots.py:55
edm::FileBlock::processBlockTrees
std::vector< TTree * > const & processBlockTrees() const
Definition:
FileBlock.h:125
BXlumiParameters_cfi.lumi
lumi
Definition:
BXlumiParameters_cfi.py:6
edm::FileBlock::processBlockTree
TTree * processBlockTree(std::string const &processName) const
Definition:
FileBlock.cc:24
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
edm::FileBlock::lumiTree_
TTree * lumiTree_
Definition:
FileBlock.h:143
HLT_2024v12_cff.distance
distance
Definition:
HLT_2024v12_cff.py:5719
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:19
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
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
ntuplemaker.fill
fill
Definition:
ntuplemaker.py:304
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:93
edm::FileBlock::runTree_
TTree * runTree_
Definition:
FileBlock.h:145
edm::FileBlock::tree_
TTree * tree_
Definition:
FileBlock.h:141
ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it
auto & it
Definition:
splitVertices.h:48
edm
HLT enums.
Definition:
AlignableModifier.h:19
lumi
Definition:
LumiSectionData.h:20
edm::FileBlock::processesWithProcessBlockTrees
std::vector< std::string > const & processesWithProcessBlockTrees() const
Definition:
FileBlock.h:126
SimL1EmulatorRepack_CalouGT_cff.processName
processName
Definition:
SimL1EmulatorRepack_CalouGT_cff.py:16
edm::FileBlock::metaTree_
TTree * metaTree_
Definition:
FileBlock.h:142
edm::FileBlock::processesWithProcessBlockTrees_
std::vector< std::string > processesWithProcessBlockTrees_
Definition:
FileBlock.h:148
FileBlock.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
Generated for CMSSW Reference Manual by
1.8.14