CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
TEcnaParPaths Class Reference

#include <TEcnaParPaths.h>

Inheritance diagram for TEcnaParPaths:

Public Member Functions

void AppendResultsAsciiFilePath (const Text_t *)
 
void AppendResultsRootFilePath (const Text_t *)
 
TString BeginningOfResultsAsciiFilePath ()
 
TString BeginningOfResultsRootFilePath ()
 
TString CMSSWSlc ()
 
TString CMSSWSubsystem ()
 
TString CMSSWVersion ()
 
void GetCMSSWParameters ()
 
void GetCMSSWParameters (const TString)
 
void GetPathForHistoryRunListFiles ()
 
void GetPathForHistoryRunListFiles (const TString)
 
void GetPathForResultsAsciiFiles ()
 
void GetPathForResultsAsciiFiles (const TString)
 
void GetPathForResultsRootFiles ()
 
void GetPathForResultsRootFiles (const TString)
 
TString HistoryRunListFilePath ()
 
void Init ()
 
TString PathModulesData ()
 
TString PathTestSlc ()
 
TString ResultsAsciiFilePath ()
 
TString ResultsRootFilePath ()
 
void SetResultsAsciiFilePath (const TString)
 
void SetResultsRootFilePath (const TString)
 
 TEcnaParPaths ()
 
void TruncateResultsAsciiFilePath (const Int_t &, const Int_t &)
 
void TruncateResultsRootFilePath (const Int_t &, const Int_t &)
 
virtual ~TEcnaParPaths ()
 

Public Attributes

Bool_t fPathForHistoryRunListFiles
 
Bool_t fPathForResultsAsciiFiles
 
Bool_t fPathForResultsRootFiles
 

Private Attributes

Int_t fCdelete
 
Int_t fCdeleteRoot
 
TString fCfgCMSSWSlc
 
TString fCfgCMSSWSubsystem
 
TString fCfgCMSSWVersion
 
TString fCfgHistoryRunListFilePath
 
TString fCfgResultsAsciiFilePath
 
TString fCfgResultsRootFilePath
 
Int_t fCnaCommand
 
Int_t fCnaError
 
Int_t fCnew
 
Int_t fCnewRoot
 
ifstream fFcin_cmssw
 
ifstream fFcin_lor
 
ifstream fFcin_ra
 
ifstream fFcin_rr
 
TString fFileForCMSSWParameters
 
TString fFileForHistoryRunListFilePath
 
TString fFileForResultsAsciiFilePath
 
TString fFileForResultsRootFilePath
 
Int_t fgMaxCar
 
TString fTTBELL
 

Detailed Description

Definition at line 18 of file TEcnaParPaths.h.

Constructor & Destructor Documentation

TEcnaParPaths::TEcnaParPaths ( )

Definition at line 48 of file TEcnaParPaths.cc.

References GetCMSSWParameters(), GetPathForHistoryRunListFiles(), GetPathForResultsAsciiFiles(), GetPathForResultsRootFiles(), and Init().

49 {
50 // Constructor without argument
51 
52  // cout << "[Info Management] CLASS: TEcnaParPaths. CREATE OBJECT: this = " << this << endl;
53 
54  Init();
55 
56  //............................... Get user's parameters from user's directory
57  GetPathForResultsRootFiles(); // Init the values of fCfgResultsRootFilePath
58  GetPathForResultsAsciiFiles(); // Init the values of fCfgResultsAsciiFilePath
59  GetPathForHistoryRunListFiles(); // Init the values of fCfgHistoryRunListFilePath
60  // GetPathForAnalyzerParametersFiles(); // Init the values of fCfgAnalyzerParametersFilePath
61  GetCMSSWParameters(); // Init the values of fCfgCMSSWVersion, fCfgCMSSWSubsystem and fCfgCMSSWSlc
62 }
void GetCMSSWParameters()
void GetPathForResultsAsciiFiles()
void GetPathForResultsRootFiles()
void GetPathForHistoryRunListFiles()
TEcnaParPaths::~TEcnaParPaths ( )
virtual

Definition at line 36 of file TEcnaParPaths.cc.

