CMS 3D CMS Logo

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