00001 #ifndef ZTR_TEcnaParPaths 00002 #define ZTR_TEcnaParPaths 00003 00004 #include <Riostream.h> 00005 00006 #include "TObject.h" 00007 #include "TSystem.h" 00008 #include "Riostream.h" 00009 00010 //------------------------ TEcnaParPaths.h ----------------- 00011 // 00012 // For questions or comments, please send e-mail to: 00013 // 00014 // Bernard Fabbro 00015 // fabbro@hep.saclay.cea.fr 00016 //-------------------------------------------------------- 00017 00018 class TEcnaParPaths : public TObject { 00019 00020 private: 00021 00022 //..... Attributes 00023 00024 Int_t fgMaxCar; // Max nb of caracters for char* 00025 00026 Int_t fCnew, fCdelete; 00027 Int_t fCnewRoot, fCdeleteRoot; 00028 00029 TString fTTBELL; 00030 00031 Int_t fCnaCommand, fCnaError; 00032 00033 00034 ifstream fFcin_rr; // stream for results root files 00035 ifstream fFcin_ra; // stream for results ascii files 00036 ifstream fFcin_lor; // stream for list of runs files 00037 // ifstream fFcin_anapar; // stream for EcnaAnalyzer parameters files 00038 ifstream fFcin_cmssw; // stream for cmssw version and subsystem 00039 00040 TString fCfgResultsRootFilePath; // absolute path for the results .root files (/afs/etc...) 00041 TString fFileForResultsRootFilePath; // name of the file containing the results .root file path 00042 00043 TString fCfgResultsAsciiFilePath; // absolute path for the results .ascii files (/afs/etc...) 00044 TString fFileForResultsAsciiFilePath; // name of the file containing the results .ascii file path 00045 00046 TString fCfgHistoryRunListFilePath; // absolute path for the list-of-runs .ascii files (/afs/etc...) 00047 TString fFileForHistoryRunListFilePath; // name of the file containing the list-of-run file path 00048 00049 // TString fCfgAnalyzerParametersFilePath; // absolute path for the analyzer parameters files (/afs/etc...) 00050 // TString fFileForAnalyzerParametersFilePath; // name of the file containing the user's parameters file path 00051 00052 TString fCfgCMSSWVersion; // CMSSW version 00053 TString fCfgCMSSWSubsystem; // CMSSW subsystem name 00054 TString fCfgCMSSWSlc; // CMSSW slc... name 00055 TString fFileForCMSSWParameters; // name of the file containing the CMSSW version, subsystem and slc 00056 00057 00058 00059 public: 00060 00061 Bool_t fPathForResultsRootFiles; 00062 Bool_t fPathForResultsAsciiFiles; 00063 Bool_t fPathForHistoryRunListFiles; 00064 00065 //..... Methods 00066 00067 TEcnaParPaths(); 00068 virtual ~TEcnaParPaths(); 00069 00070 void Init(); 00071 00072 void GetPathForResultsRootFiles(); 00073 void GetPathForResultsAsciiFiles(); 00074 void GetPathForHistoryRunListFiles(); 00075 // void GetPathForAnalyzerParametersFiles(); 00076 void GetCMSSWParameters(); 00077 00078 void GetPathForResultsRootFiles(const TString); 00079 void GetPathForResultsAsciiFiles(const TString); 00080 void GetPathForHistoryRunListFiles(const TString); 00081 // void GetPathForAnalyzerParametersFiles(const TString); 00082 void GetCMSSWParameters(const TString); 00083 00084 TString ResultsRootFilePath(); 00085 TString ResultsAsciiFilePath(); 00086 TString HistoryRunListFilePath(); 00087 //TString AnalyzerParametersFilePath(); 00088 TString CMSSWVersion(); 00089 TString CMSSWSubsystem(); 00090 TString CMSSWSlc(); 00091 00092 void SetResultsRootFilePath(const TString); 00093 void SetResultsAsciiFilePath(const TString); 00094 00095 void TruncateResultsRootFilePath(const Int_t&, const Int_t&); 00096 void TruncateResultsAsciiFilePath(const Int_t&, const Int_t&); 00097 00098 TString BeginningOfResultsRootFilePath(); 00099 TString BeginningOfResultsAsciiFilePath(); 00100 00101 void AppendResultsRootFilePath(const Text_t *); 00102 void AppendResultsAsciiFilePath(const Text_t *); 00103 00104 TString PathModulesData(); 00105 TString PathTestSlc(); 00106 00107 00108 ClassDef(TEcnaParPaths,1)// Parameter management for CNA (Correlated Noises Analysis) 00109 00110 }; 00111 00112 #endif // ZTR_TEcnaParameter