6 TB.
checkFile(gSystem->Getenv(
"CWB_ROOTLOGON_FILE"));
9 if(gSystem->Getenv(
"CWB_DUMP_HIST_FILE_NAME")==NULL) {
10 cout <<
"Error : environment CWB_DUMP_HIST_FILE_NAME is not defined!!!" << endl;
exit(1);
12 cwb_dump_hist_file_name=
TString(gSystem->Getenv(
"CWB_DUMP_HIST_FILE_NAME"));
14 if(cwb_dump_hist_file_name.Contains(
".root")==0) {
15 cout <<
"Error : " << cwb_dump_hist_file_name.Data() <<
" is not a root file!!!" << endl;
exit(1);
19 if(gSystem->Getenv(
"CWB_DUMP_HIST_MODE")!=NULL) {
20 cwb_dump_hist_mode=
TString(gSystem->Getenv(
"CWB_DUMP_HIST_MODE"));
23 TFile *
ifile = TFile::Open(cwb_dump_hist_file_name);
24 if(ifile==NULL) {cout <<
"Failed to open " << cwb_dump_hist_file_name.Data() << endl;
exit(-1);}
28 cout <<
"Error : history is not present!!!" << endl;
exit(1);
36 for(
int i=0;
i<stageList->GetSize();
i++) {
37 TObjString* stageObjString = (TObjString*)stageList->At(
i);
38 TString stageName = stageObjString->GetString();
40 bool isProcessingStage=
false;
44 if(!isProcessingStage)
continue;
45 char* stage =
const_cast<char*
>(stageName.Data());
54 if((cwb_dump_hist_mode==
"view")||(cwb_dump_hist_mode==
"dump")) {
56 TString label = (cwb_dump_hist_mode==
"dump") ?
"config" :
"view";
62 sprintf(configFile,
"%s/%s_%s",odir.Data(),label.Data(),
63 TString(((TObjString*)token->At(token->GetEntries()-1))->GetString()).
ReplaceAll(
".root",
".C").Data());
67 if (!out.good()) {cout <<
"Error Opening File : " << configFile << endl;
exit(1);}
71 if(cwb_dump_hist_mode==
"view") {
73 sprintf(cmd,
"vim %s",configFile);
76 sprintf(cmd,
"rm %s",configFile);
80 cout <<
"Write : " << configFile << endl;
84 cout << endl <<
"Config MD5 : " << config_md5.Data() << endl << endl;
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
static TString GetStageString(CWB_STAGE jstage)
TString cwb_dump_hist_mode
static int GetStageSize()
condor_log_dir ReplaceAll("X_HOME", uhome.Data())
TString cwb_dump_hist_file_name
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
char * GetHistory(char *StageName, char *Type)