CMS 3D CMS Logo

List of all members | Public Member Functions | 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 CMSSWBase ()
 
TString CMSSWSubsystem ()
 
void GetCMSSWParameters ()
 
Bool_t GetPathForHistoryRunListFiles ()
 
Bool_t GetPathForHistoryRunListFiles (const TString &)
 
Bool_t GetPathForResultsAsciiFiles ()
 
Bool_t GetPathForResultsAsciiFiles (const TString &)
 
Bool_t GetPathForResultsRootFiles ()
 
Bool_t GetPathForResultsRootFiles (const TString &)
 
Bool_t GetPaths ()
 
TString HistoryRunListFilePath ()
 
void Init ()
 
TString PathModulesData ()
 
TString PathTestScramArch ()
 
TString ResultsAsciiFilePath ()
 
TString ResultsRootFilePath ()
 
TString SCRAMArch ()
 
void SetHistoryRunListFilePath (const TString &)
 
void SetResultsAsciiFilePath (const TString &)
 
void SetResultsRootFilePath (const TString &)
 
 TEcnaParPaths ()
 
 TEcnaParPaths (TEcnaObject *)
 
void TruncateResultsAsciiFilePath (const Int_t &, const Int_t &)
 
void TruncateResultsRootFilePath (const Int_t &, const Int_t &)
 
 ~TEcnaParPaths () override
 

Private Attributes

Int_t fCdelete
 
Int_t fCdeleteRoot
 
TString fCfgCMSSWBase
 
TString fCfgCMSSWSubsystem
 
TString fCfgHistoryRunListFilePath
 
TString fCfgResultsAsciiFilePath
 
TString fCfgResultsRootFilePath
 
TString fCfgSCRAMArch
 
Int_t fCnaCommand
 
Int_t fCnaError
 
Int_t fCnew
 
Int_t fCnewRoot
 
std::ifstream fFcin_cmssw
 
std::ifstream fFcin_lor
 
std::ifstream fFcin_ra
 
std::ifstream fFcin_rr
 
TString fFileForCMSSWParameters
 
TString fFileForHistoryRunListFilePath
 
TString fFileForResultsAsciiFilePath
 
TString fFileForResultsRootFilePath
 
Int_t fgMaxCar
 
TString fTTBELL
 

Detailed Description


TEcnaParPaths.h Update: 05/10/2012 Author: B.Fabbro (berna.nosp@m.rd.f.nosp@m.abbro.nosp@m.@cea.nosp@m..fr) DSM/IRFU/SPP CEA-Saclay Copyright: Those valid for CEA sofware

ECNA web page: http://cms-fabbro.web.cern.ch/cms-fabbro/

cna_new/Correlated_Noise_Analysis/ECNA_main_page.htm

Definition at line 24 of file TEcnaParPaths.h.

Constructor & Destructor Documentation

◆ TEcnaParPaths() [1/2]

TEcnaParPaths::TEcnaParPaths ( )

Definition at line 29 of file TEcnaParPaths.cc.

29  {
30  // Constructor without argument
31  // std::cout << "[Info Management] CLASS: TEcnaParPaths. CREATE OBJECT: this = " << this << std::endl;
32  Init();
33 }

References Init().

◆ TEcnaParPaths() [2/2]

TEcnaParPaths::TEcnaParPaths ( TEcnaObject pObjectManager)

Definition at line 35 of file TEcnaParPaths.cc.

35  {
36  // Constructor without argument
37  // std::cout << "[Info Management] CLASS: TEcnaParPaths. CREATE OBJECT: this = " << this << std::endl;
38  Init();
39  Long_t i_this = (Long_t)this;
40  pObjectManager->RegisterPointer("TEcnaParPaths", i_this);
41 }

References Init(), and TEcnaObject::RegisterPointer().

◆ ~TEcnaParPaths()

TEcnaParPaths::~TEcnaParPaths ( )
override

Definition at line 18 of file TEcnaParPaths.cc.

18  {
19  //destructor
20 
21  // std::cout << "[Info Management] CLASS: TEcnaParPaths. DESTROY OBJECT: this = " << this << std::endl;
22 }

Member Function Documentation

◆ AppendResultsAsciiFilePath()

