archive-org.com » ORG » F » FREEHEP.ORG

Total: 883

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • hep.io.root (FreeHEP API Specification, Version current)
    Summary RootClass An interface representing a RootClass RootMember Represents a single member of a RootClass RootObject A representation of a RootObject Class Summary RootFileReader A class for reading root files Exception Summary RootClassNotFound Exception thrown if a definition of a Root class can not be found Package hep io root Description Classes for opening and reading a Root file For more information see the hep io root overview page Status

    Original URL path: http://java.freehep.org/lib/freehep/api/hep/io/root/package-summary.html (2016-02-10)
    Open archived version from archive


  • The Root DIM for JAS
    The first step is to load the Root plugin which extends the functionality of JAS Choose Job Load Plugin and type jasext root RootPlugin followed by OK Once you have done this a new menu item should appear in the Menu bar labeled Root Note in the forthcoming release of JAS this will happen automatically when you open a Root file Using the new menu choose Root Show Event Browser An Event Browser window should appear Now you can use the JAS Job Step command or the toolbar button to step through events Each event in turn will appear in the Event Browser Writing Some Analysis Code To do some more useful analysis you will need to write some Java code Before you can do this you must generate Java Interfaces for the user defined objects stored in the root file Choose Root Generate Java Interfaces and select a directory where you would like the generated interfaces to be stored After selecting a suitable directory press the Generate button Assuming all went well you can then press the Close button to close the dialog The Java interfaces in this case Event java EventHeader java and Track java will be created By default these interfaces will also be opened in the JAS editor so you can look at the generated interfaces Before proceeding you must tell JAS where you stored the interfaces Choose View Options Class Path and add the directory where you stored the files to the CLASSPATH Again this will be automated in a future version of JAS Now we are ready to write a simple analysis program To do this select File New Blank Program Page and type or cut and paste the following code import hep analysis import jasext root import hep io root interfaces import java util final public class MyRootAnalysis extends EventAnalyzer public MyRootAnalysis RootEventSource setClassLoader this public void processEvent final EventData d RootEvent re RootEvent d Event e Event re getObject 0 Make a histogram of the event date histogram Event Number fill e getEvtHdr getEvtNum histogram NTracks fill e getNtrack Some notes about this program The processEvent method gets passed each event in turn as you run through the data Since you are analyzing Root data you will in fact get passed a RootEvent object The RootEvent object allows you to access each branch of the TTree In this example we know that the first branch in the TTree branch 0 is the event branch We can thus get the entry for this branch from the RootEvent and cast it to an Event Now we have an Event we can access any members and histogram them using the JAS histogramming facilities Before you can compile the code you must save it use File Save As Java requires that the name of the file be MyRootAnalysis java since the class is called MyRootAnalysis and that you store this file in the same directory as the Java Interfaces generated above Once you have saved the

    Original URL path: http://java.freehep.org/lib/freehep/doc/root/rootjas.html (2016-02-10)
    Open archived version from archive

  • Viewing Root Histograms with the JAS Plot Widget
    easy to improve it volunteers are welcome import hep io root import hep io root interfaces import java io IOException import jas hist import jasext root RootHistogramAdapter import javax swing import java awt BorderLayout An example of using the JASHist widget with Root Histograms author tonyj slac stanford edu public class RootWithJAS extends JPanel Creates new RootWithJas private RootWithJAS throws IOException RootFileReader rfr new RootFileReader Example root TH1 main TH1

    Original URL path: http://java.freehep.org/lib/freehep/doc/root/RootWithJAS.html (2016-02-10)
    Open archived version from archive

  • hep.io.root.interfaces (FreeHEP API Specification, Version current)
    TAttLine TAttMarker TAxis TBasket TBranch TBranchClones TBranchElement TBranchObject TClonesArray TCollection TDatime TDirectory TFile TGraph TH1 TH1D TH1F TH2 TH2D TH2F TKey TLeaf TLeafB TLeafC TLeafD TLeafElement TLeafF TLeafI TLeafObject TLeafS TList TMap TNamed TObjArray TObject TProfile TSeqCollection TStreamerBase TStreamerBasicPointer TStreamerBasicType TStreamerElement TStreamerInfo TStreamerLoop TStreamerObject TStreamerObjectAny TStreamerObjectPointer TStreamerString TString TTree Package hep io root interfaces Description Public interfaces implemented by objects read from a Root file All objects will implement the

    Original URL path: http://java.freehep.org/lib/freehep/api/hep/io/root/interfaces/package-summary.html (2016-02-10)
    Open archived version from archive

  • hep.io.root.util (FreeHEP API Specification, Version current)
    TreeModel allowing any directory structure to be dislayed by a Swing JTree RootHistogramBrowser A simple application for browsing histograms in Root Files RootObjectBrowser A simple application for browsing the contents of Root Files RootObjectTreeCellRenderer A TreeCellRenderer for use with RootObjectTreeModel RootObjectTreeModel An adaptor which converts a RootObject to a TreeModel StreamerInfoTreeCellRenderer A TreeCellRenderer for StreamerInfo objects StreamerInfoTreeModel A tree model for viewing StreamerInfo in a root file Package hep io

    Original URL path: http://java.freehep.org/lib/freehep/api/hep/io/root/util/package-summary.html (2016-02-10)
    Open archived version from archive

  • Root IO Package
    The hep io root Package Implementation Implementation notes are not yet available

    Original URL path: http://java.freehep.org/lib/freehep/doc/root/implementation.htm (2016-02-10)
    Open archived version from archive

  • VectorGraphics - Overview
    to export to a variety of vector graphics formats as well as bitmap image formats Among the vector formats are PostScript PDF EMF SVF SWF and CGM while the image formats include GIF PNG JPG and PPM The package uses the standard java awt Graphics2D class as its interface to the user program Coupling this package to a standard Java program is therefore quite easy It also comes with a

    Original URL path: http://java.freehep.org/freehep1.x/vectorgraphics/index.printable.html (2016-02-10)
    Open archived version from archive

  • VectorGraphics - News
    2 2 released Java2D export to PDF Postscript SVG EMF shockwave etc The VectorGraphics package of FreeHEP Java Library enables any Java program to export to a variety of vector graphics formats as well as bitmap image formats Among the vector formats are PostScript PDF EMF SVF SWF and CGM while the image formats include GIF PNG JPG and PPM The package uses the standard java awt Graphics2D class as its interface to the user program Coupling this package to a standard Java program is therefore quite easy and particularly suitable for exporting graphs charts scientific visualization etc to vector graphics formats It comes with a dialog box which allows you to choose between all the formats mentioned above and set specific parameters for them VectorGraphics can easily be extended for other graphics output formats Any reasonable extension can be hosted by FreeHEP Available under the LGPL license The FreeHEP Team nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp

    Original URL path: http://java.freehep.org/freehep1.x/vectorgraphics/News.html (2016-02-10)
    Open archived version from archive



  •