Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:21

0001 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"> 
0002 <html xmlns    = " http://www.w3.org/1999/xhtml" 
0003       xml:lang = "en" 
0004       lang     = "en"> 
0005 
0006  <head>
0007   <title>Pixel DQM Viewer</title>
0008   <meta http-equiv = "content-type" 
0009         content    = "text/html; charset=utf-8" />
0010   <meta name       = "keywords" 
0011         content    = "css, stylesheets, form" />
0012   <link rel = "stylesheet" type = "text/css" href = "css_files/Online.css"             />
0013   <link rel = "stylesheet" type = "text/css" href = "css_files/tab-view.css"           />
0014   <link rel = "stylesheet" type = "text/css" href = "css_files/context-menu.css"       />
0015   <link rel = "stylesheet" type = "text/css" href = "css_files/folder-tree-static.css" />
0016   <link rel = "stylesheet" type = "text/css" href = "css_files/IMGC.css"           />
0017 <!--  <link rel = "stylesheet" type = "text/css" href = "../../TrackerCommon/test/css_files/tab-view.css"           />
0018   <link rel = "stylesheet" type = "text/css" href = "../../TrackerCommon/test/css_files/context-menu.css"       />
0019   <link rel = "stylesheet" type = "text/css" href = "../../TrackerCommon/test/css_files/folder-tree-static.css" />
0020   <link rel = "stylesheet" type = "text/css" href = "../../TrackerCommon/test/css_files/IMGC.css"               />
0021 -->
0022   <script type = "text/javascript" src = "WebLib.js">                                  </script> 
0023   <script type = "text/javascript" src = "js_files/tab-view.js">               </script>
0024   <script type = "text/javascript" src = "js_files/scriptaculous/lib/prototype.js">    </script>
0025   <script type = "text/javascript" src = "js_files/scriptaculous/src/scriptaculous.js"></script>
0026   <script type = "text/javascript" src = "js_files/scriptaculous/lib/moo.fx.js">       </script>
0027   <script type = "text/javascript" src = "js_files/IMGC.js">                   </script>
0028   <script type = "text/javascript" src = "js_files/SlideShow.js">              </script>
0029 <!--  <script type = "text/javascript" src = "../../TrackerCommon/test/js_files/tab-view.js">                       </script>
0030   <script type = "text/javascript" src = "../../TrackerCommon/test/js_files/scriptaculous/lib/prototype.js">    </script>
0031   <script type = "text/javascript" src = "../../TrackerCommon/test/js_files/scriptaculous/src/scriptaculous.js"></script>
0032   <script type = "text/javascript" src = "../../TrackerCommon/test/js_files/scriptaculous/lib/moo.fx.js">       </script>
0033   <script type = "text/javascript" src = "../../TrackerCommon/test/js_files/IMGC.js">                           </script>
0034   <script type = "text/javascript" src = "../../TrackerCommon/test/js_files/SlideShow.js">                      </script>
0035 -->
0036   <script type = "text/javascript">
0037    function CloseUpperWindow()
0038    {
0039     var url = WebLib.getApplicationURL2();
0040     var s0          = (url.lastIndexOf(".ch:")+4);
0041     var s1          = url.lastIndexOf("/urn:");
0042     var port_number = url.substring(s0, s1);
0043     if (port_number == "1972") {
0044       var frameSet = parent.document.getElementsByTagName("frameset") ;
0045       frameSet[0].setAttribute("rows","0,100%") ;
0046     }
0047    }
0048    function ShowTabs(option) 
0049    {
0050      var obj = document.getElementById("dhtmlgoodies_tabView1");
0051      if (obj == null) return;
0052      obj.style.visibility = option; // "visible" or "hidden"
0053    }
0054    function ShowButtons(option) 
0055    {
0056      var obj;
0057      obj = document.getElementById("collate_me");
0058      if (obj != null ) obj.disabled=option;
0059      obj = document.getElementById("create_summary");
0060      if (obj != null ) obj.disabled=option;
0061      obj = document.getElementById("check_qtest_result");
0062      if (obj != null ) obj.disabled=option;
0063      obj = document.getElementById("create_tkmap");
0064      if (obj != null ) obj.disabled=option;
0065      obj = document.getElementById("pixel_summary_overview_show");
0066      if (obj != null ) obj.disabled=option;
0067      obj = document.getElementById("barrel_summary_overview_show");
0068      if (obj != null ) obj.disabled=option;
0069      obj = document.getElementById("endcap_summary_overview_show");
0070      if (obj != null ) obj.disabled=option;
0071      obj = document.getElementById("structure_for_overview");
0072      if (obj != null ) obj.disabled=option;
0073      obj = document.getElementById("errorOverview_slideShow");
0074      if (obj != null ) obj.disabled=option;
0075      obj = document.getElementById("errorOverview_plot_creation");
0076      if (obj != null ) obj.disabled=option;
0077      obj = document.getElementById("errorOverview_plot_show");
0078      if (obj != null ) obj.disabled=option;
0079      obj = document.getElementById("summary_plot_creation");
0080      if (obj != null ) obj.disabled=option;
0081      obj = document.getElementById("update_slideshow");
0082      if (obj != null ) obj.disabled=option;
0083      obj = document.getElementById("save_to_file");
0084      if (obj != null ) obj.disabled=option;
0085      obj = document.getElementById("start_slide_show");
0086      if (obj != null ) obj.disabled=option;
0087      obj = document.getElementById("previous_slide_show");
0088      if (obj != null ) obj.disabled=option;
0089      obj = document.getElementById("play_slide_show");
0090      if (obj != null ) obj.disabled=option;
0091      obj = document.getElementById("stop_slide_show");
0092      if (obj != null ) obj.disabled=option;
0093      obj = document.getElementById("next_slide_show");
0094      if (obj != null ) obj.disabled=option;
0095      obj = document.getElementById("end_slide_show");
0096      if (obj != null ) obj.disabled=option;
0097      obj = document.getElementById("list_ME_command");
0098      if (obj != null ) obj.disabled=option;
0099      obj = document.getElementById("refreshInterval");
0100      if (obj != null ) obj.disabled=option;
0101      obj = document.getElementById("create_tkmap");
0102      if (obj != null ) obj.disabled=option;
0103      obj = document.getElementById("list_module");
0104      if (obj != null ) obj.disabled=option;
0105      obj = document.getElementById("TKMapContentType");
0106      if (obj != null ) obj.disabled=option;
0107      obj = document.getElementById("structure_for_module");
0108      if (obj != null ) obj.disabled=option;
0109      obj = document.getElementById("clearSingleModuleViewTree");
0110      if (obj != null ) obj.disabled=option;
0111      obj = document.getElementById("list_summary");
0112      if (obj != null ) obj.disabled=option;
0113      obj = document.getElementById("structure_name");
0114      if (obj != null ) obj.disabled=option;
0115      obj = document.getElementById("clearSingleModuleViewTree");
0116      if (obj != null ) obj.disabled=option;
0117      obj = document.getElementById("read_alarm");
0118      if (obj != null ) obj.disabled=option;
0119      obj = document.getElementById("structure_for_alarm");
0120      if (obj != null ) obj.disabled=option;
0121      obj = document.getElementById("clearAlarmViewTree");
0122      if (obj != null ) obj.disabled=option;
0123    }
0124    function ShowProgress (option) 
0125    {
0126      var progress = document.getElementById("progressIcon");
0127      if (progress == null) return;
0128    
0129      var label = document.getElementById("progress_message");
0130      if (label == null) return;
0131    
0132      var args = arguments[1];
0133      if (args != null && args.length > 0) {
0134        label.innerHTML = args;
0135      }
0136      progress.style.visibility = option; // "visible" or "hidden"
0137    }
0138    function RequestReadyState() 
0139    {
0140      var queryString;
0141      var url = WebLib.getApplicationURL2();
0142      queryString = "RequestID=IsReady";
0143      url += queryString;
0144      WebLib.makeRequest(url, FillReadyState);
0145    }
0146    function FillReadyState() 
0147    {
0148      if (WebLib.http_request.readyState == 4) {
0149        if (WebLib.http_request.status == 200) {
0150          try {
0151            var callAgain = false;
0152            var doc = WebLib.http_request.responseXML;
0153            var root = doc.documentElement;
0154            var hrows = root.getElementsByTagName('LName');
0155            if (hrows.length < 1) {
0156              callAgain = true; 
0157            } 
0158            else {
0159 
0160              for (var i = 0; i < hrows.length; i++) {
0161                var l_name  = hrows[i].childNodes[0].nodeValue;
0162            var slideName = l_name + ".png";
0163                ErrorListFiles.push(slideName); 
0164            slideName = "Plot=" + slideName + "&Folder=" + l_name;
0165                ErrorListTitles.push(slideName); 
0166 
0167                var MErows = root.getElementsByTagName('LMEName');
0168                for (var j = 0; j < MErows.length; j++) {
0169                  var lME_name = MErows[j].childNodes[0].nodeValue;
0170                  if( lME_name.match(l_name) ){ 
0171            slideName = lME_name + ".png";
0172                    slideListFiles.push(slideName); 
0173            if(l_name.match("Barrel")) BarrelListFiles.push(slideName); 
0174            if(l_name.match("Endcap")) EndcapListFiles.push(slideName); 
0175            slideName = "Plot=" + slideName + "&Folder=" + l_name;
0176                    slideListTitles.push(slideName); 
0177            if(l_name.match("Barrel")) BarrelListTitles.push(slideName); 
0178            if(l_name.match("Endcap")) EndcapListTitles.push(slideName); 
0179                  }
0180                }
0181 
0182              }
0183              nSlides = slideListFiles.length;
0184 
0185              ShowButtons(false);
0186              ShowTabs('visible');
0187              ShowProgress('hidden');
0188 
0189            }
0190            if (callAgain){
0191              setTimeout('RequestReadyState()',20000);
0192            }
0193          } 
0194          catch (err) {
0195            alert ("Error detail: " + err.message); 
0196          }
0197        }
0198      }
0199    }
0200 
0201    function Onload()
0202    {
0203      try{
0204        CloseUpperWindow();
0205        ShowProgress("visible","&nbsp Histograms from Collector");
0206        RequestReadyState();
0207      }catch(e){
0208        alert(e.message);
0209      }
0210    }
0211   </script> 
0212  </head>
0213  
0214  <body onresize = "IMGC.repaintUponResize()"
0215        onload   = "Onload(); CloseUpperWindow()">
0216   <form id     = "theWholeForm"
0217     action = "javascript:void%200">
0218 
0219    <!-- The left frame: the canvas where all ME plots end up -->
0220    
0221    <div class = "theCanvas"
0222     id    = "theCanvas"
0223     style = "width:  70%  ; 
0224              height: 100% ; 
0225          float:  left ;">
0226      <fieldset style = "background:#DDEFFF;"> 
0227          <div id = "progressIcon">   
0228           <h3>
0229            <img id  = "progress_icon"
0230             src = "images/loading.gif" 
0231         border = "0" /> 
0232                 &nbsp; Please, wait, loading...
0233            </img>
0234            <label class = "label"
0235                   id    = "progress_message"
0236                   style = "text-align:left;">
0237            </label>
0238           </h3>
0239          </div>
0240      </fieldset>
0241    </div> 
0242 
0243    <!-- The right frame: the DQM controls -->   
0244    <div class = "dqmControls"
0245         id    = "dqmControls"
0246         style = "width:  30%   ; 
0247                  height: 100%  ; 
0248                  float:  right ;">
0249       
0250     <!-- Following is the area of the client control buttons: -->
0251     <fieldset style = "background:#DDEFFF;">
0252      <legend id    = "theLegend"
0253              style = "background: #DDEFFF;
0254                   font-family: Verdana, Arial;
0255                   font-size:  12px;
0256                   color:      black;">
0257       &nbsp; Client Controls &nbsp; 
0258      </legend>
0259       <div class = "bloc"  
0260            id    = "bloc2_1" 
0261        style = "background:#C093FF;">
0262        <div  id    = "dhtmlgoodies_tabView1" 
0263              style = "float:  right;
0264                       width:  300px;">
0265         <div class = "dhtmlgoodies_aTab">
0266          <div class = "bloc" 
0267               id    = "bloc2_2"
0268           <!-- These are the Summary Canvas buttons: -->
0269           <label id  = "summary_canvas"
0270              style   = "margin-left:2%">
0271               Status Summary:
0272           </label>
0273            <!-- <input name  = "PixelSummaryOverviewShow" 
0274              id  = "pixel_summary_overview_show"
0275              class   = "controlButton"
0276              value   = "testing" 
0277              onClick = "IMGC.plotFromPath('Pixel/Barrel/Shell_mI/Layer_1/Ladder_01H/Module_1')"
0278              type    = "submit">
0279           </input> -->
0280           <input name    = "BarrelSummaryOverviewShow" 
0281              id  = "barrel_summary_overview_show"
0282              class   = "controlButton"
0283              value   = "Barrel" 
0284              onClick = "IMGC.plotFromPath('Pixel/Barrel')"
0285              type    = "submit">
0286           </input>
0287           <input name    = "EndcapSummaryOverviewShow" 
0288              id  = "endcap_summary_overview_show"
0289              class   = "controlButton"
0290              value   = "Endcap" 
0291              onClick = "IMGC.plotFromPath('Pixel/Endcap')"
0292              type    = "submit">
0293           </input>
0294          </div>
0295         </div>
0296        
0297         <div class = "dhtmlgoodies_aTab">
0298          <div class = "bloc" 
0299               id    = "bloc2_3">
0300          <input name    = "listMECommand"
0301             id  = "list_ME_command"
0302             class   = "controlButton"
0303             value   = "Get ME List"
0304             onClick = "RequestHistos.RequestMEList('CB')"
0305             type    = "submit">
0306 
0307          </input>
0308          <label id  = "MEList"
0309                 class   = "label">
0310           ME list:
0311          </label>
0312          <select name   = "strucMEList"
0313                  class  = "selector"
0314                  id = "monitoring_element_list">
0315          </select>
0316          <p/>
0317          <input name     = "UpdateTrackerMap"
0318                 id   = "create_tkmap"
0319                 class    = "controlButton"
0320                 value    = "Create view"
0321                 onClick  = "ClientActions.CreateTrackerMap()"
0322                 type     = "submit"
0323         disabled = "">
0324          </input>
0325          <label id  = "MEList"
0326                 class   = "label">
0327           Refresh:
0328          </label>
0329          <select name     = "refreshInterval"
0330                  class    = "selector"
0331                  id   = "refreshInterval"
0332                  onchange = "SvgMap.changeRefreshInterval()">
0333             <option      value = "10000" >10 sec</option>
0334             <option selected value = "30000" >30 sec</option>
0335             <option      value = "60000" > 1 min</option>
0336             <option      value = "120000"> 2 min</option>
0337          </select>
0338          <p />
0339 
0340          <label id  = "TrackerMapStyle"
0341                 class   = "label">
0342           Color code:
0343          </label>
0344          <select name     = "TKMapContentType"
0345                  class    = "selector"
0346                  id   = "TKMapContentType"
0347                  onchange = "SvgMap.changeContentType()">
0348             <option selected value = "Averages" >Averages</option>
0349             <option      value = "Alarms"   >Alarms  </option>
0350             <option      value = "Entries"  >Entries </option>
0351          </select>
0352         </div> 
0353       </div>
0354         <div class = "dhtmlgoodies_aTab">
0355          <div class = "bloc" 
0356               id    = "bloc2_4"
0357           <!-- These are the expert action buttons: -->
0358           <input name    = "subscribe"
0359              id  = "subscribe_all"
0360              class   = "controlButton"
0361              value   = "Subscribe All"
0362              onClick = "ClientActions.SubscribeAll()"
0363              type    = "submit">
0364           </input>
0365           <input name    = "dump"
0366              id  = "dump_modIds"
0367              class   = "controlButton"
0368              value   = "Dump IDs"
0369              onClick = "ClientActions.DumpModIds()"
0370              type    = "submit">
0371           </input>
0372           <input name    = "summary"
0373              id  = "create_summary"
0374              class   = "controlButton"
0375              value   = "Update Summary"
0376              onClick = "ClientActions.CreateSummary()"
0377              type    = "submit">
0378           </input>
0379           <input name    = "QtestResult"
0380              id  = "check_qtest_result"
0381              class   = "controlButton"
0382              value   = "Update QTests"
0383              onClick = "ClientActions.CheckQualityTestResults()"
0384              type    = "submit">
0385           </input>
0386           <!-- <input name   = "save"
0387              id  = "save_to_file"
0388              class   = "controlButton"
0389              value   = "Save All"
0390              onClick = "ClientActions.SaveToFile()"
0391              type    = "submit">
0392           </input> -->
0393          </div>
0394         </div>
0395      </fieldset>
0396 
0397      <!-- Following is the area to display the trees: -->
0398      <fieldset style = "background:#DDEFFF;">
0399 
0400       <label>Detector Trees</label>
0401       
0402       <div id = "dhtmlgoodies_tabView2" 
0403            style = "float:  right;
0404                 width:  300px;">
0405        <div class = "dhtmlgoodies_aTab">
0406         <div class = "bloc" 
0407              id    = "bloc2_5">
0408          <div class = "bloc" 
0409               id    = "bloc2_5_1">
0410           <label id    = "structures"
0411                  style = "margin-left:1%">
0412            Sub-Detectors:
0413           </label>
0414           <select name  = "struc_name"
0415               id    = "structure_for_module"
0416               class = "selector">
0417              <option value = "Pixel"                              > ALL PIXELS                 </option>
0418              <option value = "Pixel/Barrel"                   > Barrel                 </option>
0419              <option value = "Pixel/Endcap"                   > Endcap                 </option>
0420              <option value = "Pixel/Barrel/Shell_mI"        SELECTED      > Barrel/Shell_mI        </option>
0421              <option value = "Pixel/Barrel/Shell_mO"                  > Barrel/Shell_mO        </option>
0422              <option value = "Pixel/Barrel/Shell_pI"                  > Barrel/Shell_pI        </option>
0423              <option value = "Pixel/Barrel/Shell_pO"                  > Barrel/Shell_pO        </option>
0424              <option value = "Pixel/Endcap/HalfCylinder_mI"           > Endcap/HalfCylinder_mI     </option>
0425              <option value = "Pixel/Endcap/HalfCylinder_mO"           > Endcap/HalfCylinder_mO     </option>
0426              <option value = "Pixel/Endcap/HalfCylinder_pI"           > Endcap/HalfCylinder_pI     </option>
0427              <option value = "Pixel/Endcap/HalfCylinder_pO"           > Endcap/HalfCylinder_pO     </option>
0428              <option value = "Pixel/Endcap/HalfCylinder_pO/Disk_1/Blade_01/Panel_1"> Endcap/HalfCylinder_pO/Disk_1/Blade_01/Panel_1</option>
0429              <option value = "Pixel/Endcap/HalfCylinder_pO/Disk_2/Blade_01/Panel_1"> Endcap/HalfCylinder_pO/Disk_2/Blade_01/Panel_1</option>
0430           </select>
0431           <p />
0432           <input name    = "listmodule"
0433              id  = "list_module"
0434              class   = "controlButton"
0435              value   = "Get Tree"
0436              onClick = "javascript:RequestHistos.RequestModuleTree()"
0437              type    = "submit">
0438           </input>
0439           <input name    = "clearSingleModuleViewTree"
0440              id  = "clearSingleModuleViewTree"
0441              class   = "controlButton"
0442              value   = "Clear selection"
0443              onClick = "javascript:IMGC.clearSelection()"
0444              type    = "submit">
0445           </input>
0446          </div>
0447          <p />
0448          <div class = "bloc" 
0449               id    = "modtree_list" 
0450               style = "overflow:scroll;height:300px;width:100%;background:#FFF;">
0451          </div>
0452         </div>
0453        </div>
0454              
0455        <div class = "dhtmlgoodies_aTab">
0456         <div class = "bloc" 
0457              id    = "bloc2_6">
0458          <div class = "bloc" 
0459               id    = "bloc2_6_1">
0460           <label id    = "structures"
0461                  class = "label">
0462            Sub-Detectors:
0463           </label>
0464            <select name  = "struc_name"
0465                id    = "structure_name"
0466                class = "selector">
0467               <option value = "Pixel"                                  > ALL PIXELS         </option>
0468               <option value = "Pixel/Barrel" SELECTED                  > Barrel         </option>
0469               <option value = "Pixel/Endcap"                           > Endcap         </option>
0470               <option value = "Pixel/Barrel/Shell_mI"> Barrel/Shell_mI</option>
0471               <option value = "Pixel/Barrel/Shell_mO"> Barrel/Shell_mO</option>
0472               <option value = "Pixel/Barrel/Shell_pI"> Barrel/Shell_pI</option>
0473               <option value = "Pixel/Barrel/Shell_pO"> Barrel/Shell_pO</option>
0474               <option value = "Pixel/Endcap/HalfCylinder_mI"> Endcap/HalfCylinder_mI</option>
0475               <option value = "Pixel/Endcap/HalfCylinder_mO"> Endcap/HalfCylinder_mO</option>
0476               <option value = "Pixel/Endcap/HalfCylinder_pI"> Endcap/HalfCylinder_pI</option>
0477               <option value = "Pixel/Endcap/HalfCylinder_pO"> Endcap/HalfCylinder_pO</option>
0478               <option value = "Pixel/Endcap/HalfCylinder_pO/Disk_1/Blade_01/Panel_1"> Endcap/HalfCylinder_pO/Disk_2</option>
0479            </select>
0480            <p />
0481            <input name    = "listsummary"
0482               id      = "list_summary"
0483               class   = "controlButton"
0484               value   = "Get Tree"
0485               onClick = "RequestHistos.RequestSummaryHistoList()"
0486               type    = "submit">
0487            </input>
0488            <input name    = "clearSingleModuleViewTree"
0489               id      = "clearSingleModuleViewTree"
0490               class   = "controlButton"
0491               value   = "Clear selection"
0492               onClick = "javascript:IMGC.clearSelection()"
0493               type    = "submit">
0494            </input>
0495          </div>
0496          <p />
0497          <div class = "bloc" 
0498               id    = "tree_list" 
0499               style = "overflow:scroll;height:300px;width:100%;background:#FFF;">
0500          </div>
0501         </div>
0502        </div>
0503 
0504        <div class = "dhtmlgoodies_aTab">
0505         <div class = "bloc" 
0506            id    = "bloc2_7">
0507          <div class = "bloc" 
0508             id    = "bloc2_7_1">
0509           <label id    = "alarm_structures"
0510                  class = "label">
0511            Sub-Detectors:
0512           </label>
0513           <select name  = "struc_alarm"
0514               id    = "structure_for_alarm"
0515               class = "selector">
0516              <option value = "Pixel"> ALL PIXELS          </option>
0517              <option value = "Pixel/Barrel" SELECTED> Barrel </option>
0518              <option value = "Pixel/Endcap"> Endcap   </option>
0519           </select> 
0520           <p />
0521           <input name    = "listalarm"
0522              id  = "read_alarm"
0523              class   = "controlButton"
0524              value   = "Get Alarms"
0525              onClick = "RequestHistos.RequestAlarmList()"
0526              type    = "submit">
0527           </input>
0528           <input name    = "clearAlarmViewTree"
0529              id  = "clearAlarmViewTree"
0530              class   = "controlButton"
0531              value   = "Clear selection"
0532              onClick = "javascript:IMGC.clearSelection()"
0533              type    = "submit">
0534           </input>
0535          </div>
0536          <p />
0537          <div class = "bloc" 
0538               id    = "alarm_list" 
0539               style = "overflow:scroll;height:200px;width:100%;background:#FFF;">
0540          </div>
0541          <div class = "block" 
0542               id    = "status_area" 
0543               style = "overflow:scroll;height:100px;width:100%;background:#FFF8C9">
0544          </div>
0545       </div>
0546      </div>
0547     </fieldset>
0548    </div>
0549   </form>
0550   
0551   <script type="text/javascript">
0552    initTabs('dhtmlgoodies_tabView1', Array('Summary Slides','TrackerMaps','Expert Actions'), 0, '99.5%','100%');
0553    initTabs('dhtmlgoodies_tabView2', Array('Single Module View','Summary View','Alarm View'), 0, '99.5%','100%');
0554   </script>
0555   
0556  </body>
0557  
0558 </html>