void TEcnaParPaths::AppendResultsAsciiFilePath ( const Text_t *  t_file_nohome)

Definition at line 443 of file TEcnaParPaths.cc.

443  {
444  fCfgResultsAsciiFilePath.Append(t_file_nohome);
445 }

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ AppendResultsRootFilePath()

void TEcnaParPaths::AppendResultsRootFilePath ( const Text_t *  t_file_nohome)

Definition at line 439 of file TEcnaParPaths.cc.

439  {
440  fCfgResultsRootFilePath.Append(t_file_nohome);
441 }

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ BeginningOfResultsAsciiFilePath()

TString TEcnaParPaths::BeginningOfResultsAsciiFilePath ( )

Definition at line 431 of file TEcnaParPaths.cc.

431  {
432  TString sBegin = "?";
433  if (fCfgResultsAsciiFilePath.BeginsWith("$HOME")) {
434  sBegin = "$HOME";
435  }
436  return sBegin;
437 }

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ BeginningOfResultsRootFilePath()

TString TEcnaParPaths::BeginningOfResultsRootFilePath ( )

Definition at line 423 of file TEcnaParPaths.cc.

423  {
424  TString sBegin = "?";
425  if (fCfgResultsRootFilePath.BeginsWith("$HOME")) {
426  sBegin = "$HOME";
427  }
428  return sBegin;
429 }

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ CMSSWBase()

TString TEcnaParPaths::CMSSWBase ( )

Definition at line 355 of file TEcnaParPaths.cc.

355 { return fCfgCMSSWBase; }

References fCfgCMSSWBase.

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

◆ CMSSWSubsystem()

TString TEcnaParPaths::CMSSWSubsystem ( )

Definition at line 356 of file TEcnaParPaths.cc.

356 { return fCfgCMSSWSubsystem; }

References fCfgCMSSWSubsystem.

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

◆ GetCMSSWParameters()

void TEcnaParPaths::GetCMSSWParameters ( )

Definition at line 308 of file TEcnaParPaths.cc.

308  {
309  // Init fCfgCMSSWBase, fCfgSCRAMArch and fCfgCMSSWSubsystem
310 
311  Int_t MaxCar = fgMaxCar;
312  fCfgCMSSWBase.Resize(MaxCar);
313  fCfgCMSSWBase = "?";
314 
315  fCfgSCRAMArch.Resize(MaxCar);
316  fCfgSCRAMArch = "?";
317 
318  fCfgCMSSWSubsystem.Resize(MaxCar);
319  fCfgCMSSWSubsystem = "?";
320 
321  //------------ CMSSW_BASE
322 
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;
327  } else {
328  fCfgCMSSWBase = (TString)ch_cmssw_base;
329  }
330 
331  //------------ SCRAM_ARCH
332 
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;
337  } else {
338  fCfgSCRAMArch = (TString)ch_scram_arch;
339  }
340 
341  //------------ SUBSYSTEM: CalibCalorimetry
342 
343  fCfgCMSSWSubsystem = "CalibCalorimetry";
344 
345 } // ----------- (end of GetCMSSWParameters) --------------------

References gather_cfg::cout, fCfgCMSSWBase, fCfgCMSSWSubsystem, fCfgSCRAMArch, fgMaxCar, and fTTBELL.

Referenced by GetPaths(), and TEcnaGui::TEcnaGui().

◆ GetPathForHistoryRunListFiles() [1/2]

Bool_t TEcnaParPaths::GetPathForHistoryRunListFiles ( )

Definition at line 233 of file TEcnaParPaths.cc.

233 { return GetPathForHistoryRunListFiles(""); }

Referenced by GetPaths().

◆ GetPathForHistoryRunListFiles() [2/2]

Bool_t TEcnaParPaths::GetPathForHistoryRunListFiles ( const TString &  argFileName)

Definition at line 235 of file TEcnaParPaths.cc.