37 {
38 //destructor
39 
40  // cout << "[Info Management] CLASS: TEcnaParPaths. DESTROY OBJECT: this = " << this << endl;
41 }

Member Function Documentation

void TEcnaParPaths::AppendResultsAsciiFilePath ( const Text_t *  t_file_nohome)

Definition at line 586 of file TEcnaParPaths.cc.

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

587 {fCfgResultsAsciiFilePath.Append(t_file_nohome);}
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
void TEcnaParPaths::AppendResultsRootFilePath ( const Text_t *  t_file_nohome)

Definition at line 583 of file TEcnaParPaths.cc.

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

584 {fCfgResultsRootFilePath.Append(t_file_nohome);}
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:40
TString TEcnaParPaths::BeginningOfResultsAsciiFilePath ( )

Definition at line 578 of file TEcnaParPaths.cc.

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

579 {TString sBegin = "?";
580  if( fCfgResultsAsciiFilePath.BeginsWith("$HOME") ){sBegin = "$HOME";}
581  return sBegin;}
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
TString TEcnaParPaths::BeginningOfResultsRootFilePath ( )

Definition at line 573 of file TEcnaParPaths.cc.

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

574 {TString sBegin = "?";
575  if( fCfgResultsRootFilePath.BeginsWith("$HOME") ){sBegin = "$HOME";}
576  return sBegin;}
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:40
TString TEcnaParPaths::CMSSWSlc ( )

Definition at line 491 of file TEcnaParPaths.cc.

References fCfgCMSSWSlc.

Referenced by PathTestSlc().

491 {return fCfgCMSSWSlc;}
TString fCfgCMSSWSlc
Definition: TEcnaParPaths.h:54
TString TEcnaParPaths::CMSSWSubsystem ( )

Definition at line 490 of file TEcnaParPaths.cc.

References fCfgCMSSWSubsystem.

Referenced by PathModulesData(), and TEcnaGui::SubmitOnBatchSystem().

490 {return fCfgCMSSWSubsystem;}
TString fCfgCMSSWSubsystem
Definition: TEcnaParPaths.h:53
TString TEcnaParPaths::CMSSWVersion ( )

Definition at line 489 of file TEcnaParPaths.cc.

References fCfgCMSSWVersion.

Referenced by PathModulesData(), PathTestSlc(), and TEcnaGui::SubmitOnBatchSystem().

489 {return fCfgCMSSWVersion;}
TString fCfgCMSSWVersion
Definition: TEcnaParPaths.h:52
void TEcnaParPaths::GetCMSSWParameters ( )

Definition at line 397 of file TEcnaParPaths.cc.

Referenced by TEcnaParPaths().

398 {
399  GetCMSSWParameters("");
400 }
void GetCMSSWParameters()
void TEcnaParPaths::GetCMSSWParameters ( const TString  argFileName)

Definition at line 402 of file TEcnaParPaths.cc.

References gather_cfg::cout, fCfgCMSSWSlc, fCfgCMSSWSubsystem, fCfgCMSSWVersion, fCnaError, fFcin_cmssw, fFileForCMSSWParameters, fgMaxCar, and fTTBELL.

