Exemple #1
0
        /// <summary>
        /// Simple pass-through request
        /// </summary>
        private static void ASimpleQuery()
        {
            var q = new QueriableDummy <singleIntNtuple>();

            q
            .AsTTree(outputROOTFile: new FileInfo("hi.root"));
        }
        public void RemoteBashROOTFileResult()
        {
            var rootFile = TestUtils.CreateFileOfInt(20);

            // Get a simple query we can "play" with
            var q     = new QueriableDummy <TestNtupe>();
            var dude  = q.AsTTree("mytree");
            var query = DummyQueryExectuor.LastQueryModel;

            // Ok, now we can actually see if we can make it "go".
            var exe = new TTreeQueryExecutor(new[] { rootFile.AsRemoteBashUri() }, "dude", typeof(ntuple), typeof(TestNtupe));

            exe.CompileDebug = true;
            exe.CleanupQuery = false;
            var result = exe.ExecuteScalar <FileInfo[]>(query);

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Length);
            result[0].Refresh();
            Assert.IsTrue(result[0].Exists);
        }
 /// <summary>
 /// Simple pass-through request
 /// </summary>
 private static void ASimpleQuery()
 {
     var q = new QueriableDummy<singleIntNtuple>();
     q
         .AsTTree(outputROOTFile: new FileInfo("hi.root"));
 }