39 Long_t i_this = (Long_t)
this;
56 Bool_t FileHere = kFALSE;
70 if (NbFileHere == 3) {
90 Bool_t FileHere = kFALSE;
98 if (argFileName ==
"") {
99 std::string cFileNameForCnaPaths =
"ECNA/path_results_root";
100 TString s_file_name = cFileNameForCnaPaths.c_str();
101 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
103 TString s_path_name = gSystem->Getenv(
"HOME");
127 <<
" ***************************************************************************************** " 133 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" 135 <<
" and create a file named path_results_root in the subdirectory ECNA." << std::endl
138 <<
" for ECNA and must contain one line with the following syntax:" << std::endl
140 <<
" PATH_FOR_THE_RESULTS_ROOT_FILE (without slash at the end of line)" << std::endl
141 <<
" ================================" << std::endl
143 <<
" Example: $HOME/scratch0/ecna/results_root" << std::endl
145 <<
" ***************************************************************************************** " 165 Bool_t FileHere = kFALSE;
174 if (argFileName ==
"") {
175 std::string cFileNameForCnaPaths =
"ECNA/path_results_ascii";
176 TString s_file_name = cFileNameForCnaPaths.c_str();
177 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
179 TString s_path_name = gSystem->Getenv(
"HOME");
202 <<
" ***************************************************************************************** " 208 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" 210 <<
" and create a file named path_results_ascii in the subdirectory ECNA." << std::endl
213 <<
" for ECNA and must contain one line with the following syntax:" << std::endl
215 <<
" PATH_FOR_THE_RESULTS_ASCII_FILE (without slash at the end of line)" << std::endl
216 <<
" ================================" << std::endl
218 <<
" Example: $HOME/scratch0/ecna/results_ascii" << std::endl
220 <<
" ***************************************************************************************** " 240 Bool_t FileHere = kFALSE;
249 if (argFileName ==
"") {
250 std::string cFileNameForCnaPaths =
"ECNA/path_runlist_history_plots";
251 TString s_file_name = cFileNameForCnaPaths.c_str();
252 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
254 TString s_path_name = gSystem->Getenv(
"HOME");
278 <<
" ******************************************************************************************************** " 281 <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << std::endl
285 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << std::endl
286 <<
" and create a file named path_runlist_history_plots in the subdirectory ECNA." << std::endl
289 <<
" for ECNA and must contain one line with the following syntax:" << std::endl
291 <<
" PATH_FOR_THE_LIST_OF_RUNS_FOR_HISTORY_PLOTS_FILE (without slash at the end of line)" << std::endl
292 <<
" ================================" << std::endl
294 <<
" Example: $HOME/scratch0/ecna/runlist_history_plots" << std::endl
296 <<
" ******************************************************************************************************** " 323 char *ch_cmssw_base = std::getenv(
"CMSSW_BASE");
324 if (ch_cmssw_base ==
nullptr) {
325 std::cout <<
"*TEcnaParPaths::GetCMSSWParameters()> CMSSW_BASE not defined." 326 <<
" Please, set up the environment (command: eval `scramv1 runtime -csh`)" <<
fTTBELL << std::endl;
333 char *ch_scram_arch = std::getenv(
"SCRAM_ARCH");
334 if (ch_scram_arch ==
nullptr) {
335 std::cout <<
"*TEcnaParPaths::GetCMSSWParameters()> SCRAM_ARCH not defined." 336 <<
" Please, set up the environment (command: eval `scramv1 runtime -csh`)" <<
fTTBELL << std::endl;
362 TString ModulesdataPath =
"";
364 const Text_t *t_cmssw_base = (
const Text_t *)
CMSSWBase().Data();
365 ModulesdataPath.Append(t_cmssw_base);
366 ModulesdataPath.Append(
'/');
368 TString s_src =
"src";
369 const Text_t *t_src = (
const Text_t *)s_src.Data();
370 ModulesdataPath.Append(t_src);
371 ModulesdataPath.Append(
'/');
373 const Text_t *t_cmssw_subsystem = (
const Text_t *)
CMSSWSubsystem().Data();
374 ModulesdataPath.Append(t_cmssw_subsystem);
375 ModulesdataPath.Append(
'/');
377 TString s_package_data_path =
"EcalCorrelatedNoiseAnalysisModules/data";
378 const Text_t *t_package_data_path = (
const Text_t *)s_package_data_path.Data();
379 ModulesdataPath.Append(t_package_data_path);
380 ModulesdataPath.Append(
'/');
383 return ModulesdataPath;
388 TString TestslcPath =
"";
390 const Text_t *t_cmssw_base = (
const Text_t *)
CMSSWBase().Data();
391 TestslcPath.Append(t_cmssw_base);
392 TestslcPath.Append(
'/');
394 TString s_test =
"test";
395 const Text_t *t_test = (
const Text_t *)s_test.Data();
396 TestslcPath.Append(t_test);
397 TestslcPath.Append(
'/');
399 const Text_t *t_cmssw_arch = (
const Text_t *)
SCRAMArch().Data();
400 TestslcPath.Append(t_cmssw_arch);
401 TestslcPath.Append(
'/');
424 TString sBegin =
"?";
432 TString sBegin =
"?";
void GetCMSSWParameters()
~TEcnaParPaths() override
Bool_t GetPathForHistoryRunListFiles()
void SetHistoryRunListFilePath(const TString &)
TString BeginningOfResultsRootFilePath()
void AppendResultsAsciiFilePath(const Text_t *)
Bool_t RegisterPointer(const TString &, const Long_t &)
const TString & ResultsAsciiFilePath() const
TString fCfgResultsAsciiFilePath
const TString & CMSSWSubsystem() const
TString fCfgResultsRootFilePath
const TString & HistoryRunListFilePath() const
const TString & CMSSWBase() const
void SetResultsRootFilePath(const TString &)
TString BeginningOfResultsAsciiFilePath()
TString PathModulesData()
Bool_t GetPathForResultsRootFiles()
TString fCfgHistoryRunListFilePath
const TString & SCRAMArch() const
TString fFileForHistoryRunListFilePath
TString fFileForResultsAsciiFilePath
void TruncateResultsRootFilePath(const Int_t &, const Int_t &)
TString fCfgCMSSWSubsystem
void TruncateResultsAsciiFilePath(const Int_t &, const Int_t &)
void AppendResultsRootFilePath(const Text_t *)
Bool_t GetPathForResultsAsciiFiles()
TString fFileForResultsRootFilePath
const TString & ResultsRootFilePath() const
void SetResultsAsciiFilePath(const TString &)
TString PathTestScramArch()