403 {
404  // Init fCfgCMSSWVersion, fCfgCMSSWSubsystem and fCfgCMSSWSlc
405  // and get them from the file named argFileName
406  // argFileName = complete name of the file (/afs/cern.ch/...)
407  // if string is empty, file name = "ECNA/cmssw_parameters" (located in $HOME user's directory - default - )
408 
409  Int_t MaxCar = fgMaxCar;
410  fCfgCMSSWVersion.Resize(MaxCar);
411  fCfgCMSSWVersion = "?";
412  fCfgCMSSWSubsystem.Resize(MaxCar);
413  fCfgCMSSWSubsystem = "?";
414  fCfgCMSSWSlc.Resize(MaxCar);
415  fCfgCMSSWSlc = "?";
416 
417  //..... put the name of the ascii file (containing the paths for CNA treatements)
418  // in the string cFileNameForCMSSWParameters and in class attribute fFileForCMSSWParameters
419 
420  if ( argFileName == "" )
421  {
422  string cFileNameForCMSSWParameters = "ECNA/cmssw_parameters"; // config file name
423  TString s_file_name = cFileNameForCMSSWParameters.c_str();
424  const Text_t *t_file_name = (const Text_t *)s_file_name.Data();
425 
426  TString s_path_name = gSystem->Getenv("HOME"); // get user's home directory path
427 
428  fFileForCMSSWParameters = s_path_name;
429  fFileForCMSSWParameters.Append('/');
430  fFileForCMSSWParameters.Append(t_file_name);
431  }
432  else
433  {
434  fFileForCMSSWParameters = argFileName.Data();
435  }
436 
437  //... Reading of the CMSSW version, subsystem and slc name in the file named fFileForCMSSWParameters.Data()
438  //
439 
441  if(fFcin_cmssw.fail() == kFALSE)
442  {
443  fFcin_cmssw.clear();
444 
445  string xCMSSWVersionFileP;
446  fFcin_cmssw >> xCMSSWVersionFileP;
447  fCfgCMSSWVersion = xCMSSWVersionFileP.c_str();
448 
449  string xCMSSWSubsystemFileP;
450  fFcin_cmssw >> xCMSSWSubsystemFileP;
451  fCfgCMSSWSubsystem = xCMSSWSubsystemFileP.c_str();
452 
453  string xCMSSWSlcFileP;
454  fFcin_cmssw >> xCMSSWSlcFileP;
455  fCfgCMSSWSlc = xCMSSWSlcFileP.c_str();
456 
457  fFcin_cmssw.close();
458  }
459  else
460  {
461  fFcin_cmssw.clear();
462  fCnaError++;
463  cout << fTTBELL << endl
464  << " ************************************************************************************************** " << endl;
465  cout << " !CNA(TEcnaParPaths) (" << fCnaError << ") *** ERROR *** " << endl << endl
466  << " " << fFileForCMSSWParameters.Data() << ": file not found. " << endl << endl
467  << " Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
468  << " and create a file named cmssw_parameters in the subdirectory ECNA." << endl << endl
469  << " The file " << fFileForCMSSWParameters.Data() << " is a configuration file" << endl
470  << " for the CNA and must contain one line with the following syntax:" << endl << endl
471  << " CMSSW_VERSION SUBSYSTEM_NAME TEST_SUBDIRECTORY_NAME" << endl
472  << endl << endl
473  << " Example: CMSSW_2_1_19 CalibCalorimetry slc4_ia32_gcc345" << endl << endl
474  << " ************************************************************************************************** "
475  << fTTBELL << endl;
476 
477  fFcin_cmssw.close();
478  }
479 } // ----------- (end of GetCMSSWParameters) --------------------
TString fCfgCMSSWSlc
Definition: TEcnaParPaths.h:54
TString fCfgCMSSWVersion
Definition: TEcnaParPaths.h:52
ifstream fFcin_cmssw
Definition: TEcnaParPaths.h:38
TString fFileForCMSSWParameters
Definition: TEcnaParPaths.h:55
TString fCfgCMSSWSubsystem
Definition: TEcnaParPaths.h:53
tuple cout
Definition: gather_cfg.py:41
TString fTTBELL
Definition: TEcnaParPaths.h:29
void TEcnaParPaths::GetPathForHistoryRunListFiles ( )

Definition at line 238 of file TEcnaParPaths.cc.

Referenced by TEcnaParPaths().

239 {
241 }
void GetPathForHistoryRunListFiles()
void TEcnaParPaths::GetPathForHistoryRunListFiles ( const TString  argFileName)

Definition at line 243 of file TEcnaParPaths.cc.

References gather_cfg::cout, fCfgHistoryRunListFilePath, fCnaError, fFcin_lor, fFileForHistoryRunListFilePath, fgMaxCar, fPathForHistoryRunListFiles, and fTTBELL.

