Changeset 4044
- Timestamp:
- 05/11/04 09:53:00 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r4043 r4044 19 19 -*-*- END OF LINE -*-*- 20 20 21 2004/05/11: Javier Rico 21 2004/05/11: Ester Aliu 22 * programs/makeHillas.cc, programs/makehillas.datacard 23 - add island calculations 24 25 2004/05/11: Javier Rico 22 26 * programs/makeHillas.cc 23 27 - prevent it from bombing because of the mjobs -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r4043 r4044 38 38 #include "MHillasSrcCalc.h" 39 39 #include "MHillasCalc.h" 40 #include "MArrivalTimeCam.h" 41 #include "MArrivalTimeCalc2.h" 42 #include "MIslands.h" 43 #include "MIslandCalc.h" 44 #include "MIslandClean.h" 40 45 #include "MWriteRootFile.h" 41 46 #include "MProgressBar.h" … … 70 75 Float_t lcore = 3.0; 71 76 Float_t ltail = 1.5; 77 Int_t islflag = 0; 78 Float_t lnew = 40; 79 Int_t kmethod = 1; 72 80 Int_t nfiles = 0; 73 81 … … 213 221 MSrcPosCam source; 214 222 MRawRunHeader runhead; 223 224 MArrivalTimeCam timecam; 225 226 MIslands isl; 227 isl.SetName("MIslands1"); 228 229 MIslands isl2; 230 isl2.SetName("MIslands2"); 231 232 if (islflag == 1 || islflag == 2) 233 { 234 plist4.AddToList(&timecam); 235 plist4.AddToList(&isl); 236 } 237 238 if (islflag == 2) 239 { 240 plist4.AddToList(&isl2); 241 } 215 242 216 243 plist4.AddToList(&geomcam); … … 241 268 242 269 MImgCleanStd clean(lcore,ltail); 270 271 MArrivalTimeCalc2 timecalc; 272 273 MIslandCalc island; 274 island.SetOutputName("MIslands1"); 275 276 MIslandClean islclean(lnew); 277 islclean.SetInputName("MIslands1"); 278 islclean.SetMethod(kmethod); 279 280 MIslandCalc island2; 281 island2.SetOutputName("MIslands2"); 282 283 243 284 MHillasCalc hcalc; 244 285 MHillasSrcCalc csrc1; 245 286 246 287 MWriteRootFile write(outname,"RECREATE"); 247 288 248 289 write.AddContainer("MHillas" , "Parameters"); 249 290 write.AddContainer("MHillasSrc" , "Parameters"); … … 254 295 write.AddContainer("MConcentration" , "Parameters"); 255 296 write.AddContainer("MSrcPosCam" , "Parameters"); 256 297 298 if (islflag == 1 || islflag == 2) 299 write.AddContainer("MIslands1" , "Parameters"); 300 if (islflag == 2) 301 write.AddContainer("MIslands2" , "Parameters"); 302 257 303 tlist4.AddToList(&read4); 258 304 tlist4.AddToList(&geomapl); … … 261 307 //tlist4.AddToList(&blind); 262 308 tlist4.AddToList(&clean); 309 310 if (islflag == 1 || islflag == 2) 311 { 312 tlist4.AddToList(&timecalc); 313 tlist4.AddToList(&island); 314 } 315 316 if (islflag == 2) 317 { 318 tlist4.AddToList(&islclean); 319 tlist4.AddToList(&island2); 320 } 321 263 322 //tlist4.AddToList(&blind2); 264 323 tlist4.AddToList(&hcalc); … … 360 419 ifun >> ltail; 361 420 } 421 422 if(strcmp(word.Data(),"ISLFLAG")==0) 423 { 424 ifun >> islflag; 425 } 426 427 // island cleaning 428 if (islflag == 2){ 429 if(strcmp(word.Data(),"ISLANDCLEAN")==0) 430 { 431 ifun >> kmethod; 432 ifun >> lnew; 433 } 434 } 362 435 } 363 436 … … 384 457 cout << "Calibration flag: " << calflag << endl; 385 458 cout << "Cleaning level: ("<<lcore<<","<<ltail<<")" << endl; 459 if (islflag == 1 || islflag == 2) 460 cout << "Island calcultation..." << endl; 461 if (islflag == 2) 462 { 463 cout << "Island Cleaning: "<< kmethod <<" method "<< lnew << " new threshold" << endl; 464 } 386 465 cout << "***********" << endl << endl; 387 466 388 467 if(!pediter.GetNumEntries()) 389 468 { -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r3973 r4044 23 23 // Cleaning level 24 24 CLEANLEVEL 3.0 1.5 25 26 //Island calculations 27 // 0 nothing about islands 28 // 1 islands w/o cleaning 29 // 2 islands w cleaning 30 ISLFLAG 0 31 32 // island cleaning: 33 // 0: timing method val:0.2, 0.3, 0.5... 34 // 1: no timing method val: 40, 50, 60... 35 ISLANDCLEAN 1 40
Note:
See TracChangeset
for help on using the changeset viewer.