14 fs_->
file().SetCompressionSettings(compSettings);
17 std::map<std::string, LEAFTYPE> leafmap;
18 leafmap[
"bool"] =
BOOL;
20 leafmap[
"short int"] =
SHORT;
22 leafmap[
"ushort int"] =
U_SHORT;
25 leafmap[
"ints"] =
INT_V;
26 leafmap[
"uint"] =
U_INT;
28 leafmap[
"float"] =
FLOAT;
30 leafmap[
"double"] =
DOUBLE;
32 leafmap[
"lint"] =
LONG;
36 leafmap[
"char"] =
CHAR;
45 productSelector_.
initialize(productSelectorRules_, allBranches);
47 std::set<std::string> branchnames;
49 for (
auto const&
selection : allBranches) {
52 if (branchnames.find(
selection->productInstanceName()) != branchnames.end()) {
54 <<
"More than one branch named: " <<
selection->productInstanceName() << std::endl
55 <<
"Exception thrown from ShallowTree::ShallowTree" << std::endl;
57 branchnames.insert(
selection->productInstanceName());
84 eat<std::vector<unsigned int> >(
selection);
100 eat<std::vector<unsigned short> >(
selection);
132 eat<std::vector<unsigned long> >(
selection);
148 eat<std::vector<unsigned char> >(
selection);
152 typedef std::pair<std::string, LEAFTYPE> pair_t;
153 for (
const pair_t leaf : leafmap) {
154 leafstring +=
"\t" + leaf.first +
"\n";
158 <<
"class ShallowTree does not handle leaves of type " <<
selection->className() <<
" like\n"
161 <<
"Valid leaf types are (friendlyClassName):\n"
162 << leafstring <<
"Exception thrown from ShallowTree::ShallowTree\n";
171 connector->connect(
iEvent);
179 iEvent.getByLabel(ml, pin, handle_);
187 : ml(desc->
moduleLabel()), pin(desc->productInstanceName()) {