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  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
TEcnaParPaths::GetPathForHistoryRunListFiles
Bool_t GetPathForHistoryRunListFiles()
Definition: TEcnaParPaths.cc:233
TEcnaParPaths::GetPathForResultsAsciiFiles
Bool_t GetPathForResultsAsciiFiles()
Definition: TEcnaParPaths.cc:158
TEcnaParPaths::fCdelete
Int_t fCdelete
Definition: TEcnaParPaths.h:28
TEcnaParPaths::fTTBELL
TString fTTBELL
Definition: TEcnaParPaths.h:33
TEcnaParPaths::HistoryRunListFilePath
TString HistoryRunListFilePath()
Definition: TEcnaParPaths.cc:354
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::TruncateResultsRootFilePath
void TruncateResultsRootFilePath(const Int_t &, const Int_t &)
Definition: TEcnaParPaths.cc:415
TEcnaParPaths::PathModulesData
TString PathModulesData()
Definition: TEcnaParPaths.cc:360
TEcnaParPaths::fFcin_lor
std::ifstream fFcin_lor
Definition: TEcnaParPaths.h:39
TEcnaParPaths::fFileForHistoryRunListFilePath
TString fFileForHistoryRunListFilePath
Definition: TEcnaParPaths.h:50
TEcnaParPaths::fCnaCommand
Int_t fCnaCommand
Definition: TEcnaParPaths.h:35
TEcnaParPaths::BeginningOfResultsAsciiFilePath
TString BeginningOfResultsAsciiFilePath()
Definition: TEcnaParPaths.cc:431
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::AppendResultsAsciiFilePath
void AppendResultsAsciiFilePath(const Text_t *)
Definition: TEcnaParPaths.cc:443
TEcnaParPaths::fFileForCMSSWParameters
TString fFileForCMSSWParameters
Definition: TEcnaParPaths.h:55
TEcnaParPaths::CMSSWSubsystem
TString CMSSWSubsystem()
Definition: TEcnaParPaths.cc:356
TEcnaParPaths::fCnew
Int_t fCnew
Definition: TEcnaParPaths.h:28
TEcnaParPaths::AppendResultsRootFilePath
void AppendResultsRootFilePath(const Text_t *)
Definition: TEcnaParPaths.cc:439
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
TEcnaParPaths::PathTestScramArch
TString PathTestScramArch()
Definition: TEcnaParPaths.cc:386
TEcnaParPaths::TruncateResultsAsciiFilePath
void TruncateResultsAsciiFilePath(const Int_t &, const Int_t &)
Definition: TEcnaParPaths.cc:419
TEcnaParPaths::BeginningOfResultsRootFilePath
TString BeginningOfResultsRootFilePath()
Definition: TEcnaParPaths.cc:423
TEcnaParPaths::fFcin_rr
std::ifstream fFcin_rr
Definition: TEcnaParPaths.h:37
TEcnaParPaths::fCnewRoot
Int_t fCnewRoot
Definition: TEcnaParPaths.h:29
TEcnaParPaths::GetCMSSWParameters
void GetCMSSWParameters()
Definition: TEcnaParPaths.cc:308
TEcnaObject.h
TEcnaParPaths
Definition: TEcnaParPaths.h:24
TEcnaParPaths::fCdeleteRoot
Int_t fCdeleteRoot
Definition: TEcnaParPaths.h:29
TEcnaObject
Definition: TEcnaObject.h:25
TEcnaParPaths::TEcnaParPaths
TEcnaParPaths()
Definition: TEcnaParPaths.cc:29
TEcnaParPaths::fFcin_ra
std::ifstream fFcin_ra
Definition: TEcnaParPaths.h:38
TEcnaParPaths::SetResultsAsciiFilePath
void SetResultsAsciiFilePath(const TString &)
Definition: TEcnaParPaths.cc:412
TEcnaParPaths::fFcin_cmssw
std::ifstream fFcin_cmssw
Definition: TEcnaParPaths.h:41
TEcnaParPaths::~TEcnaParPaths
~TEcnaParPaths() override
Definition: TEcnaParPaths.cc:18
TEcnaParPaths::CMSSWBase
TString CMSSWBase()
Definition: TEcnaParPaths.cc:355
TEcnaParPaths::SetResultsRootFilePath
void SetResultsRootFilePath(const TString &)
Definition: TEcnaParPaths.cc:411
TEcnaParPaths::SetHistoryRunListFilePath
void SetHistoryRunListFilePath(const TString &)
Definition: TEcnaParPaths.cc:413
TEcnaParPaths::ResultsRootFilePath
TString ResultsRootFilePath()
Definition: TEcnaParPaths.cc:352
TEcnaParPaths::GetPathForResultsRootFiles
Bool_t GetPathForResultsRootFiles()
Definition: TEcnaParPaths.cc:83
TEcnaParPaths::ResultsAsciiFilePath
TString ResultsAsciiFilePath()
Definition: TEcnaParPaths.cc:353
TEcnaParPaths::fgMaxCar
Int_t fgMaxCar
Definition: TEcnaParPaths.h:31
TEcnaParPaths::fCfgSCRAMArch
TString fCfgSCRAMArch
Definition: TEcnaParPaths.h:54
TEcnaParPaths::GetPaths
Bool_t GetPaths()
Definition: TEcnaParPaths.cc:54