Revision 15 as of 2012-02-08 07:21:03

Clear message
Locked History Actions

ANAROOT/Manual

ANAROOT/UIコマンド

ANAROOT/UIコマンドについて、ここに記述します。 要望等は別スレッドで。

Commands for Analysis Management

・book: Register "analoop" and "anafile" to TArtAnaLoopManager. If you want to usr your own analoop class or not to use anafile, please contact to Tanaka@Tokyo Institute of Technology

void book(TArtAnaLoop* analoop, const char* anafilename = 0);
// ex. book(new TArtAnaLoopUser, "ana/user.ana");

・push: Push RIDF file to stack.

void push(const char* filename = 0, int eventnumber = -1);
// ex. push("ridf/run0001.ridf");

・pop: Pop RIDF file from stack

void pop(int i);
// ex. pop(1)

・start: Start analysis. Construct() of TArtAnaLoop will be called for the first time.

void start();
// ex. start();

・stop: Stop analysis. You can resume by start() command.

void stop();
// ex. stop();

・next: Skip remaining event of current RIDF file and go to next RIDF file.

void next();
// ex. next();

・end: End current analysis. Destruct() of TArtAnaLoop will be called.

void end();
// ex. end();

・clear: Clear all histograms and destruct TArtAnaLoopManager.

void clear();
// ex. clear();

・status: Print status of current Analysis.

void status();
// ex. status();

Commands for Histogram Management

・fetch: Read all TH1 object in file(filename) to current ROOT directory.

void fetch(char* filename);
// ex. fetch("root/hist.root");

・hstore: Write all TH1 object in current ROOT directory to file(filename)

void hstore(char* filename);
// ex. hstore("ridf/hist2.root");

・hdel: Delete TH1 objects in current ROOT directory.

void hdel(); // delete all
void hdel(int id); //delete by id
void hdel(int idstart, int idend); //delete hist between idstart and idend
// ex. hdel(2,4);

・ls: Show list of hist in current directory.

void ls();
// ex. ls();

・ht, htp, hn, hb: Move to next pad and ...

void ht(int id, Option_t* option = ""); // draw hist by id. You can use draw option like "same".
void ht(int idstart, int idend); // draw hist from idstart to idend.
void htp(); // draw current hist.
void hn(); // draw next hist.
void hb(); // draw previous hist.
// ex. hn(); ht(3,"same");

・hht, hhtp, hhn, hhb: Not Moving version of ht, htp, hn, hb.

(same as above command)

・lg, ln, lgx, lgy, lgz, lnx, lny, lnz: Set/Unset log scale

void lg(); //do lgx, lgy, and lgz
void ln(); //do lnx, lny, and lnz
void lgx(); //set xaxis of all pad to logscale
void lgy(); //set yaxis of all pad to logscale
void lgz(); //set zaxis of all pad to logscale
void lgx(Int_t subpadnumber); //set xaxis of pad at subpadnumber to logscale
void lgy(Int_t subpadnumber); //set xaxis of pad at subpadnumber to logscale
void lgz(Int_t subpadnumber); //set xaxis of pad at subpadnumber to logscale
void lnx(); //unset lgx of all pad
void lny(); //unset lgy of all pad
void lnz(); //unset lgz of all pad
void lnx(Int_t subpadnumber); //unset lgx of supadnumber
void lny(Int_t subpadnumber); //unset lgy of supadnumber
void lnz(Int_t subpadnumber); //unset lgz of supadnumber

・size: Change size of canvas.

void size(UInt_t ww, UInt_t wh);
// ex. size(600,600);

・cd, cdn, cdb: cd to...

void cd(Int_t subpadnumber = 0); // subpadnumber(0 is assigned to root canvas)
void cdn(); // next subpad
void cdb(); // previous subpad

・zone: Divide canvas(not gPad).

void zone(Int_t nx = 1, Int_t ny = 1, Float_t xmargin = 0.01, Float_t ymargin = 0.01, Int_t color = 0);

・xval(gui), yval(gui), xyval(gui): Print values where you click.

Double_t xval(); // only x-axis value
Double_t yval(); // only y-axis value
void xyval(); // both x- and y-axis value

・zoom, zoom(gui), unzoom: zoom and unzoom

void zoom(double firstx, double lastx, double firsty = 0, double lasty = -1, double firstz = 0, double lastz = -1);
void zoom();
void unzoom();

・hsta: Print status of current hist.

void hsta();

・xsta(gui): Status of selected reigon

void xsta();

・cpro(gui): Cut out selected region of TH2

void cpro();

・wait: Press ENTER to continue. Use in your macros.

void wait();

・fit, fitp, fite, fitg, fitl, figa, xfitp(gui), xfite(gui), xfitg(gui), xfitl(gui): Fit(p:polynomial, e:exponential g:gaussian, l:lorentzian). General fit can be done by fit(). You can access to fitting result via TFitResultPtr.

TFitResultPtr fit(const char* formula, Option_t* option = "S", Option_t* goption = "", Double_t xmin = 0, Double_t xmax = 0);
TFitResultPtr fitp(int n = 1, Double_t xmin = 0, Double_t xmax = 0, Option_t* option = "S", Option_t* goption = "");
TFitResultPtr fite(Double_t xmin = 0,  Double_t xmax = 0, Option_t* option = "S", Option_t* goption = "");
TFitResultPtr fitg(Double_t xmin = 0,  Double_t xmax = 0, Option_t* option = "S", Option_t* goption = "");
TFitResultPtr fitl(Double_t xmin = 0,  Double_t xmax = 0, Option_t* option = "S", Option_t* goption = "");
void figa(); // auto fit by gaussian.

TFitResultPtr xfitp(int n = 1);
TFitResultPtr xfite();
TFitResultPtr xfitg();
TFitResultPtr xfitl();

・blow(gui), void blow();//same as xyblow of anapaw