Changeset 12384 for fact/tools
- Timestamp:
- 11/04/11 21:23:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/fpeak_cdf.C
r12379 r12384 112 112 if (spikeDebug){ 113 113 cFiltered = new TCanvas("cFiltered","filtered DRS Waveforms",410,410,400,400); 114 cFiltered->Divide(1, 3);114 cFiltered->Divide(1, 4); 115 115 } 116 116 … … 144 144 145 145 if (verbosityLevel > 0) 146 cout <<"Tot el # of Pixel: "<< NumberOfPixels << "\t";146 cout <<"Total # of Pixel: "<< NumberOfPixels << "\t"; 147 147 if ( npixel == -1 || npixel > (int)NumberOfPixels ) npixel = (int)NumberOfPixels; // -1 means all! 148 148 if (verbosityLevel > 0) 149 cout <<"of, which "<< n events<< "will be processed"<< endl;149 cout <<"of, which "<< npixel << "will be processed"<< endl; 150 150 151 151 … … 171 171 } 172 172 173 applyDrsCalibration( Ameas,pix, 173 applyDrsCalibration( Ameas,pix,12,12, 174 174 drs_basemean, drs_gainmean, drs_triggeroffsetmean, 175 175 RegionOfInterest, AllPixelDataVector, StartCellVector); … … 196 196 findAbsMaxInRegions( *zXings, Vslide); 197 197 removeMaximaBelow( *zXings, 3.0, 0); 198 removeRegionWithMaxOnEdge( *zXings, 2); 198 199 removeRegionOnFallingEdge( *zXings, 100); 199 200 … … 210 211 211 212 if ( spikeDebug ){ 213 214 // TODO do this correct. The vectors should be the rigt ones... this is just luck 215 debugHistos[Ameas_].GetXaxis()->Set(Ameas.size() , -0.5 , Ameas.size()-0.5); 216 debugHistos[Vcorr_].GetXaxis()->Set(Ameas.size() , -0.5 , Ameas.size()-0.5); 217 debugHistos[Vslide_].GetXaxis()->Set(Ameas.size() , -0.5 , Ameas.size()-0.5); 218 debugHistos[Vcfd_].GetXaxis()->Set(Ameas.size() , -0.5 , Ameas.size()-0.5); 219 debugHistos[Vcfd2_].GetXaxis()->Set(Ameas.size() , -0.5 , Ameas.size()-0.5); 220 212 221 for ( unsigned int sl = 0; sl < RegionOfInterest; sl++){ 213 222 debugHistos[Ameas_].SetBinContent(sl, Ameas[sl]); 223 debugHistos[Vcorr_].SetBinContent(sl, Vcorr[sl]); 214 224 debugHistos[Vslide_].SetBinContent( sl, Vslide[sl] ); 215 225 debugHistos[Vcfd_].SetBinContent( sl, Vcfd[sl] ); … … 219 229 cFiltered->cd(1); 220 230 gPad->SetGrid(); 231 debugHistos[Ameas_].Draw(); 232 233 cFiltered->cd(2); 234 gPad->SetGrid(); 221 235 debugHistos[Vcorr_].Draw(); 222 236 223 cFiltered->cd( 2);237 cFiltered->cd(3); 224 238 gPad->SetGrid(); 225 239 debugHistos[Vslide_].Draw(); … … 241 255 } 242 256 243 cFiltered->cd( 3);257 cFiltered->cd(4); 244 258 gPad->SetGrid(); 245 259 debugHistos[Vcfd2_].Draw();
Note:
See TracChangeset
for help on using the changeset viewer.