File indexing completed on 2024-04-06 12:31:53
0001 #include "Utilities/StorageFactory/test/Test.h"
0002 #include "FWCore/Utilities/interface/Exception.h"
0003
0004 int main(int, char** ) try {
0005 initTest();
0006
0007 using namespace edm::storage;
0008
0009 bool exists = StorageFactory::get()->check(
0010 "rfio:/castor/cern.ch/cms/reconstruction/datafiles/"
0011 "ORCA_7_5_2/PoolFileCatalog.xmlx");
0012
0013 std::cout << "exists = " << exists << "\n";
0014 std::cout << StorageAccount::summaryText(true) << std::endl;
0015 return EXIT_SUCCESS;
0016 } catch (cms::Exception const& e) {
0017 std::cerr << e.explainSelf() << std::endl;
0018 return EXIT_FAILURE;
0019 } catch (std::exception const& e) {
0020 std::cerr << e.what() << std::endl;
0021 return EXIT_FAILURE;
0022 }