Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
runrange_select.php
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file runrange_select.php
1 <table>
2 <tr>
3 <td>
4 <form name="subsystemselect" method="post" action="showplots.php" target="main">
5 <center>
6 <p>
7 
8 Select subsystem from dropdown list <br>
9  <select name="histos">
10 
11 <?php
12 
13 
15  "ACCMON_",
16  "BBCLVL1MON_",
17  "BbcMON_",
18  "DAQ_[0-9,c,l]",
19  "DCHMON_",
20  "EMCalMON_",
21  "ERTLVL1MON_",
22  "ERTMaskMon_",
23  "GL1MON_",
24  "LOCALPOLMON_0_",
25  "MCRMON_",
26  "MPCMON_",
27  "MUIDLVL1MON_",
28  "MUIDMONITOR_",
29  "MUTRGMON_",
30  "MUTRIGLVL1MON_",
31  "MUTRMON_[0-2]",
32  "PADMON_display",
33  "PBGLUMON_",
34  "PKTSIZEMON_",
35  "RICHMON_",
36  "RPCMON_",
37  "TOF",
38  "TOFWMON_",
39  "ZDCLVL1MON_",
40  "ZdcMON_[0,8]"
41  );
42 
43  echo(" " . $run_directory. "<br>\n");
44  foreach( $subsys as $sub){
45  echo("<option value=\"" . $run_directory."/*/".$sub."*.png\"> " . $sub . " </option>\n");
46  }
47 
48 echo("</select>\n");
49 echo("</td>\n");
50 
51 echo("<td>\n");
52 echo("<hr width=50>\n");
53 echo("</td>\n");
54 
55 echo("<td>\n");
56 
57 echo("<form name=\"runselect\" method=\"post\" action=\"showplots.php\" target=\"main\">\n");
58 echo("<center>\n");
59 
60 echo("Select runrange from dropdown list <br>\n");
61 echo("<select name=\"runrange\">\n");
62 
63 $run_directory = $_POST[datatype];
64 
65 echo(" " . $run_directory. "<br>\n");
66 
68 
69 if( $dh = opendir($run_directory))
70 {
71  while( false !== ($file = readdir($dh)))
72  {
73  echo(" " . $file . "<br>\n");
74  // Skip '.' and '..'
75  if( $file == '.' || $file == '..') continue;
76  if( is_dir($run_directory."/".$file) && stristr($file, "un_0"))
77  {
78  array_push($file_list, $file);
79  }
80  }
81  closedir($dh);
82 }
83 
84 rsort($file_list);
85 
86 foreach ( $file_list as $file)
87 {
88  echo(" " . $file . "<br>\n");
89  echo("<option value=\"" . $run_directory."/".$file . "\">" . $file . "</option>\n");
90 }
91 
92 ?>
93 
94 </select>
95 <br><input type="submit" name="Submit" value="Select">
96 </center>
97 </form>
98 </td>
99 </tr>
100 </table>
101