Changeset 13735 for fact/tools/rootmacros/PulseTemplates
- Timestamp:
- 05/15/12 14:46:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
r13629 r13735 29 29 #include <TObjArray.h> 30 30 #include <TF1.h> 31 #include<TSystem.h> 31 32 32 33 #include <stdio.h> … … 182 183 void UpdateCanvases( int, int, bool); 183 184 void DeletePixelCanvases( int, int ); 185 TString SetHostsPaths(TString filename, bool Input); 186 187 TString gDataDirectory; 188 TString gHomeDirectory; 189 TString ghostname; 184 190 185 191 //---------------------------------------------------------------------------- … … 189 195 //---------------------------------------------------------------------------- 190 196 int FPulseOverlay( 191 TString datafilename = " /fhgfs/groups/app/fact-construction/raw/2011/11/09/20111109_006.fits.gz",192 TString drsfilename = " /fhgfs/groups/app/fact-construction/raw/2011/11/09/20111109_003.drs.fits.gz",193 TString OutRootFileName = " /home/jbuss/analysis/FPulseTemplate/20111109_006/Overlay/20111109_006.root",197 TString datafilename = "raw/2011/11/09/20111109_006.fits.gz", 198 TString drsfilename = "raw/2011/11/09/20111109_003.drs.fits.gz", 199 TString OutRootFileName = "analysis/FPulseTemplate/20111109_006/Overlay/20111109_006.root", 194 200 bool ProduceGraphic = false, 195 201 bool spikeDebug = false, … … 199 205 int verbosityLevel = 0, // different verbosity levels can be implemented here 200 206 int firstevent = 1, // Hast to be between 1 and infinity NOT 0!!!! 201 int nevents = -1,207 int nevents = 1, 202 208 int firstpixel = 0, 203 int npixel = -1,209 int npixel = 1, 204 210 int pixelSetSize = 200, 205 211 int maxPulseOrder = 4, … … 219 225 // Save-Root-File Settings 220 226 //---------------------------------------------------------------------------- 227 datafilename = SetHostsPaths(datafilename , true ); 228 drsfilename = SetHostsPaths(drsfilename , true ); 229 OutRootFileName = SetHostsPaths(OutRootFileName , false ); 230 221 231 if (saveResults) 222 232 { 223 CreateRootFile( OutRootFileName, verbosityLevel );233 CreateRootFile( OutRootFileName, false, verbosityLevel ); 224 234 } 225 235 … … 1206 1216 1207 1217 1218 TString 1219 SetHostsPaths(TString filename, bool Input) 1220 { 1221 ghostname = gSystem->HostName(); 1222 1223 TString temp_filename; 1224 1225 if ( ghostname.Contains("isdc") ) //IF ONE IS WORKING AT ISDC 1226 { 1227 gDataDirectory = "/fact/"; 1228 gHomeDirectory = "/home_nfs/isdc/jbbuss/"; 1229 } 1230 if ( ghostname.Contains("hpc") ) //IF ONE IS WORKING AT PHIDO 1231 { 1232 gDataDirectory = "/fhgfs/groups/app/fact-construction/"; 1233 gHomeDirectory = "/home/jbuss/"; 1234 } 1235 1236 if (Input) 1237 { 1238 temp_filename = gDataDirectory; 1239 temp_filename += filename; 1240 filename = temp_filename; 1241 } 1242 else if (!Input) 1243 { 1244 temp_filename = gHomeDirectory; 1245 temp_filename += filename; 1246 filename = temp_filename; 1247 } 1248 1249 return filename; 1250 } 1251 1252 1253 1208 1254 int main() 1209 1255 {
Note:
See TracChangeset
for help on using the changeset viewer.