98 SubDirectories & currentSetOfSubDirectories=currentDirectory.subDir;
101 SubDirectory * subDirectoryToUse=0;
102 SubDirectories::iterator subDirectoryFindIterator=currentSetOfSubDirectories.find(subDir);
105 if (subDirectoryFindIterator==currentSetOfSubDirectories.end()){
107 SubDirectory & insertedDir = currentSetOfSubDirectories[subDir];
108 subDirectoryToUse = &insertedDir;
109 if (!insertedDir.dir){
110 insertedDir.dir=
new TFileDirectory(currentDirectory.dir->mkdir(subDir));
111 insertedDir.dirName=subDir;
115 DirectoryHistos::iterator masterHistogramIterator=
master_.begin();
116 DirectoryHistos::iterator masterHistogramIterator_end=
master_.end();
117 for (; masterHistogramIterator!=masterHistogramIterator_end;++masterHistogramIterator)
120 insertedDir.histos[masterHistogramIterator->first]=masterHistogramIterator->second->clone();
124 DirectoryHistos::iterator clonedHistogramIterator=insertedDir.histos.begin();
125 DirectoryHistos::iterator clonedHistogramIterator_end=insertedDir.histos.end();
126 for (; clonedHistogramIterator!=clonedHistogramIterator_end;++clonedHistogramIterator)
128 clonedHistogramIterator->second->book(insertedDir.dir);
132 subDirectoryToUse=&subDirectoryFindIterator->second;
136 DirectoryHistos::iterator histogramIterator=subDirectoryToUse->histos.begin();
137 DirectoryHistos::iterator histogramIterator_end=subDirectoryToUse->histos.end();
138 for(; histogramIterator!=histogramIterator_end;++histogramIterator)
139 { histogramIterator->second->fill(iEvent); }
std::map< std::string, SubDirectory > SubDirectories