hep.aida.ref
Class AidaUtils

java.lang.Object
  extended by hep.aida.ref.AidaUtils

public abstract class AidaUtils
extends Object


Constructor Summary
AidaUtils()
           
 
Method Summary
static String createOptionsString(Map options)
           
static void fillPath(hep.aida.ITree tree, hep.aida.IManagedObject mo)
           
static int findInArray(String string, String[] array)
           
static boolean isPathInDir(String dir, String path)
           
static String modifyName(String name)
           
static String parseDirName(String pathString)
           
static String parseName(String pathString)
           
static Map parseOptions(String options)
          Parse AIDA options.
static String[] parseString(String options)
           
static double roundDown(double x, int order)
          Round number down (closer to Negative Infinity): "order" defines which significant digit is rounded, order >= 0 roundDown(234.5, 0) -> 200.0 roundDown(234.5, 1) -> 230.0 roundDown(234.5, 2) -> 234.0
static double roundUp(double x, int order)
          Round number up (closer to Positive Infinity), "order" defines which significant digit is rounded, order >= 0 roundUp(234.5, 0) -> 300.0 roundUp(234.5, 1) -> 240.0 roundUp(234.5, 2) -> 235.0
static String[] stringToArray(String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AidaUtils

public AidaUtils()
Method Detail

fillPath

public static void fillPath(hep.aida.ITree tree,
                            hep.aida.IManagedObject mo)

parseOptions

public static Map parseOptions(String options)
Parse AIDA options. Accepts values of the form:
 a=b;c=d
 a="Some Options",c="My , Funny Value"
 testCase     (equivalent to testCase=true)
 

Parameters:
options - The options string to be parsed
Returns:
A map containing all the found options
Throws:
IllegalArgumentException - if the options string is invalid

createOptionsString

public static String createOptionsString(Map options)

parseString

public static String[] parseString(String options)

stringToArray

public static String[] stringToArray(String path)

modifyName

public static String modifyName(String name)

parseName

public static String parseName(String pathString)

parseDirName

public static String parseDirName(String pathString)

findInArray

public static int findInArray(String string,
                              String[] array)

isPathInDir

public static boolean isPathInDir(String dir,
                                  String path)

roundDown

public static double roundDown(double x,
                               int order)
Round number down (closer to Negative Infinity): "order" defines which significant digit is rounded, order >= 0 roundDown(234.5, 0) -> 200.0 roundDown(234.5, 1) -> 230.0 roundDown(234.5, 2) -> 234.0


roundUp

public static double roundUp(double x,
                             int order)
Round number up (closer to Positive Infinity), "order" defines which significant digit is rounded, order >= 0 roundUp(234.5, 0) -> 300.0 roundUp(234.5, 1) -> 240.0 roundUp(234.5, 2) -> 235.0



jHepWork 3.0 ©