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");
Edit conflict - other version:
・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
Edit conflict - your version:
・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); //cd to subpadnumber(0 is assigned to root canvas) void cdn(); //cd to next subpad void cdb(); //cd to 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);
End of edit conflict