42 Long_t i_this = (Long_t)
this;
61 Bool_t FileHere = kFALSE;
69 if( NbFileHere == 3 ){FileHere = kTRUE;}
91 Bool_t FileHere = kFALSE;
100 if ( argFileName ==
"" )
102 string cFileNameForCnaPaths =
"ECNA/path_results_root";
103 TString s_file_name = cFileNameForCnaPaths.c_str();
104 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
106 TString s_path_name = gSystem->Getenv(
"HOME");
123 string xResultsFileP;
134 <<
" ***************************************************************************************** " << endl;
135 cout <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << endl << endl
137 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
138 <<
" and create a file named path_results_root in the subdirectory ECNA." << endl << endl
140 <<
" for ECNA and must contain one line with the following syntax:" << endl << endl
141 <<
" PATH_FOR_THE_RESULTS_ROOT_FILE (without slash at the end of line)" << endl
142 <<
" ================================"
144 <<
" Example: $HOME/scratch0/ecna/results_root" << endl << endl
145 <<
" ***************************************************************************************** "
169 Bool_t FileHere = kFALSE;
178 if ( argFileName ==
"" )
180 string cFileNameForCnaPaths =
"ECNA/path_results_ascii";
181 TString s_file_name = cFileNameForCnaPaths.c_str();
182 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
184 TString s_path_name = gSystem->Getenv(
"HOME");
201 string xResultsFileP;
212 <<
" ***************************************************************************************** " << endl;
213 cout <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << endl << endl
215 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
216 <<
" and create a file named path_results_ascii in the subdirectory ECNA." << endl << endl
218 <<
" for ECNA and must contain one line with the following syntax:" << endl << endl
219 <<
" PATH_FOR_THE_RESULTS_ASCII_FILE (without slash at the end of line)" << endl
220 <<
" ================================"
222 <<
" Example: $HOME/scratch0/ecna/results_ascii" << endl << endl
223 <<
" ***************************************************************************************** "
247 Bool_t FileHere = kFALSE;
256 if ( argFileName ==
"" )
258 string cFileNameForCnaPaths =
"ECNA/path_runlist_history_plots";
259 TString s_file_name = cFileNameForCnaPaths.c_str();
260 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
262 TString s_path_name = gSystem->Getenv(
"HOME");
279 string xHistoryRunListP;
290 <<
" ******************************************************************************************************** " << endl;
291 cout <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << endl << endl
293 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
294 <<
" and create a file named path_runlist_history_plots in the subdirectory ECNA." << endl << endl
296 <<
" for ECNA and must contain one line with the following syntax:" << endl << endl
297 <<
" PATH_FOR_THE_LIST_OF_RUNS_FOR_HISTORY_PLOTS_FILE (without slash at the end of line)" << endl
298 <<
" ================================"
300 <<
" Example: $HOME/scratch0/ecna/runlist_history_plots" << endl << endl
301 <<
" ******************************************************************************************************** "
329 char* ch_cmssw_base = getenv(
"CMSSW_BASE");
330 if( ch_cmssw_base == 0 )
332 cout <<
"*TEcnaParPaths::GetCMSSWParameters()> CMSSW_BASE not defined."
333 <<
" Please, set up the environment (command: eval `scramv1 runtime -csh`)"
343 char* ch_scram_arch = getenv(
"SCRAM_ARCH");
344 if( ch_scram_arch == 0 )
346 cout <<
"*TEcnaParPaths::GetCMSSWParameters()> SCRAM_ARCH not defined."
347 <<
" Please, set up the environment (command: eval `scramv1 runtime -csh`)"
377 TString ModulesdataPath =
"";
379 const Text_t *t_cmssw_base = (
const Text_t *)
CMSSWBase().Data();
380 ModulesdataPath.Append(t_cmssw_base);
381 ModulesdataPath.Append(
'/');
383 TString s_src =
"src";
384 const Text_t *t_src = (
const Text_t *)s_src.Data();
385 ModulesdataPath.Append(t_src);
386 ModulesdataPath.Append(
'/');
388 const Text_t *t_cmssw_subsystem = (
const Text_t *)
CMSSWSubsystem().Data();
389 ModulesdataPath.Append(t_cmssw_subsystem);
390 ModulesdataPath.Append(
'/');
392 TString s_package_data_path =
"EcalCorrelatedNoiseAnalysisModules/data";
393 const Text_t *t_package_data_path = (
const Text_t *)s_package_data_path.Data();
394 ModulesdataPath.Append(t_package_data_path);
395 ModulesdataPath.Append(
'/');
398 return ModulesdataPath;
404 TString TestslcPath =
"";
406 const Text_t *t_cmssw_base = (
const Text_t *)
CMSSWBase().Data();
407 TestslcPath.Append(t_cmssw_base);
408 TestslcPath.Append(
'/');
410 TString s_test =
"test";
411 const Text_t *t_test = (
const Text_t *)s_test.Data();
412 TestslcPath.Append(t_test);
413 TestslcPath.Append(
'/');
415 const Text_t *t_cmssw_arch = (
const Text_t *)
SCRAMArch().Data();
416 TestslcPath.Append(t_cmssw_arch);
417 TestslcPath.Append(
'/');
438 {TString sBegin =
"?";
443 {TString sBegin =
"?";
void GetCMSSWParameters()
Bool_t GetPathForHistoryRunListFiles()
TString HistoryRunListFilePath()
TString BeginningOfResultsRootFilePath()
void AppendResultsAsciiFilePath(const Text_t *)
TString fCfgResultsAsciiFilePath
TString fCfgResultsRootFilePath
void SetResultsRootFilePath(const TString)
TString BeginningOfResultsAsciiFilePath()
TString PathModulesData()
Bool_t GetPathForResultsRootFiles()
void SetResultsAsciiFilePath(const TString)
Bool_t RegisterPointer(const TString, const Long_t &)
TString fCfgHistoryRunListFilePath
TString fFileForHistoryRunListFilePath
TString fFileForResultsAsciiFilePath
void TruncateResultsRootFilePath(const Int_t &, const Int_t &)
TString fCfgCMSSWSubsystem
TString ResultsRootFilePath()
void TruncateResultsAsciiFilePath(const Int_t &, const Int_t &)
void SetHistoryRunListFilePath(const TString)
void AppendResultsRootFilePath(const Text_t *)
Bool_t GetPathForResultsAsciiFiles()
TString ResultsAsciiFilePath()
TString fFileForResultsRootFilePath
TString PathTestScramArch()