- Timestamp:
- 10/27/11 21:36:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/fana.C
r12204 r12305 1 1 2 #include <TROOT.h> 2 3 #include <TCanvas.h> … … 12 13 #include <cstdio> 13 14 15 #define HAVE_ZLIB 14 16 #include "fits.h" 15 17 //#include "TPKplotevent.c" … … 17 19 #include "FOpenCalibFile.c" 18 20 21 #include "Region.h" 22 #include "zerosearch.h" 19 23 #include "zerosearch.C" 20 24 … … 105 109 106 110 // 2nd slinding window filter 107 int ks2 = 16;108 vector<double> as2(ks2, 1);109 double bs2 = ks2;111 //int ks2 = 16; 112 //vector<double> as2(ks2, 1); 113 //double bs2 = ks2; 110 114 gROOT->SetStyle("Plain"); 111 115 … … 195 199 } 196 200 197 vector<int> * zeros = zerosearch( Vcfd2, -1, 10, 20 ); 201 vector<Region> * zeros = zerosearch( Vcfd2, -1, 1, 0); 202 ShiftRegionBy(*zeros, -k_slide/2); 203 EnlargeRegion(*zeros, 10, 20); 204 findAbsMaxInRegions( *zeros, Vslide); 198 205 if (zeros->size() == 0 ){ 199 206 continue; 200 207 } 201 208 // check value of Vside at zero position 202 for ( int i=0; i<zeros->size(); i++){203 cout << zeros->at(i) << ":\t" << Vslide[ zeros->at(i) ]<<endl;204 sp->Fill( Vslide[zeros->at(i)]);209 for (unsigned int i=0; i<zeros->size(); i++){ 210 cout << zeros->at(i).maxPos << ":\t" << zeros->at(i).maxVal <<endl; 211 sp->Fill( zeros->at(i).maxVal ); 205 212 } 206 213
Note:
See TracChangeset
for help on using the changeset viewer.