#include "IFieldMapDescription.hxx" #include "IFieldMap.hxx" #include #include #include #include #include #include using std::string; namespace { std::ostream& operator<<(std::ostream& stream,const TVector3& vect){ stream<<"("<AsString()<<"): "; TROOT::IncreaseDirLevel(); std::string indent(TROOT::GetDirLevel(),' '); if(fScaling!=1.0) { std::cout<<"\n"< bad_checksums; for(PathList::const_iterator i_path=fFieldmapPaths.begin(); i_path!=fFieldmapPaths.end();++i_path){ TString expanded=(*i_path)+"/"+basename; gSystem->ExpandPathName(expanded); if(!gSystem->AccessPathName(expanded.Data())){ TMD5* checksum=TMD5::FileChecksum(expanded.Data()); if(string(checksum->AsString()) == fCheckSum->AsString()){ return string(expanded.Data()); }else{ bad_checksums.push_back(expanded); } } } COMETError("Unable to find fieldmap file, '"<::const_iterator i_path=bad_checksums.begin(); i_path!=bad_checksums.end();++i_path){ COMETError(" "<<*i_path); } } return ""; } void COMET::IFieldMapDescription::PrintFieldmapSearchPaths(bool use_error_stream){ SetupFilePath(); for(PathList::const_iterator i_path=fFieldmapPaths.begin(); i_path!=fFieldmapPaths.end();++i_path){ if(use_error_stream) COMETError(" "<<*i_path); else COMETLog (" "<<*i_path); } }