CMS 3D CMS Logo

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  const TString &ResultsRootFilePath() const;
79  const TString &ResultsAsciiFilePath() const;
80  const TString &HistoryRunListFilePath() const;
81  const TString &CMSSWBase() const;
82  const TString &CMSSWSubsystem() const;
83  const TString &SCRAMArch() const;
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 &)
Int_t fCdeleteRoot
Definition: TEcnaParPaths.h:29
TString BeginningOfResultsRootFilePath()
std::ifstream fFcin_cmssw
Definition: TEcnaParPaths.h:41
void AppendResultsAsciiFilePath(const Text_t *)
const TString & ResultsAsciiFilePath() const
TString fCfgResultsAsciiFilePath
Definition: TEcnaParPaths.h:46
const TString & CMSSWSubsystem() const
TString fCfgResultsRootFilePath
Definition: TEcnaParPaths.h:43
const TString & HistoryRunListFilePath() const
const TString & CMSSWBase() const
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
const TString & SCRAMArch() const
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 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 fFileForResultsRootFilePath
Definition: TEcnaParPaths.h:44
const TString & ResultsRootFilePath() const
void SetResultsAsciiFilePath(const TString &)
TString PathTestScramArch()