#include <QwRunCondition.h>
Definition at line 21 of file QwRunCondition.h.
QwRunCondition::QwRunCondition |
( |
| ) |
|
|
inline |
QwRunCondition::QwRunCondition |
( |
Int_t |
argc, |
|
|
Char_t * |
argv[], |
|
|
TString |
name |
|
) |
| |
QwRunCondition::~QwRunCondition |
( |
| ) |
|
|
virtual |
void QwRunCondition::Add |
( |
TString |
in | ) |
|
|
private |
TList * QwRunCondition::Get |
( |
| ) |
|
TString QwRunCondition::GetName |
( |
| ) |
|
TString QwRunCondition::GetROCFlags |
( |
| ) |
|
|
private |
Definition at line 157 of file QwRunCondition.cc.
References fROCFlagFileName.
Referenced by SetArgs().
160 Bool_t local_debug =
false;
163 std::ifstream flag_file;
170 if(not flag_file.is_open()) {
171 std::cout <<
"There is no flag file, which you try to access "
175 flags +=
" is not found";
179 while (not flag_file.eof() )
182 line.ReadLine(flag_file);
183 if(not line.IsNull()) {
185 std::cout << line << std::endl;
187 if(not line.Contains(
";")) {
void QwRunCondition::SetArgs |
( |
Int_t |
argc, |
|
|
Char_t * |
argv[] |
|
) |
| |
|
private |
Definition at line 33 of file QwRunCondition.cc.
References Add(), fCharLength, GetROCFlags(), QWANA_SVN_LASTCHANGEDREVISION, QWANA_SVN_REVISION, and QWANA_SVN_URL.
Referenced by QwRunCondition().
38 TString root_version = gROOT->GetVersion();
39 root_version +=
", Date : ";
40 root_version += gROOT->GetVersionDate();
41 #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
42 root_version +=
", SVN : ";
43 root_version += gROOT->GetSvnRevision();
45 root_version += gROOT->GetSvnBranch();
46 #else // ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
47 root_version +=
", GIT : ";
48 root_version += gROOT->GetGitCommit();
50 root_version += gROOT->GetGitBranch();
60 TString host_name = host_string;
61 TString user_name = user_string;
64 TString program_name = argv[0];
66 for (Int_t i=1; i<argc; i++) argv_list += argv[i];
69 TTimeStamp time_stamp;
70 TString current_time = time_stamp.AsString(
"l");
76 TString svn_lc_revision;
84 if( (host_name.Contains(
"cdaql")) and (not user_name.CompareTo(
"cdaq", TString::kExact)) ) {
88 roc_flags =
"Invalid, because the system is not cdaqlx and the user is not cdaq.";
93 root_version.Insert (0,
"ROOT Version : ");
94 current_time.Insert (0,
"ROOT file creating time : ");
95 host_name.Insert (0,
"ROOT file created on Hostname : ");
96 user_name.Insert (0,
"ROOT file created by the user : ");
98 program_name.Insert (0,
"QwAnalyzer Name : ");
99 argv_list.Insert (0,
"QwAnalyzer Options : ");
100 svn_revision.Insert (0,
"QwAnalyzer SVN Revision : ");
101 svn_url.Insert (0,
"QwAnalyzer SVN URL : ");
102 svn_lc_revision.Insert(0,
"QwAnalyzer SVN Last Changed Revision : ");
104 roc_flags.Insert (0,
"DAQ ROC flags when QwAnalyzer runs : ");
108 this ->
Add(root_version);
109 this ->
Add(program_name);
110 this ->
Add(host_name);
111 this ->
Add(user_name);
112 this ->
Add(argv_list);
113 this ->
Add(current_time);
114 this ->
Add(svn_revision);
115 this ->
Add(svn_url);
116 this ->
Add(svn_lc_revision);
117 this ->
Add(roc_flags);
#define QWANA_SVN_REVISION
#define QWANA_SVN_LASTCHANGEDREVISION
static const Int_t fCharLength
void QwRunCondition::SetName |
( |
const TString |
name | ) |
|
|
private |
void QwRunCondition::SetROCFlagsFileName |
( |
const TString |
in | ) |
|
|
inline |
const Int_t QwRunCondition::fCharLength = 127 |
|
staticprivate |
TString QwRunCondition::fROCFlagFileName |
|
private |
TList* QwRunCondition::fRunConditionList |
|
private |
The documentation for this class was generated from the following files: