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 
11 
23 
24 class TEcnaParPaths : public TObject {
25 
26  private:
27 
28  //..... Attributes
29 
30  Int_t fgMaxCar; // Max nb of caracters for char*
31 
32  Int_t fCnew, fCdelete;
34 
35  TString fTTBELL;
36 
38 
39  ifstream fFcin_rr; // stream for results root files
40  ifstream fFcin_ra; // stream for results ascii files
41  ifstream fFcin_lor; // stream for list of runs files
42  // ifstream fFcin_anapar; // stream for EcnaAnalyzer parameters files
43  ifstream fFcin_cmssw; // stream for cmssw version and subsystem
44 
45  TString fCfgResultsRootFilePath; // absolute path for the results .root files (/afs/etc...)
46  TString fFileForResultsRootFilePath; // name of the file containing the results .root file path
47 
48  TString fCfgResultsAsciiFilePath; // absolute path for the results .ascii files (/afs/etc...)
49  TString fFileForResultsAsciiFilePath; // name of the file containing the results .ascii file path
50 
51  TString fCfgHistoryRunListFilePath; // absolute path for the list-of-runs .ascii files (/afs/etc...)
52  TString fFileForHistoryRunListFilePath; // name of the file containing the list-of-run file path
53 
54  TString fCfgCMSSWBase; // CMSSW base user's directory
55  TString fCfgCMSSWSubsystem; // CMSSW subsystem name
56  TString fCfgSCRAMArch; // SCRAM ARCHITECTURE
57  TString fFileForCMSSWParameters; // name of the file containing the CMSSW version, subsystem and slc
58 
59  public:
60 
61  //..... Methods
62 
63  TEcnaParPaths();
65  virtual ~TEcnaParPaths();
66 
67  void Init();
68 
72  void GetCMSSWParameters();
73 
74  Bool_t GetPathForResultsRootFiles(const TString);
75  Bool_t GetPathForResultsAsciiFiles(const TString);
76  Bool_t GetPathForHistoryRunListFiles(const TString);
77  // Bool_t GetCMSSWParameters(const TString);
78 
79  Bool_t GetPaths();
80 
81  TString ResultsRootFilePath();
82  TString ResultsAsciiFilePath();
83  TString HistoryRunListFilePath();
84  TString CMSSWBase();
85  TString CMSSWSubsystem();
86  TString SCRAMArch();
87 
88  void SetResultsRootFilePath(const TString);
89  void SetResultsAsciiFilePath(const TString);
90  void SetHistoryRunListFilePath(const TString);
91 
92  void TruncateResultsRootFilePath(const Int_t&, const Int_t&);
93  void TruncateResultsAsciiFilePath(const Int_t&, const Int_t&);
94 
97 
98  void AppendResultsRootFilePath(const Text_t *);
99  void AppendResultsAsciiFilePath(const Text_t *);
100 
101  TString PathModulesData();
102  TString PathTestScramArch();
103 
104 
105 ClassDef(TEcnaParPaths,1)// Parameter management for ECNA (Ecal Correlated Noises Analysis)
106 
107 };
108 
109 #endif // ZTR_TEcnaParPaths
void GetCMSSWParameters()
Bool_t GetPathForHistoryRunListFiles()
ifstream fFcin_rr
Definition: TEcnaParPaths.h:39
virtual ~TEcnaParPaths()
TString fCfgSCRAMArch
Definition: TEcnaParPaths.h:56
ifstream fFcin_ra
Definition: TEcnaParPaths.h:40
TString CMSSWBase()
TString HistoryRunListFilePath()
Int_t fCdeleteRoot
Definition: TEcnaParPaths.h:33
TString BeginningOfResultsRootFilePath()
void AppendResultsAsciiFilePath(const Text_t *)
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:48
ifstream fFcin_lor
Definition: TEcnaParPaths.h:41
TString SCRAMArch()
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:45
void SetResultsRootFilePath(const TString)
TString CMSSWSubsystem()
ifstream fFcin_cmssw
Definition: TEcnaParPaths.h:43
TString BeginningOfResultsAsciiFilePath()
Bool_t GetPaths()
TString PathModulesData()
Bool_t GetPathForResultsRootFiles()
void SetResultsAsciiFilePath(const TString)
TString fCfgHistoryRunListFilePath
Definition: TEcnaParPaths.h:51
TString fFileForCMSSWParameters
Definition: TEcnaParPaths.h:57
TString fFileForHistoryRunListFilePath
Definition: TEcnaParPaths.h:52
TString fFileForResultsAsciiFilePath
Definition: TEcnaParPaths.h:49
void TruncateResultsRootFilePath(const Int_t &, const Int_t &)
TString fCfgCMSSWSubsystem
Definition: TEcnaParPaths.h:55
TString ResultsRootFilePath()
TString fCfgCMSSWBase
Definition: TEcnaParPaths.h:54
TString fTTBELL
Definition: TEcnaParPaths.h:35
void TruncateResultsAsciiFilePath(const Int_t &, const Int_t &)
void SetHistoryRunListFilePath(const TString)
void AppendResultsRootFilePath(const Text_t *)
Bool_t GetPathForResultsAsciiFiles()
TString ResultsAsciiFilePath()
TString fFileForResultsRootFilePath
Definition: TEcnaParPaths.h:46
TString PathTestScramArch()