101 SubDirectories & currentSetOfSubDirectories=currentDirectory.subDir;
104 SubDirectory * subDirectoryToUse=0;
105 SubDirectories::iterator subDirectoryFindIterator=currentSetOfSubDirectories.find(subDir);
108 if (subDirectoryFindIterator==currentSetOfSubDirectories.end()){
110 SubDirectory & insertedDir = currentSetOfSubDirectories[subDir];
111 subDirectoryToUse = &insertedDir;
112 if (!insertedDir.dir){
113 insertedDir.dir=
new TFileDirectory(currentDirectory.dir->mkdir(subDir));
114 insertedDir.dirName=subDir;
118 DirectoryHistos::iterator masterHistogramIterator=
master_.begin();
119 DirectoryHistos::iterator masterHistogramIterator_end=
master_.end();
120 for (; masterHistogramIterator!=masterHistogramIterator_end;++masterHistogramIterator)
123 insertedDir.histos[masterHistogramIterator->first]=masterHistogramIterator->second->clone();
127 DirectoryHistos::iterator clonedHistogramIterator=insertedDir.histos.begin();
128 DirectoryHistos::iterator clonedHistogramIterator_end=insertedDir.histos.end();
129 for (; clonedHistogramIterator!=clonedHistogramIterator_end;++clonedHistogramIterator)
131 clonedHistogramIterator->second->book(insertedDir.dir);
135 subDirectoryToUse=&subDirectoryFindIterator->second;
139 DirectoryHistos::iterator histogramIterator=subDirectoryToUse->histos.begin();
140 DirectoryHistos::iterator histogramIterator_end=subDirectoryToUse->histos.end();
141 for(; histogramIterator!=histogramIterator_end;++histogramIterator)
142 { histogramIterator->second->fill(iEvent); }
std::map< std::string, SubDirectory > SubDirectories