Git Product home page Git Product logo

kpp-monitoring's Introduction

KPP-monitoring

CLAS12 monitoring plots GUI

Using sub-tabs

Each detector monitor has 1 sub-tab by default. To add additional sub-tabs, see DCmonitor.java as an example. In particular, notice that the sub-tabs are added in the constructor:

    public DCmonitor(String name) {
        super(name);
        
        this.getDetectorCanvas().addCanvas("canvas2");
        this.init();
    }

And properties are set in the createHistos() method:

    @Override
    public void createHistos() {
        // initialize canvas and create histograms
        this.setNumberOfEvents(0);
        this.getDetectorCanvas().getCanvas("canvas1").divide(2, 3);
        this.getDetectorCanvas().getCanvas("canvas1").setGridX(false);
        this.getDetectorCanvas().getCanvas("canvas1").setGridY(false);
        this.getDetectorCanvas().getCanvas("canvas2").divide(2, 3);
        this.getDetectorCanvas().getCanvas("canvas2").setGridX(false);
        this.getDetectorCanvas().getCanvas("canvas2").setGridY(false);
        ...
        ...
        for(int sector=1; sector <=6; sector++) {
            this.getDetectorCanvas().getCanvas("canvas1").cd(sector-1);
            this.getDetectorCanvas().getCanvas("canvas1").draw(this.getDataGroup().getItem(sector,0,0).getH2F("occ"));
            this.getDetectorCanvas().getCanvas("canvas2").cd(sector-1);
            this.getDetectorCanvas().getCanvas("canvas2").draw(this.getDataGroup().getItem(sector,0,0).getH2F("raw"));
        }
        this.getDetectorCanvas().getCanvas("canvas1").update();
        this.getDetectorCanvas().getCanvas("canvas2").update();

and an @Override setCanvasUpdate(int time) method as been added:

    @Override
    public void setCanvasUpdate(int time) {
        this.getDetectorCanvas().getCanvas("canvas1").initTimer(time);
        this.getDetectorCanvas().getCanvas("canvas2").initTimer(time);
    }

kpp-monitoring's People

Contributors

raffaelladevita avatar naharrison avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.