File indexing completed on 2024-04-06 12:31:46
0001 #include "FWCore/Utilities/interface/Exception.h"
0002 #include "Utilities/StorageFactory/test/Test.h"
0003
0004 int main(int, char ** ) try {
0005 initTest();
0006
0007 using namespace edm::storage;
0008 IOOffset size = -1;
0009 bool exists = StorageFactory::get()->check(
0010 "http://opendata.cern.ch/eos/opendata"
0011 "/cms/Run2011A/PhotonHad/AOD/12Oct2013-v1"
0012 "/00000/024938EB-3445-E311-A72B-002590593920.root",
0013 &size);
0014
0015 std::cout << "exists = " << exists << ", size = " << size << "\n";
0016 std::cout << "stats:\n" << StorageAccount::summaryText() << 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 }