235  {
236  // Init fCfgHistoryRunListFilePath and get it from the file named argFileName
237  // argFileName = complete name of the file (/afs/cern.ch/...)
238  // if string is empty, file name = "ECNA/path_runlist_history_plots" (located in $HOME user's directory - default - )
239 
240  Bool_t FileHere = kFALSE;
241 
242  Int_t MaxCar = fgMaxCar;
243  fCfgHistoryRunListFilePath.Resize(MaxCar);
245 
246  //..... put the name of the ascii file (containing the paths for CNA treatements)
247  // in the string cFileNameForCnaPaths and in class attribute fFileForHistoryRunListFilePath
248 
249  if (argFileName == "") {
250  std::string cFileNameForCnaPaths = "ECNA/path_runlist_history_plots"; // config file name
251  TString s_file_name = cFileNameForCnaPaths.c_str();
252  const Text_t *t_file_name = (const Text_t *)s_file_name.Data();
253 
254  TString s_path_name = gSystem->Getenv("HOME"); // get user's home directory path
255 
256  fFileForHistoryRunListFilePath = s_path_name;
257  fFileForHistoryRunListFilePath.Append('/');
258  fFileForHistoryRunListFilePath.Append(t_file_name);
259  } else {
260  fFileForHistoryRunListFilePath = argFileName.Data();
261  }
262 
263  //........ Reading of the paths in the file named fFileForHistoryRunListFilePath.Data()
264  //
266  if (fFcin_lor.fail() == kFALSE) {
267  fFcin_lor.clear();
268  std::string xHistoryRunListP;
269  fFcin_lor >> xHistoryRunListP;
270  fCfgHistoryRunListFilePath = xHistoryRunListP.c_str();
271  fFcin_lor.close();
272  FileHere = kTRUE;
273  } else {
274  fFcin_lor.clear();
275  fCnaError++;
276  std::cout
277  << fTTBELL << std::endl
278  << " ******************************************************************************************************** "
279  << std::endl;
280  std::cout
281  << " !CNA(TEcnaParPaths) (" << fCnaError << ") *** ERROR *** " << std::endl
282  << std::endl
283  << " " << fFileForHistoryRunListFilePath.Data() << ": file not found. " << std::endl
284  << 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
287  << std::endl
288  << " The file " << fFileForHistoryRunListFilePath.Data() << " is a configuration file" << std::endl
289  << " for ECNA and must contain one line with the following syntax:" << std::endl
290  << 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
293  << std::endl
294  << " Example: $HOME/scratch0/ecna/runlist_history_plots" << std::endl
295  << std::endl
296  << " ******************************************************************************************************** "
297  << fTTBELL << std::endl;
298 
299  fFcin_lor.close();
300  FileHere = kFALSE;
301  }
302 
303  return FileHere;
304 
305 } // ----------- (end of GetPathForHistoryRunListFiles) --------------------

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

◆ GetPathForResultsAsciiFiles() [1/2]

Bool_t TEcnaParPaths::GetPathForResultsAsciiFiles ( )

Definition at line 158 of file TEcnaParPaths.cc.

158 { return GetPathForResultsAsciiFiles(""); }

Referenced by GetPaths(), and TEcnaWrite::TEcnaWrite().

◆ GetPathForResultsAsciiFiles() [2/2]

Bool_t TEcnaParPaths::GetPathForResultsAsciiFiles ( const TString &  argFileName)

Definition at line 160 of file TEcnaParPaths.cc.

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

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

◆ GetPathForResultsRootFiles() [1/2]

Bool_t TEcnaParPaths::GetPathForResultsRootFiles ( )

◆ GetPathForResultsRootFiles() [2/2]

Bool_t TEcnaParPaths::GetPathForResultsRootFiles ( const TString &  argFileName)

Definition at line 85 of file TEcnaParPaths.cc.

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

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

◆ GetPaths()

Bool_t TEcnaParPaths::GetPaths ( )

Definition at line 54 of file TEcnaParPaths.cc.

54  {
55  //............................... Get user's parameters from user's directory
56  Bool_t FileHere = kFALSE;
57  Int_t NbFileHere = 0;
58  if (GetPathForResultsRootFiles() == kTRUE) {
59  NbFileHere++;
60  } // Init fCfgResultsRootFilePath
61  if (GetPathForResultsAsciiFiles() == kTRUE) {
62  NbFileHere++;
63  } // Init fCfgResultsAsciiFilePath
64  if (GetPathForHistoryRunListFiles() == kTRUE) {
65  NbFileHere++;
66  } // Init fCfgHistoryRunListFilePath
67 
68  GetCMSSWParameters(); // Init fCfgCMSSWBase, fCfgCMSSWSubsystem, fCfgSCRAMArch <== done in TEcnaGui
69 
70  if (NbFileHere == 3) {
71  FileHere = kTRUE;
72  }
73  return FileHere;
74 }

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

