CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TEcnaParPaths.h
Go to the documentation of this file.
1 #ifndef ZTR_TEcnaParPaths
2 #define ZTR_TEcnaParPaths
3 
4 #include <Riostream.h>
5 
6 #include "TObject.h"
7 #include "TSystem.h"
8 #include "Riostream.h"
9 
10 //------------------------ TEcnaParPaths.h -----------------
11 //
12 // For questions or comments, please send e-mail to:
13 //
14 // Bernard Fabbro
15 // fabbro@hep.saclay.cea.fr
16 //--------------------------------------------------------
17 
18 class TEcnaParPaths : public TObject {
19 
20  private:
21 
22  //..... Attributes
23 
24  Int_t fgMaxCar; // Max nb of caracters for char*
25 
26  Int_t fCnew, fCdelete;
28 
29  TString fTTBELL;
30 
32 
33 
34  ifstream fFcin_rr; // stream for results root files
35  ifstream fFcin_ra; // stream for results ascii files
36  ifstream fFcin_lor; // stream for list of runs files
37  // ifstream fFcin_anapar; // stream for EcnaAnalyzer parameters files
38  ifstream fFcin_cmssw; // stream for cmssw version and subsystem
39 
40  TString fCfgResultsRootFilePath; // absolute path for the results .root files (/afs/etc...)
41  TString fFileForResultsRootFilePath; // name of the file containing the results .root file path
42 
43  TString fCfgResultsAsciiFilePath; // absolute path for the results .ascii files (/afs/etc...)
44  TString fFileForResultsAsciiFilePath; // name of the file containing the results .ascii file path
45 
46  TString fCfgHistoryRunListFilePath; // absolute path for the list-of-runs .ascii files (/afs/etc...)
47  TString fFileForHistoryRunListFilePath; // name of the file containing the list-of-run file path
48 
49  // TString fCfgAnalyzerParametersFilePath; // absolute path for the analyzer parameters files (/afs/etc...)
50  // TString fFileForAnalyzerParametersFilePath; // name of the file containing the user's parameters file path
51 
52  TString fCfgCMSSWVersion; // CMSSW version
53  TString fCfgCMSSWSubsystem; // CMSSW subsystem name
54  TString fCfgCMSSWSlc; // CMSSW slc... name
55  TString fFileForCMSSWParameters; // name of the file containing the CMSSW version, subsystem and slc
56 
57 
58 
59  public:
60 
64 
65  //..... Methods
66 
67  TEcnaParPaths();
68  virtual ~TEcnaParPaths();
69 
70  void Init();
71 
75  // void GetPathForAnalyzerParametersFiles();
76  void GetCMSSWParameters();
77 
78  void GetPathForResultsRootFiles(const TString);
79  void GetPathForResultsAsciiFiles(const TString);
80  void GetPathForHistoryRunListFiles(const TString);
81  // void GetPathForAnalyzerParametersFiles(const TString);
82  void GetCMSSWParameters(const TString);
83 
84  TString ResultsRootFilePath();
85  TString ResultsAsciiFilePath();
86  TString HistoryRunListFilePath();
87  //TString AnalyzerParametersFilePath();
88  TString CMSSWVersion();
89  TString CMSSWSubsystem();
90  TString CMSSWSlc();
91 
92  void SetResultsRootFilePath(const TString);
93  void SetResultsAsciiFilePath(const TString);
94 
95  void TruncateResultsRootFilePath(const Int_t&, const Int_t&);
96  void TruncateResultsAsciiFilePath(const Int_t&, const Int_t&);
97 
100 
101  void AppendResultsRootFilePath(const Text_t *);
102  void AppendResultsAsciiFilePath(const Text_t *);
103 
104  TString PathModulesData();
105  TString PathTestSlc();
106 
107 
108 ClassDef(TEcnaParPaths,1)// Parameter management for CNA (Correlated Noises Analysis)
109 
110 };
111 
112 #endif // ZTR_TEcnaParameter
void GetCMSSWParameters()
TString CMSSWSlc()
Bool_t fPathForResultsAsciiFiles
Definition: TEcnaParPaths.h:62
ifstream fFcin_rr
Definition: TEcnaParPaths.h:34
virtual ~TEcnaParPaths()
ifstream fFcin_ra
Definition: TEcnaParPaths.h:35
TString HistoryRunListFilePath()
Int_t fCdeleteRoot
Definition: TEcnaParPaths.h:27
TString fCfgCMSSWSlc
Definition: TEcnaParPaths.h:54
TString BeginningOfResultsRootFilePath()
TString CMSSWVersion()
void AppendResultsAsciiFilePath(const Text_t *)
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:43
ifstream fFcin_lor
Definition: TEcnaParPaths.h:36
TString fCfgCMSSWVersion
Definition: TEcnaParPaths.h:52
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:40
void SetResultsRootFilePath(const TString)
void GetPathForResultsAsciiFiles()
TString CMSSWSubsystem()
ifstream fFcin_cmssw
Definition: TEcnaParPaths.h:38
TString BeginningOfResultsAsciiFilePath()
Bool_t fPathForHistoryRunListFiles
Definition: TEcnaParPaths.h:63
TString PathModulesData()
TString PathTestSlc()
void SetResultsAsciiFilePath(const TString)
TString fCfgHistoryRunListFilePath
Definition: TEcnaParPaths.h:46
TString fFileForCMSSWParameters
Definition: TEcnaParPaths.h:55
TString fFileForHistoryRunListFilePath
Definition: TEcnaParPaths.h:47
TString fFileForResultsAsciiFilePath
Definition: TEcnaParPaths.h:44
void TruncateResultsRootFilePath(const Int_t &, const Int_t &)
TString fCfgCMSSWSubsystem
Definition: TEcnaParPaths.h:53
TString ResultsRootFilePath()
void GetPathForResultsRootFiles()
void GetPathForHistoryRunListFiles()
Bool_t fPathForResultsRootFiles
Definition: TEcnaParPaths.h:61
TString fTTBELL
Definition: TEcnaParPaths.h:29
void TruncateResultsAsciiFilePath(const Int_t &, const Int_t &)
void AppendResultsRootFilePath(const Text_t *)
TString ResultsAsciiFilePath()
TString fFileForResultsRootFilePath
Definition: TEcnaParPaths.h:41