Changeset 12391
- Timestamp:
- 11/05/11 10:53:07 (13 years ago)
- Location:
- fact/tools/rootmacros
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/README.txt
r12389 r12391 32 32 root -l -q fbsl.C++'("/data00/fact-construction/raw/2011/10/26/20111026_036.fits.gz", "/data00/fact-construction/raw/2011/10/26/20111026_031.drs.fits.gz", "./fbsl.txt", "./20111026_036.root")' 33 33 34 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------35 34 35 ----------------------------------------------------------------------------------------------- 36 36 fpeak_cfd.C ROOT macro creating an amplitude spektrum for each pixel 37 37 … … 63 63 64 64 65 ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------65 ----------------------------------------------------------------------------------------------- 66 66 67 67 gainfit.C ROOT macro for analysing the amplitude spektra of fpeak_cfd.C … … 81 81 82 82 83 ----------------------------------------------------------------------------------------------- 84 flightpulser.C ROOT macro for plotting the amplitudes of the external lightpulser 85 86 call it e.g. like this 87 root 88 flightpulser.C+'("data/20111029_017.fits.gz","data/20111029_013.drs.fits.gz","../analysis/20111029_017-013_fpeak_cfd.root", 89 0, 100, 0,-1)' 90 91 to look at the amplitudes of all camera pixel for 100 events. 92 you get a color coded TH2F so you can look at the amplitude distribution 93 yourself. 94 95 this macro is based on fpeak_cdf.C pretty much. 96 I basically use the same steps, but in the end I just fill the absolute 97 maximum into the TH2F. 98 99 The macro is pretty slow (about 1.5 min for 100 full camera events) so I 100 switched off the sliding averages... 101 102 but it didn't help much... 103 104 I am still not sure how to improve the speed of these macros..... 105 106 -
fact/tools/rootmacros/zerosearch.C
r12382 r12391 349 349 } 350 350 351 Region FindAbsMax( 352 vector<Region> ®ions, 353 int VerbosityLevel) 354 { 355 Region AbsMax; 356 AbsMax.begin = -1; 357 AbsMax.maxPos = -1; 358 AbsMax.end = -1; 359 AbsMax.maxVal=-numeric_limits<float>::max(); 360 if (regions.size() < 1) 361 return AbsMax; 362 363 for (vector<Region>::iterator it = regions.begin(); it < regions.end(); ++it) 364 { 365 if (it->maxVal > AbsMax.maxVal ) { 366 AbsMax = *it; 367 } 368 } 369 return AbsMax; 370 } 371 351 372 //////////////// 352 373 ////////////// old Version of the code -
fact/tools/rootmacros/zerosearch.h
r12382 r12391 53 53 int VerbosityLevel=0); 54 54 55 Region FindAbsMax( 56 vector<Region> ®ions, 57 int VerbosityLevel=0); 58 55 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.