244 {
245  // Init fCfgHistoryRunListFilePath and get it from the file named argFileName
246  // argFileName = complete name of the file (/afs/cern.ch/...)
247  // if string is empty, file name = "ECNA/path_runlist_history_plots" (located in $HOME user's directory - default - )
248 
249  Int_t MaxCar = fgMaxCar;
250  fCfgHistoryRunListFilePath.Resize(MaxCar);
252 
253  //..... put the name of the ascii file (containing the paths for CNA treatements)
254  // in the string cFileNameForCnaPaths and in class attribute fFileForHistoryRunListFilePath
255 
256  if ( argFileName == "" )
257  {
258  string cFileNameForCnaPaths = "ECNA/path_runlist_history_plots"; // config file name
259  TString s_file_name = cFileNameForCnaPaths.c_str();
260  const Text_t *t_file_name = (const Text_t *)s_file_name.Data();
261 
262  TString s_path_name = gSystem->Getenv("HOME"); // get user's home directory path
263 
264  fFileForHistoryRunListFilePath = s_path_name;
265  fFileForHistoryRunListFilePath.Append('/');
266  fFileForHistoryRunListFilePath.Append(t_file_name);
267  }
268  else
269  {
270  fFileForHistoryRunListFilePath = argFileName.Data();
271  }
272 
273  //........ Reading of the paths in the file named fFileForHistoryRunListFilePath.Data()
274  //
275 
277  if(fFcin_lor.fail() == kFALSE)
278  {
279  fFcin_lor.clear();
280  string xHistoryRunListP;
281  fFcin_lor >> xHistoryRunListP;
282  fCfgHistoryRunListFilePath = xHistoryRunListP.c_str();
283  fFcin_lor.close();
285  }
286  else
287  {
288  fFcin_lor.clear();
289  fCnaError++;
290  cout << fTTBELL << endl
291  << " ******************************************************************************************************** " << endl;
292  cout << " !CNA(TEcnaParPaths) (" << fCnaError << ") *** ERROR *** " << endl << endl
293  << " " << fFileForHistoryRunListFilePath.Data() << ": file not found. " << endl << endl
294  << " Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
295  << " and create a file named path_runlist_history_plots in the subdirectory ECNA." << endl << endl
296  << " The file " << fFileForHistoryRunListFilePath.Data() << " is a configuration file" << endl
297  << " for the CNA and must contain one line with the following syntax:" << endl << endl
298  << " PATH_OF_THE_LIST_OF_RUNS_FOR_HISTORY_PLOTS_FILE ($HOME/etc...) (without slash at the end of line)" << endl
299  << " ================================"
300  << endl << endl
301  << " Example: $HOME/scratch0/cna/runlist_history_plots" << endl << endl
302  << " ******************************************************************************************************** "
303  << fTTBELL << endl;
304 
305  fFcin_lor.close();
307  }
308 } // ----------- (end of GetPathForHistoryRunListFiles) --------------------
ifstream fFcin_lor
Definition: TEcnaParPaths.h:36
Bool_t fPathForHistoryRunListFiles
Definition: TEcnaParPaths.h:63
TString fCfgHistoryRunListFilePath
Definition: TEcnaParPaths.h:46
TString fFileForHistoryRunListFilePath
Definition: TEcnaParPaths.h:47
tuple cout
Definition: gather_cfg.py:41
TString fTTBELL
Definition: TEcnaParPaths.h:29
void TEcnaParPaths::GetPathForResultsAsciiFiles ( )

Definition at line 164 of file TEcnaParPaths.cc.

Referenced by TEcnaParPaths().

165 {
167 }
void GetPathForResultsAsciiFiles()
void TEcnaParPaths::GetPathForResultsAsciiFiles ( const TString  argFileName)

Definition at line 169 of file TEcnaParPaths.cc.

References gather_cfg::cout, fCfgResultsAsciiFilePath, fCnaError, fFcin_ra, fFileForResultsAsciiFilePath, fgMaxCar, fPathForResultsAsciiFiles, and fTTBELL.

