42 Long_t i_this = (Long_t)
this;
62 Bool_t FileHere = kFALSE;
70 if( NbFileHere == 3 ){FileHere = kTRUE;}
92 Bool_t FileHere = kFALSE;
100 if ( argFileName ==
"" )
102 std::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");
135 <<
" ***************************************************************************************** " << std::endl;
136 std::cout <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << std::endl << std::endl
138 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << std::endl
139 <<
" and create a file named path_results_root in the subdirectory ECNA." << std::endl << std::endl
141 <<
" for ECNA and must contain one line with the following syntax:" << std::endl << std::endl
142 <<
" PATH_FOR_THE_RESULTS_ROOT_FILE (without slash at the end of line)" << std::endl
143 <<
" ================================"
144 << std::endl << std::endl
145 <<
" Example: $HOME/scratch0/ecna/results_root" << std::endl << std::endl
146 <<
" ***************************************************************************************** "
170 Bool_t FileHere = kFALSE;
179 if ( argFileName ==
"" )
181 std::string cFileNameForCnaPaths =
"ECNA/path_results_ascii";
182 TString s_file_name = cFileNameForCnaPaths.c_str();
183 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
185 TString s_path_name = gSystem->Getenv(
"HOME");
213 <<
" ***************************************************************************************** " << std::endl;
214 std::cout <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << std::endl << std::endl
216 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << std::endl
217 <<
" and create a file named path_results_ascii in the subdirectory ECNA." << std::endl << std::endl
219 <<
" for ECNA and must contain one line with the following syntax:" << std::endl << std::endl
220 <<
" PATH_FOR_THE_RESULTS_ASCII_FILE (without slash at the end of line)" << std::endl
221 <<
" ================================"
222 << std::endl << std::endl
223 <<
" Example: $HOME/scratch0/ecna/results_ascii" << std::endl << std::endl
224 <<
" ***************************************************************************************** "
248 Bool_t FileHere = kFALSE;
257 if ( argFileName ==
"" )
259 std::string cFileNameForCnaPaths =
"ECNA/path_runlist_history_plots";
260 TString s_file_name = cFileNameForCnaPaths.c_str();
261 const Text_t *t_file_name = (
const Text_t *)s_file_name.Data();
263 TString s_path_name = gSystem->Getenv(
"HOME");
291 <<
" ******************************************************************************************************** " << std::endl;
292 std::cout <<
" !CNA(TEcnaParPaths) (" <<
fCnaError <<
") *** ERROR *** " << std::endl << std::endl
294 <<
" Please create a subdirectory named ECNA in your HOME directory (if not already done)" << std::endl
295 <<
" and create a file named path_runlist_history_plots in the subdirectory ECNA." << std::endl << std::endl
297 <<
" for ECNA and must contain one line with the following syntax:" << std::endl << std::endl
298 <<
" PATH_FOR_THE_LIST_OF_RUNS_FOR_HISTORY_PLOTS_FILE (without slash at the end of line)" << std::endl
299 <<
" ================================"
300 << std::endl << std::endl
301 <<
" Example: $HOME/scratch0/ecna/runlist_history_plots" << std::endl << std::endl
302 <<
" ******************************************************************************************************** "
330 char* ch_cmssw_base = getenv(
"CMSSW_BASE");
331 if( ch_cmssw_base == 0 )
333 std::cout <<
"*TEcnaParPaths::GetCMSSWParameters()> CMSSW_BASE not defined."
334 <<
" Please, set up the environment (command: eval `scramv1 runtime -csh`)"
344 char* ch_scram_arch = getenv(
"SCRAM_ARCH");
345 if( ch_scram_arch == 0 )
347 std::cout <<
"*TEcnaParPaths::GetCMSSWParameters()> SCRAM_ARCH not defined."
348 <<
" Please, set up the environment (command: eval `scramv1 runtime -csh`)"
378 TString ModulesdataPath =
"";
380 const Text_t *t_cmssw_base = (
const Text_t *)
CMSSWBase().Data();
381 ModulesdataPath.Append(t_cmssw_base);
382 ModulesdataPath.Append(
'/');
384 TString s_src =
"src";
385 const Text_t *t_src = (
const Text_t *)s_src.Data();
386 ModulesdataPath.Append(t_src);
387 ModulesdataPath.Append(
'/');
389 const Text_t *t_cmssw_subsystem = (
const Text_t *)
CMSSWSubsystem().Data();
390 ModulesdataPath.Append(t_cmssw_subsystem);
391 ModulesdataPath.Append(
'/');
393 TString s_package_data_path =
"EcalCorrelatedNoiseAnalysisModules/data";
394 const Text_t *t_package_data_path = (
const Text_t *)s_package_data_path.Data();
395 ModulesdataPath.Append(t_package_data_path);
396 ModulesdataPath.Append(
'/');
399 return ModulesdataPath;
405 TString TestslcPath =
"";
407 const Text_t *t_cmssw_base = (
const Text_t *)
CMSSWBase().Data();
408 TestslcPath.Append(t_cmssw_base);
409 TestslcPath.Append(
'/');
411 TString s_test =
"test";
412 const Text_t *t_test = (
const Text_t *)s_test.Data();
413 TestslcPath.Append(t_test);
414 TestslcPath.Append(
'/');
416 const Text_t *t_cmssw_arch = (
const Text_t *)
SCRAMArch().Data();
417 TestslcPath.Append(t_cmssw_arch);
418 TestslcPath.Append(
'/');
439 {TString sBegin =
"?";
444 {TString sBegin =
"?";
void GetCMSSWParameters()
Bool_t GetPathForHistoryRunListFiles()
void SetHistoryRunListFilePath(const TString &)
TString HistoryRunListFilePath()
TString BeginningOfResultsRootFilePath()
void AppendResultsAsciiFilePath(const Text_t *)
Bool_t RegisterPointer(const TString &, const Long_t &)
TString fCfgResultsAsciiFilePath
TString fCfgResultsRootFilePath
void SetResultsRootFilePath(const TString &)
TString BeginningOfResultsAsciiFilePath()
TString PathModulesData()
Bool_t GetPathForResultsRootFiles()
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 AppendResultsRootFilePath(const Text_t *)
Bool_t GetPathForResultsAsciiFiles()
TString ResultsAsciiFilePath()
TString fFileForResultsRootFilePath
void SetResultsAsciiFilePath(const TString &)
TString PathTestScramArch()