int Proto2ShowerCalib::End(PHCompositeNode *topNode) { cout << "Proto2ShowerCalib::End - write to " << _filename << endl; PHTFileServer::get().cd(_filename); Fun4AllHistoManager *hm = get_HistoManager(); assert(hm); for (unsigned int i = 0; i < hm->nHistos(); i++) hm->getHisto(i)->Write(); // if (_T_EMCalTrk) // _T_EMCalTrk->Write(); fdata.close(); return Fun4AllReturnCodes::EVENT_OK; }