9 for (std::map<int, RootChamberWriter>::iterator mapItr = theChamberWriters.begin(); mapItr != theChamberWriters.end();
11 mapItr->second.tree()->Print();
13 theFile = mapItr->second.tree()->GetCurrentFile();
20 ostringstream treeName;
21 treeName <<
"ChamberType" << chamberType;
26 std::map<int, RootChamberWriter>::iterator mapItr = theChamberWriters.find(chamberType);
27 if (mapItr != theChamberWriters.end()) {
28 return mapItr->second;
30 throw cms::Exception(
"NeutronWriter") <<
"It's dangerous to create ROOT chamber "
31 <<
"writers during processing. The global file may change";
35 return theChamberWriters[chamberType];
40 std::cout <<
"ROOTNEUTRONWRITER " << chamberType <<
" HITS SIZE " <<
hits.size() << std::endl;
41 chamberWriter(chamberType).write(
hits);