41 TString root_version = gROOT->GetVersion();
42 root_version +=
", Date : ";
43 root_version += gROOT->GetVersionDate();
44#if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
45 root_version +=
", SVN : ";
46 root_version += gROOT->GetSvnRevision();
48 root_version += gROOT->GetSvnBranch();
50 root_version +=
", GIT : ";
51 root_version += gROOT->GetGitCommit();
53 root_version += gROOT->GetGitBranch();
63 TString host_name = host_string;
64 TString user_name = user_string;
67 TString QwVersion = Form(
"%d.%d.%d",QWANALYSIS_VERSION_MAJOR, QWANALYSIS_VERSION_MINOR, QWANALYSIS_VERSION_PATCH);
68 TString program_name = argv[0];
70 for (Int_t i=1; i<argc; i++) argv_list += argv[i];
73 TTimeStamp time_stamp;
74 TString current_time = time_stamp.AsString(
"l");
79 if( (host_name.Contains(
"cdaql")) and (not user_name.CompareTo(
"cdaq", TString::kExact)) ) {
83 roc_flags =
"Invalid, because the system is not cdaqlx and the user is not cdaq.";
87 root_version.Insert (0,
"ROOT Version : ");
88 current_time.Insert (0,
"ROOT file creating time : ");
89 host_name.Insert (0,
"ROOT file created on Hostname : ");
90 user_name.Insert (0,
"ROOT file created by the user : ");
92 program_name.Insert (0,
"QwAnalyzer Name : ");
93 QwVersion.Insert (0,
"Version : ");
94 argv_list.Insert (0,
"QwAnalyzer Options : ");
96 roc_flags.Insert (0,
"DAQ ROC flags when QwAnalyzer runs : ");
100 this ->
Add(root_version);
101 this ->
Add(program_name);
102 this ->
Add(QwVersion);
103 this ->
Add(host_name);
104 this ->
Add(user_name);
105 this ->
Add(argv_list);
106 this ->
Add(current_time);
108 this ->
Add(roc_flags);