Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

ArchTestNames.cpp

Go to the documentation of this file.
00001 #include "ArchTestNames.h"
00002 #include <iostream>
00003 #include <stdlib.h>
00004 #include <string>
00005 
00006 using std::string;
00007 
00008 /********************************** ArchScan Methods Definitions ************************/
00009 
00010 
00011 /***********************  Constructor  *************** */
00012 
00013 ArchTestNames::ArchTestNames()  {
00014 
00015   runID ="Run?";
00016   moduleID ="Module?";
00017   testType ="Stand-AloneScans";
00018   
00019 }
00020   
00021   
00022 ArchTestNames::ArchTestNames(const long runNumber, const string Pers_moduleName,const string tType )  {
00023   
00024   char tmp_runID[40];
00025   sprintf(tmp_runID,"Run%i",runNumber);
00026   runID = tmp_runID ;
00027 
00028   int dot = Pers_moduleName.find('.');
00029   moduleID = "Module" + Pers_moduleName.substr(0, dot) ;
00030   testType = tType;
00031   
00032 
00033 }
00034 
00035 
00036 void ArchTestNames::setModuleName(string moduleName)  {
00037     
00038   int dot = moduleName.find('.');
00039   moduleID = "Module" + moduleName.substr(0, dot) ;
00040   
00041   
00042 }
00043 
00044 const string ArchTestNames::getfilename() {
00045 
00046   string filename;
00047   //filename = runID + "." + testID + ".root";
00048   filename = runID + ".root";
00049   return filename;
00050 
00051 }
00052 
00053 const string ArchTestNames::getIndexFileName() {
00054 
00055   string index;
00056   index = "ArchIndex";
00057   index = index + ".out";
00058   return index;
00059 
00060 }
00061 
00062 const string ArchTestNames::getChipTrimID(int chipN) {
00063 
00064   string ChipTrimID;
00065   char tmp_ChipTrimID[40];
00066   sprintf(tmp_ChipTrimID,"Trim_Chip%i",chipN);
00067   ChipTrimID = tmp_ChipTrimID;
00068   return ChipTrimID;
00069 
00070 }
00071 
00072 
00073 const string ArchTestNames::getChipTrimFitID(int chipN) {
00074 
00075   string ChipTrimFitID;
00076   char tmp_ChipTrimFitID[40];
00077   sprintf(tmp_ChipTrimFitID,"TrimFit_Chip%i",chipN);
00078   ChipTrimFitID = tmp_ChipTrimFitID;
00079   return ChipTrimFitID;
00080 
00081 }
00082 
00083 
00084 const string ArchTestNames::getFBChipN(unsigned int chipN) {
00085 
00086   string ChipN;
00087   char tmp_ChipN[40];
00088   sprintf(tmp_ChipN,"FullBypas_Chip%i",chipN);
00089   ChipN= tmp_ChipN;
00090   return ChipN;
00091 
00092 }
00093 
00094 const string ArchTestNames::getChipFitID(unsigned int chipN) {
00095 
00096   string ChipN;
00097   char tmp_ChipN[40];
00098   sprintf(tmp_ChipN,"ChipFit%i",chipN);
00099   ChipN= tmp_ChipN;
00100   return ChipN;
00101 
00102 }
00103 
00104 const string ArchTestNames::getChipGraphID(unsigned int chipN) {
00105 
00106   string ChipN;
00107   char tmp_ChipN[40];
00108   sprintf(tmp_ChipN,"ChipGraph%i",chipN);
00109   ChipN= tmp_ChipN;
00110   return ChipN;
00111 
00112 }
00113 
00114 const string ArchTestNames::getChannelFitID(unsigned int channelN) {
00115 
00116   string ChannelN;
00117   char tmp_ChannelN[40];
00118   sprintf(tmp_ChannelN,"ChannelFit%i",channelN);
00119   ChannelN= tmp_ChannelN;
00120   return ChannelN;
00121 
00122 }
00123 
00124 const string ArchTestNames::getChannelGraphID(unsigned int channelN) {
00125 
00126   string ChannelN;
00127   char tmp_ChannelN[40];
00128   sprintf(tmp_ChannelN,"ChannelGraph%i",channelN);
00129   ChannelN= tmp_ChannelN;
00130   return ChannelN;
00131 
00132 }
00133 
00134 const string ArchTestNames::getChipNOFitID(unsigned int chipN) {
00135 
00136   string ChipN;
00137   char tmp_ChipN[40];
00138   sprintf(tmp_ChipN,"ChipNOFit%i",chipN);
00139   ChipN= tmp_ChipN;
00140   return ChipN;
00141 
00142 }
00143 
00144 const string ArchTestNames::getChipNOGraphID(unsigned int chipN) {
00145 
00146   string ChipN;
00147   char tmp_ChipN[40];
00148   sprintf(tmp_ChipN,"ChipNOGraph%i",chipN);
00149   ChipN= tmp_ChipN;
00150   return ChipN;
00151 
00152 }
00153 
00154 
00155 const string ArchTestNames::getTimewalkID(unsigned int chipN) {
00156 
00157   string ChipN;
00158   char tmp_ChipN[40];
00159   sprintf(tmp_ChipN,"TimeWalk%i",chipN);
00160   ChipN= tmp_ChipN;
00161   return ChipN;
00162 
00163 }
00164 
00165 
00166 const string ArchTestNames::getCalibrationID(unsigned int chipN) {
00167 
00168   string ChipN;
00169   char tmp_ChipN[40];
00170   sprintf(tmp_ChipN,"Calibration%i",chipN);
00171   ChipN= tmp_ChipN;
00172   return ChipN;
00173 
00174 }

Generated on Mon Dec 15 19:35:57 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3