[HepData-svn] r1588 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Oct 22 17:02:48 BST 2012


Author: whalley
Date: Mon Oct 22 17:02:47 2012
New Revision: 1588

Log:
modifications to handling of lone statistcial errors

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Mon Oct 22 16:20:06 2012	(r1587)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Mon Oct 22 17:02:47 2012	(r1588)
@@ -251,13 +251,14 @@
                                  }
                                 
                                 if(nerr == 1) {
-                                    if(err.isSymmetric()){ 
-//                                        s.append(" +- " + err.getPlus() + norm); 
-                                        s.append(" +- " + f_plus + norm); 
+                                    
+                                    if(err.isSymmetric()){
+                                        if(err.getSourceType().toString().equals("statistical")){ s.append(" (STAT=" + f_plus + norm+")");} 
+                                        else{ s.append(" +- " + f_plus + norm);} 
                                     }
                                     else{
-//                                        s.append(" +" + err.getPlus() + norm + ",-" + err.getMinus() + norm);
-                                        s.append(" +" + f_plus + norm + ",-" + f_minus + norm);
+                                        if(err.getSourceType().toString().equals("statistical")){ s.append(" (STAT=+" + f_plus + norm + ",-" + f_minus + norm+")");} 
+                                        else { s.append(" +" + f_plus + norm + ",-" + f_minus + norm);}
                                     }
                                 }
                                 else if(nerr == 2) { 


More information about the HepData-svn mailing list