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;
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";
static AlgebraicMatrix initialize()
~RootNeutronWriter() override
void writeCluster(int chamberType, const edm::PSimHitContainer &hits) override
writes out a list of SimHits.
void initialize(int detType) override
RootNeutronWriter(const std::string &fileName)
RootChamberWriter & chamberWriter(int chamberType)
std::vector< PSimHit > PSimHitContainer