Changeset 12517 for fact/tools/rootmacros
- Timestamp:
- 11/14/11 19:39:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/fbsl.C
r12514 r12517 88 88 TCanvas* cFilter; 89 89 90 int spikeDebug = 0;91 int searchSinglesPeaks = 0;92 90 93 91 int fbsl( … … 100 98 int firstpixel = 0, 101 99 int npixel = -1, 100 int spikeDebug = 0, 101 int searchSinglesPeaks = 0, 102 102 bool produceGraphic = true 103 103 ){ … … 142 142 datafile->GetRow( ev ); 143 143 144 if ( ev % 100 == 0){144 if( ev % 100 == 0){ 145 145 cout << "Event ID: " << EventID << endl; 146 }147 146 } 147 148 148 // loop over pixel 149 149 for ( int pix = firstpixel ; pix < npixel+firstpixel ; pix++ ){ … … 165 165 sliding_avg(Vcorr, Vslide, 8); 166 166 167 for ( unsigned int sl = 0; sl < RegionOfInterest; sl++){167 for ( unsigned int sl = 0; sl < Vslide.size() ; sl++){ 168 168 // hPixelCellData.Fill( sl, Vcorr[sl] ); 169 169 hBaseline[pix-firstpixel]->Fill( Vslide[sl] ) ; 170 170 } 171 171 } 172 172 } 173 173 174 174 FILE *fp; … … 183 183 184 184 for (int pix = firstpixel; pix < firstpixel+npixel; pix++) { 185 186 float vmaxprob = hBaseline[pix]->GetXaxis()->GetBinCenter( 185 float vmaxprob = hBaseline[pix-firstpixel]->GetXaxis()->GetBinCenter( 187 186 hBaseline[pix-firstpixel]->GetMaximumBin() ); 188 187 … … 198 197 199 198 fclose( fp ); 199 200 200 201 201 SaveHistograms( RootOutFileName );
Note:
See TracChangeset
for help on using the changeset viewer.