Referenced by TEcnaGui::TEcnaGui().

◆ HistoryRunListFilePath()

TString TEcnaParPaths::HistoryRunListFilePath ( )

Definition at line 354 of file TEcnaParPaths.cc.

354 { return fCfgHistoryRunListFilePath; }

References fCfgHistoryRunListFilePath.

Referenced by TEcnaHistos::TEcnaHistos().

◆ Init()

void TEcnaParPaths::Init ( void  )

Definition at line 43 of file TEcnaParPaths.cc.

43  {
44  fgMaxCar = (Int_t)512; // max number of characters in TStrings
45 
46  fTTBELL = '\007';
47 
48  //................ Init CNA Command and error numbering
49  fCnaCommand = (Int_t)0;
50  fCnaError = (Int_t)0;
51 
52 } // end of Init()

References fCnaCommand, fCnaError, fgMaxCar, and fTTBELL.

Referenced by TEcnaParPaths().

◆ PathModulesData()

TString TEcnaParPaths::PathModulesData ( )

Definition at line 360 of file TEcnaParPaths.cc.

360  {
361  // ----- return the path of data subdirectory in package "Modules"
362  TString ModulesdataPath = "";
363 
364  const Text_t *t_cmssw_base = (const Text_t *)CMSSWBase().Data();
365  ModulesdataPath.Append(t_cmssw_base);
366  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/
367 
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('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/src
372 
373  const Text_t *t_cmssw_subsystem = (const Text_t *)CMSSWSubsystem().Data();
374  ModulesdataPath.Append(t_cmssw_subsystem);
375  ModulesdataPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/src/CalibCalorimetry/
376 
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('/');
381  // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/src/CalibCalorimetry/EcalCorrelatedNoiseAnalysisModules/data/
382 
383  return ModulesdataPath;
384 }

References CMSSWBase(), and CMSSWSubsystem().

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

◆ PathTestScramArch()

TString TEcnaParPaths::PathTestScramArch ( )

Definition at line 386 of file TEcnaParPaths.cc.

386  {
387  // ----- return the path of test/slc... subdirectory in CMSSW_BASE
388  TString TestslcPath = "";
389 
390  const Text_t *t_cmssw_base = (const Text_t *)CMSSWBase().Data();
391  TestslcPath.Append(t_cmssw_base);
392  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/
393 
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('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/test
398 
399  const Text_t *t_cmssw_arch = (const Text_t *)SCRAMArch().Data();
400  TestslcPath.Append(t_cmssw_arch);
401  TestslcPath.Append('/'); // /afs/cern.ch/user/U/USERNAME/cmssw/CMSSW_X_Y_Z/test/slc4_ia32_gcc345/
402 
403  return TestslcPath;
404 }

References CMSSWBase(), and SCRAMArch().

Referenced by TEcnaGui::CleanBatchFiles().

◆ ResultsAsciiFilePath()

TString TEcnaParPaths::ResultsAsciiFilePath ( )

Definition at line 353 of file TEcnaParPaths.cc.

353 { return fCfgResultsAsciiFilePath; }

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ ResultsRootFilePath()

TString TEcnaParPaths::ResultsRootFilePath ( )

◆ SCRAMArch()

TString TEcnaParPaths::SCRAMArch ( )

Definition at line 357 of file TEcnaParPaths.cc.

357 { return fCfgSCRAMArch; }

References fCfgSCRAMArch.

Referenced by PathTestScramArch().

◆ SetHistoryRunListFilePath()

void TEcnaParPaths::SetHistoryRunListFilePath ( const TString &  ImposedPath)

Definition at line 413 of file TEcnaParPaths.cc.

413 { fCfgHistoryRunListFilePath = ImposedPath; }

References fCfgHistoryRunListFilePath.

◆ SetResultsAsciiFilePath()

void TEcnaParPaths::SetResultsAsciiFilePath ( const TString &  ImposedPath)

Definition at line 412 of file TEcnaParPaths.cc.

412 { fCfgResultsAsciiFilePath = ImposedPath; }

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ SetResultsRootFilePath()

void TEcnaParPaths::SetResultsRootFilePath ( const TString &  ImposedPath)

Definition at line 411 of file TEcnaParPaths.cc.

411 { fCfgResultsRootFilePath = ImposedPath; }

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ TruncateResultsAsciiFilePath()

void TEcnaParPaths::TruncateResultsAsciiFilePath ( const Int_t &  n1,
const Int_t &  nbcar 
)

Definition at line 419 of file TEcnaParPaths.cc.

419  {
420  fCfgResultsAsciiFilePath.Remove(n1, nbcar);
421 }

References fCfgResultsAsciiFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

◆ TruncateResultsRootFilePath()

void TEcnaParPaths::TruncateResultsRootFilePath ( const Int_t &  n1,
const Int_t &  nbcar 
)

Definition at line 415 of file TEcnaParPaths.cc.

415  {
416  fCfgResultsRootFilePath.Remove(n1, nbcar);
417 }

References fCfgResultsRootFilePath.

Referenced by TEcnaWrite::fMakeResultsFileName().

Member Data Documentation

◆ fCdelete

Int_t TEcnaParPaths::fCdelete
private

Definition at line 28 of file TEcnaParPaths.h.

◆ fCdeleteRoot

Int_t TEcnaParPaths::fCdeleteRoot
private

Definition at line 29 of file TEcnaParPaths.h.

◆ fCfgCMSSWBase

TString TEcnaParPaths::fCfgCMSSWBase
private

Definition at line 52 of file TEcnaParPaths.h.

Referenced by CMSSWBase(), and GetCMSSWParameters().

◆ fCfgCMSSWSubsystem

TString TEcnaParPaths::fCfgCMSSWSubsystem
private

Definition at line 53 of file TEcnaParPaths.h.

Referenced by CMSSWSubsystem(), and GetCMSSWParameters().

◆ fCfgHistoryRunListFilePath

TString TEcnaParPaths::fCfgHistoryRunListFilePath
private

◆ fCfgResultsAsciiFilePath

TString TEcnaParPaths::fCfgResultsAsciiFilePath
private

◆ fCfgResultsRootFilePath

TString TEcnaParPaths::fCfgResultsRootFilePath
private

◆ fCfgSCRAMArch

TString TEcnaParPaths::fCfgSCRAMArch
private

Definition at line 54 of file TEcnaParPaths.h.

Referenced by GetCMSSWParameters(), and SCRAMArch().

◆ fCnaCommand

Int_t TEcnaParPaths::fCnaCommand
private

Definition at line 35 of file TEcnaParPaths.h.

Referenced by Init().

◆ fCnaError

Int_t TEcnaParPaths::fCnaError
private

◆ fCnew

Int_t TEcnaParPaths::fCnew
private

Definition at line 28 of file TEcnaParPaths.h.

◆ fCnewRoot

Int_t TEcnaParPaths::fCnewRoot
private

Definition at line 29 of file TEcnaParPaths.h.

◆ fFcin_cmssw

std::ifstream TEcnaParPaths::fFcin_cmssw
private

Definition at line 41 of file TEcnaParPaths.h.

◆ fFcin_lor

std::ifstream TEcnaParPaths::fFcin_lor
private

Definition at line 39 of file TEcnaParPaths.h.

Referenced by GetPathForHistoryRunListFiles().

◆ fFcin_ra

std::ifstream TEcnaParPaths::fFcin_ra
private

Definition at line 38 of file TEcnaParPaths.h.

Referenced by GetPathForResultsAsciiFiles().

◆ fFcin_rr

std::ifstream TEcnaParPaths::fFcin_rr
private

Definition at line 37 of file TEcnaParPaths.h.

Referenced by GetPathForResultsRootFiles().

◆ fFileForCMSSWParameters

TString TEcnaParPaths::fFileForCMSSWParameters
private

Definition at line 55 of file TEcnaParPaths.h.

◆ fFileForHistoryRunListFilePath

TString TEcnaParPaths::fFileForHistoryRunListFilePath
private

Definition at line 50 of file TEcnaParPaths.h.

Referenced by GetPathForHistoryRunListFiles().

◆ fFileForResultsAsciiFilePath

TString TEcnaParPaths::fFileForResultsAsciiFilePath
private

Definition at line 47 of file TEcnaParPaths.h.

Referenced by GetPathForResultsAsciiFiles().

◆ fFileForResultsRootFilePath

TString TEcnaParPaths::fFileForResultsRootFilePath
private

Definition at line 44 of file TEcnaParPaths.h.

Referenced by GetPathForResultsRootFiles().

◆ fgMaxCar

Int_t TEcnaParPaths::fgMaxCar
private

◆ fTTBELL

TString TEcnaParPaths::fTTBELL
private
TEcnaParPaths::GetPathForHistoryRunListFiles
Bool_t GetPathForHistoryRunListFiles()
Definition: TEcnaParPaths.cc:233
TEcnaParPaths::GetPathForResultsAsciiFiles
Bool_t GetPathForResultsAsciiFiles()
Definition: TEcnaParPaths.cc:158
TEcnaParPaths::fTTBELL
TString fTTBELL
Definition: TEcnaParPaths.h:33
TEcnaParPaths::fFileForResultsRootFilePath
TString fFileForResultsRootFilePath
Definition: TEcnaParPaths.h:44
TEcnaParPaths::fCfgCMSSWSubsystem
TString fCfgCMSSWSubsystem
Definition: TEcnaParPaths.h:53
TEcnaParPaths::fCfgResultsAsciiFilePath
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:46
TEcnaParPaths::fFileForResultsAsciiFilePath
TString fFileForResultsAsciiFilePath
Definition: TEcnaParPaths.h:47
TEcnaParPaths::fFcin_lor
std::ifstream fFcin_lor
Definition: TEcnaParPaths.h:39
TEcnaParPaths::fFileForHistoryRunListFilePath
TString fFileForHistoryRunListFilePath
Definition: TEcnaParPaths.h:50
gather_cfg.cout
cout
Definition: gather_cfg.py:144
TEcnaParPaths::fCnaCommand
Int_t fCnaCommand
Definition: TEcnaParPaths.h:35
TEcnaParPaths::Init
void Init()
Definition: TEcnaParPaths.cc:43
TEcnaParPaths::fCfgResultsRootFilePath
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:43
TEcnaParPaths::fCfgCMSSWBase
TString fCfgCMSSWBase
Definition: TEcnaParPaths.h:52
TEcnaParPaths::CMSSWSubsystem
TString CMSSWSubsystem()
Definition: TEcnaParPaths.cc:356
TEcnaParPaths::SCRAMArch
TString SCRAMArch()
Definition: TEcnaParPaths.cc:357
TEcnaParPaths::fCnaError
Int_t fCnaError
Definition: TEcnaParPaths.h:35
TEcnaParPaths::fCfgHistoryRunListFilePath
TString fCfgHistoryRunListFilePath
Definition: TEcnaParPaths.h:49
TEcnaObject::RegisterPointer
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:100
TEcnaParPaths::fFcin_rr
std::ifstream fFcin_rr
Definition: TEcnaParPaths.h:37
TEcnaParPaths::GetCMSSWParameters
void GetCMSSWParameters()
Definition: TEcnaParPaths.cc:308
TEcnaParPaths::fFcin_ra
std::ifstream fFcin_ra
Definition: TEcnaParPaths.h:38
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TEcnaParPaths::CMSSWBase
TString CMSSWBase()
Definition: TEcnaParPaths.cc:355
TEcnaParPaths::GetPathForResultsRootFiles
Bool_t GetPathForResultsRootFiles()
Definition: TEcnaParPaths.cc:83
TEcnaParPaths::fgMaxCar
Int_t fgMaxCar
Definition: TEcnaParPaths.h:31
TEcnaParPaths::fCfgSCRAMArch
TString fCfgSCRAMArch
Definition: TEcnaParPaths.h:54