170 {
171  // Init fCfgResultsAsciiFilePath and get it from the file named argFileName
172  // argFileName = complete name of the file (/afs/cern.ch/...)
173  // if string is empty, file name = "ECNA/path_results_ascii" (located in $HOME user's directory - default - )
174 
175  Int_t MaxCar = fgMaxCar;
176  fCfgResultsAsciiFilePath.Resize(MaxCar);
178 
179  //..... put the name of the ascii file (containing the paths for CNA treatements)
180  // in the string cFileNameForCnaPaths and in class attribute fFileForResultsAsciiFilePath
181 
182  if ( argFileName == "" )
183  {
184  string cFileNameForCnaPaths = "ECNA/path_results_ascii"; // config file name
185  TString s_file_name = cFileNameForCnaPaths.c_str();
186  const Text_t *t_file_name = (const Text_t *)s_file_name.Data();
187 
188  TString s_path_name = gSystem->Getenv("HOME"); // get user's home directory path
189 
190  fFileForResultsAsciiFilePath = s_path_name;
191  fFileForResultsAsciiFilePath.Append('/');
192  fFileForResultsAsciiFilePath.Append(t_file_name);
193  }
194  else
195  {
196  fFileForResultsAsciiFilePath = argFileName.Data();
197  }
198 
199  //........ Reading of the paths in the file named fFileForResultsAsciiFilePath.Data()
200  //
201 
203  if(fFcin_ra.fail() == kFALSE)
204  {
205  fFcin_ra.clear();
206  string xResultsFileP;
207  fFcin_ra >> xResultsFileP;
208  fCfgResultsAsciiFilePath = xResultsFileP.c_str();
209  fFcin_ra.close();
211  }
212  else
213  {
214  fFcin_ra.clear();
215  fCnaError++;
216  cout << fTTBELL << endl
217  << " ***************************************************************************************** " << endl;
218  cout << " !CNA(TEcnaParPaths) (" << fCnaError << ") *** ERROR *** " << endl << endl
219  << " " << fFileForResultsAsciiFilePath.Data() << ": file not found. " << endl << endl
220  << " Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
221  << " and create a file named path_results_ascii in the subdirectory ECNA." << endl << endl
222  << " The file " << fFileForResultsAsciiFilePath.Data() << " is a configuration file" << endl
223  << " for the CNA and must contain one line with the following syntax:" << endl << endl
224  << " PATH_OF_THE_RESULTS_ASCII_FILE ($HOME/etc...) (without slash at the end of line)" << endl
225  << " ================================"
226  << endl << endl
227  << " Example: $HOME/scratch0/cna/results_ascii" << endl << endl
228  << " ***************************************************************************************** "
229  << fTTBELL << endl;
230 
231  fFcin_ra.close();
232  fPathForResultsAsciiFiles = kFALSE;
233  }
234 } // ----------- (end of GetPathForResultsAsciiFiles) --------------------
Bool_t fPathForResultsAsciiFiles
Definition: TEcnaParPaths.h:62
ifstream fFcin_ra
Definition: TEcnaParPaths.h:35
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
TString fFileForResultsAsciiFilePath
Definition: TEcnaParPaths.h:44
tuple cout
Definition: gather_cfg.py:41
TString fTTBELL
Definition: TEcnaParPaths.h:29
void TEcnaParPaths::GetPathForResultsRootFiles ( )

Definition at line 90 of file TEcnaParPaths.cc.

Referenced by TEcnaParPaths().

91 {
93 }
void GetPathForResultsRootFiles()
void TEcnaParPaths::GetPathForResultsRootFiles ( const TString  argFileName)

Definition at line 95 of file TEcnaParPaths.cc.

References gather_cfg::cout, fCfgResultsRootFilePath, fCnaError, fFcin_rr, fFileForResultsRootFilePath, fgMaxCar, fPathForResultsRootFiles, and fTTBELL.

