201 |
/** |
/** |
202 |
* Method to get the histogram of calibration-parameters, for a VA1 chip, a ladder or a view. |
* Method to get the histogram of calibration-parameters, for a VA1 chip, a ladder or a view. |
203 |
*/ |
*/ |
204 |
TH1F* TrkCalib::GetHisto(TString what, Int_t ipkt, Int_t ivk){ |
TH1F* TrkCalib::GetHisto(TString what, Int_t ipkt, Int_t ivk, Int_t rebin){ |
205 |
|
|
206 |
Int_t from = (ivk-1)*128 ; |
Int_t from = (ivk-1)*128 ; |
207 |
Int_t to= ivk*128; |
Int_t to= ivk*128; |
225 |
Float_t* v = Get(what,ipkt,ivk); |
Float_t* v = Get(what,ipkt,ivk); |
226 |
HeaderDump(ipkt); |
HeaderDump(ipkt); |
227 |
for(Int_t i=from; i<to; i++)h->Fill(i,v[i-from]); |
for(Int_t i=from; i<to; i++)h->Fill(i,v[i-from]); |
228 |
|
if(rebin !=0 )h->Rebin(rebin); |
229 |
|
if(rebin !=0 )h->Scale(1./(float)rebin); |
230 |
return h; |
return h; |
231 |
|
|
232 |
} |
} |