Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-06 08:08:19

0001 #!/usr/bin/perl
0002 
0003 use strict;
0004 use DBI; # Database interface 
0005 
0006 # connect to the database FileCatalog
0007 my $dbh = DBI->connect("dbi:ODBC:FileCatalog","") || die $DBI::error;
0008 
0009 my $gettab = $dbh->prepare("SELECT DISTINCT runnumber FROM datasets WHERE dataset LIKE 'ana450_2024p009%' AND dsttype LIKE 'DST_CALO_run2pp' ORDER BY runnumber;");
0010 $gettab->execute();
0011 # print the first entries:
0012 my @row;
0013 while (@row = $gettab->fetchrow_array) {
0014     print join(", ", @row), "\n";
0015 }
0016 
0017 $dbh->disconnect;