96 {
97  // Init fCfgResultsRootFilePath and get it from the file named argFileName
98  // argFileName = complete name of the file (/afs/cern.ch/...)
99  // if string is empty, file name = "ECNA/path_results_root" (located in $HOME user's directory - default - )
100 
101  Int_t MaxCar = fgMaxCar;
102  fCfgResultsRootFilePath.Resize(MaxCar);
104 
105  //..... put the name of the ascii file (containing the paths for CNA treatements)
106  // in the string cFileNameForCnaPaths and in class attribute fFileForResultsRootFilePath
107 
108  if ( argFileName == "" )
109  {
110  string cFileNameForCnaPaths = "ECNA/path_results_root"; // config file name
111  TString s_file_name = cFileNameForCnaPaths.c_str();
112  const Text_t *t_file_name = (const Text_t *)s_file_name.Data();
113 
114  TString s_path_name = gSystem->Getenv("HOME"); // get user's home directory path
115 
116  fFileForResultsRootFilePath = s_path_name;
117  fFileForResultsRootFilePath.Append('/');
118  fFileForResultsRootFilePath.Append(t_file_name);
119  }
120  else
121  {
122  fFileForResultsRootFilePath = argFileName.Data();
123  }
124 
125  //........ Reading of the paths in the file named fFileForResultsRootFilePath.Data()
126  //
127 
129  if(fFcin_rr.fail() == kFALSE)
130  {
131  fFcin_rr.clear();
132  string xResultsFileP;
133  fFcin_rr >> xResultsFileP;
134  fCfgResultsRootFilePath = xResultsFileP.c_str();
135  fFcin_rr.close();
136  fPathForResultsRootFiles = kTRUE;
137  }
138  else
139  {
140  fFcin_rr.clear();
141  fCnaError++;
142  cout << fTTBELL << endl
143  << " ***************************************************************************************** " << endl;
144  cout << " !CNA(TEcnaParPaths) (" << fCnaError << ") *** ERROR *** " << endl << endl
145  << " " << fFileForResultsRootFilePath.Data() << ": file not found. " << endl << endl
146  << " Please create a subdirectory named ECNA in your HOME directory (if not already done)" << endl
147  << " and create a file named path_results_root in the subdirectory ECNA." << endl << endl
148  << " The file " << fFileForResultsRootFilePath.Data() << " is a configuration file" << endl
149  << " for the CNA and must contain one line with the following syntax:" << endl << endl
150  << " PATH_OF_THE_RESULTS_ROOT_FILE ($HOME/etc...) (without slash at the end of line)" << endl
151  << " ================================"
152  << endl << endl
153  << " Example: $HOME/scratch0/cna/results_root" << endl << endl
154  << " ***************************************************************************************** "
155  << fTTBELL << endl;
156 
157  fFcin_rr.close();
158  fPathForResultsRootFiles = kFALSE;
159  }
160 } // ----------- (end of GetPathForResultsRootFiles) --------------------
ifstream fFcin_rr
Definition: TEcnaParPaths.h:34
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:40
tuple cout
Definition: gather_cfg.py:41
Bool_t fPathForResultsRootFiles
Definition: TEcnaParPaths.h:61
TString fTTBELL
Definition: TEcnaParPaths.h:29
TString fFileForResultsRootFilePath
Definition: TEcnaParPaths.h:41
TString TEcnaParPaths::HistoryRunListFilePath ( )

Definition at line 488 of file TEcnaParPaths.cc.

References fCfgHistoryRunListFilePath.

Referenced by TEcnaHistos::TEcnaHistos().

TString fCfgHistoryRunListFilePath
Definition: TEcnaParPaths.h:46
void TEcnaParPaths::Init ( void  )

Definition at line 64 of file TEcnaParPaths.cc.

References fCnaCommand, fCnaError, fgMaxCar, fPathForHistoryRunListFiles, fPathForResultsAsciiFiles, fPathForResultsRootFiles, and fTTBELL.

Referenced by TEcnaParPaths().

65 {
66  fgMaxCar = (Int_t)512; // max number of characters in TStrings
67 
68  fTTBELL = '\007';
69 
70  //................ Init CNA Command and error numbering
71  fCnaCommand = 0;
72  fCnaError = 0;
73 
74  //................ Init path flags
75 
76  fPathForResultsRootFiles = kFALSE;
79 
80 }// end of Init()
Bool_t fPathForResultsAsciiFiles
Definition: TEcnaParPaths.h:62
Bool_t fPathForHistoryRunListFiles
Definition: TEcnaParPaths.h:63
Bool_t fPathForResultsRootFiles
Definition: TEcnaParPaths.h:61
TString fTTBELL
Definition: TEcnaParPaths.h:29
TString TEcnaParPaths::PathModulesData ( )

Definition at line 494 of file TEcnaParPaths.cc.

References CMSSWSubsystem(), and CMSSWVersion().

Referenced by TEcnaGui::CleanBatchFiles(), and TEcnaGui::SubmitOnBatchSystem().

