Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-01 22:41:13

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