// // CaloMATRA.cc -- standalone program to call the CaloMATRA macro. // by Emiliano Mocchiutti // // Version 1.00 (2005/08/16) // // Changelog: // // 0.00 - 1.00 : working. // #include #include extern void CaloMATRA(TString, int, int, TString, TString, TString); extern void info(); using namespace std; // int main(int numinp, char *inps[]){ TString name; TString tyhist; TString outdir; TString format; int from; int to; if ( numinp != 7 ){ if ( numinp > 1 ){ if ( !strcmp(inps[1],"--version") ){ info(); return(0); }; }; printf("\nUsage:\n\n CaloMATRA file from to plot_format output_directory figure_format \n"); printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n"); printf( " - from from event (progressive number), 0 = all \n"); printf( " - to to event (progressive number), 0 = all \n"); printf( " - plot_format can be box or lego \n"); printf( " - output_directory where to store figures \n"); printf( " - figure format any format recognized by ROOT (eps,gif,...)\n"); printf("\nExample: \n\nCaloMATRA /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 box /tmp/ eps \n\n"); return(0); // } else { printf("\n Welcome to CaloMATRA! \n"); name = (TString)inps[1]; from = atoi(inps[2]); to = atoi(inps[3]); tyhist = (TString)inps[4]; outdir = (TString)inps[5]; format = (TString)inps[6]; }; // CaloMATRA(name,from,to,tyhist,outdir,format); // return(0); }