495 {
496  // ----- return the path of data subdirectory in package "Modules"
497  TString ModulesdataPath = "";
498  //...... get HOME directory path, CMSSW version and Subsystem name
499  TString s_path_name = gSystem->Getenv("HOME");
500  const Text_t *t_path_name = (const Text_t *)s_path_name.Data();
501  ModulesdataPath.Append(t_path_name);
502  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/
503 
504  TString s_cmssw = "cmssw";
505  const Text_t *t_cmssw = (const Text_t *)s_cmssw.Data();
506  ModulesdataPath.Append(t_cmssw);
507  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/
508 
509  const Text_t *t_cmssw_version = (const Text_t *)CMSSWVersion().Data();
510  ModulesdataPath.Append(t_cmssw_version);
511  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/
512 
513  TString s_src = "src";
514  const Text_t *t_src = (const Text_t *)s_src.Data();
515  ModulesdataPath.Append(t_src);
516  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/src
517 
518  const Text_t *t_cmssw_subsystem = (const Text_t *)CMSSWSubsystem().Data();
519  ModulesdataPath.Append(t_cmssw_subsystem);
520  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/src/CalibCalorimetry/
521 
522  TString s_package_data_path = "EcalCorrelatedNoiseAnalysisModules/data";
523  const Text_t *t_package_data_path = (const Text_t *)s_package_data_path.Data();
524  ModulesdataPath.Append(t_package_data_path);
525  ModulesdataPath.Append('/');
526  // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/src/CalibCalorimetry/EcalCorrelatedNoiseAnalysisModules/data/
527 
528  return ModulesdataPath;
529 }
TString CMSSWVersion()
TString CMSSWSubsystem()
TString TEcnaParPaths::PathTestSlc ( )

Definition at line 531 of file TEcnaParPaths.cc.

References CMSSWSlc(), and CMSSWVersion().

Referenced by TEcnaGui::CleanBatchFiles().

532 {
533  // ----- return the path of test/slc... subdirectory in CMSSW_X_Y_Z
534  TString TestslcPath = "";
535  //...... get HOME directory path, CMSSW version and Subsystem name
536  TString s_path_name = gSystem->Getenv("HOME");
537  const Text_t *t_path_name = (const Text_t *)s_path_name.Data();
538  TestslcPath.Append(t_path_name);
539  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/
540 
541  TString s_cmssw = "cmssw";
542  const Text_t *t_cmssw = (const Text_t *)s_cmssw.Data();
543  TestslcPath.Append(t_cmssw);
544  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/
545 
546  const Text_t *t_cmssw_version = (const Text_t *)CMSSWVersion().Data();
547  TestslcPath.Append(t_cmssw_version);
548  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/
549 
550  TString s_test = "test";
551  const Text_t *t_test = (const Text_t *)s_test.Data();
552  TestslcPath.Append(t_test);
553  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/test
554 
555  const Text_t *t_cmssw_subsystem = (const Text_t *)CMSSWSlc().Data();
556  TestslcPath.Append(t_cmssw_subsystem);
557  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/test/slc4_ia32_gcc345/
558 
559  return TestslcPath;
560 }
TString CMSSWSlc()
TString CMSSWVersion()
TString TEcnaParPaths::ResultsAsciiFilePath ( )

Definition at line 487 of file TEcnaParPaths.cc.

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

487 {return fCfgResultsAsciiFilePath;}
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
TString TEcnaParPaths::ResultsRootFilePath ( )
void TEcnaParPaths::SetResultsAsciiFilePath ( const TString  ImposedPath)

Definition at line 565 of file TEcnaParPaths.cc.

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

565 {fCfgResultsAsciiFilePath = ImposedPath;}
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
void TEcnaParPaths::SetResultsRootFilePath ( const TString  ImposedPath)

Definition at line 564 of file TEcnaParPaths.cc.

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

564 {fCfgResultsRootFilePath = ImposedPath;}
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:40
void TEcnaParPaths::TruncateResultsAsciiFilePath ( const Int_t &  n1,
const Int_t &  nbcar 
)

Definition at line 570 of file TEcnaParPaths.cc.

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

571 {fCfgResultsAsciiFilePath.Remove(n1,nbcar);}
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
void TEcnaParPaths::TruncateResultsRootFilePath ( const Int_t &  n1,
const Int_t &  nbcar 
)

Definition at line 567 of file TEcnaParPaths.cc.

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

568 {fCfgResultsRootFilePath.Remove(n1,nbcar);}
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:40

Member Data Documentation

Int_t TEcnaParPaths::fCdelete
private

Definition at line 26 of file TEcnaParPaths.h.

Int_t TEcnaParPaths::fCdeleteRoot
private

Definition at line 27 of file TEcnaParPaths.h.

TString TEcnaParPaths::fCfgCMSSWSlc
private

Definition at line 54 of file TEcnaParPaths.h.

Referenced by CMSSWSlc(), and GetCMSSWParameters().

TString TEcnaParPaths::fCfgCMSSWSubsystem
private

Definition at line 53 of file TEcnaParPaths.h.

Referenced by CMSSWSubsystem(), and GetCMSSWParameters().

TString TEcnaParPaths::fCfgCMSSWVersion
private

Definition at line 52 of file TEcnaParPaths.h.

Referenced by CMSSWVersion(), and GetCMSSWParameters().

TString TEcnaParPaths::fCfgHistoryRunListFilePath
private

Definition at line 46 of file TEcnaParPaths.h.

Referenced by GetPathForHistoryRunListFiles(), and HistoryRunListFilePath().

TString TEcnaParPaths::fCfgResultsAsciiFilePath
private
TString TEcnaParPaths::fCfgResultsRootFilePath
private
Int_t TEcnaParPaths::fCnaCommand
private

Definition at line 31 of file TEcnaParPaths.h.

Referenced by Init().

Int_t TEcnaParPaths::fCnaError
private
Int_t TEcnaParPaths::fCnew
private

Definition at line 26 of file TEcnaParPaths.h.

Int_t TEcnaParPaths::fCnewRoot
private

Definition at line 27 of file TEcnaParPaths.h.

ifstream TEcnaParPaths::fFcin_cmssw
private

Definition at line 38 of file TEcnaParPaths.h.

Referenced by GetCMSSWParameters().

ifstream TEcnaParPaths::fFcin_lor
private

Definition at line 36 of file TEcnaParPaths.h.

Referenced by GetPathForHistoryRunListFiles().

ifstream TEcnaParPaths::fFcin_ra
private

Definition at line 35 of file TEcnaParPaths.h.

Referenced by GetPathForResultsAsciiFiles().

ifstream TEcnaParPaths::fFcin_rr
private

Definition at line 34 of file TEcnaParPaths.h.

Referenced by GetPathForResultsRootFiles().

TString TEcnaParPaths::fFileForCMSSWParameters
private

Definition at line 55 of file TEcnaParPaths.h.

Referenced by GetCMSSWParameters().

TString TEcnaParPaths::fFileForHistoryRunListFilePath
private

Definition at line 47 of file TEcnaParPaths.h.

Referenced by GetPathForHistoryRunListFiles().

TString TEcnaParPaths::fFileForResultsAsciiFilePath
private

Definition at line 44 of file TEcnaParPaths.h.

Referenced by GetPathForResultsAsciiFiles().

TString TEcnaParPaths::fFileForResultsRootFilePath
private

Definition at line 41 of file TEcnaParPaths.h.

Referenced by GetPathForResultsRootFiles().

Int_t TEcnaParPaths::fgMaxCar
private
Bool_t TEcnaParPaths::fPathForHistoryRunListFiles

Definition at line 63 of file TEcnaParPaths.h.

Referenced by GetPathForHistoryRunListFiles(), and Init().

Bool_t TEcnaParPaths::fPathForResultsAsciiFiles

Definition at line 62 of file TEcnaParPaths.h.

Referenced by GetPathForResultsAsciiFiles(), and Init().

Bool_t TEcnaParPaths::fPathForResultsRootFiles

Definition at line 61 of file TEcnaParPaths.h.

Referenced by GetPathForResultsRootFiles(), and Init().

TString TEcnaParPaths::fTTBELL
private