/[PAMELA software]/DarthVader/TrackerLevel2/src/TrkCalib.cpp
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/TrkCalib.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-fi, Thu May 24 16:45:48 2007 UTC revision 1.3 by pam-fi, Tue Aug 7 13:56:28 2007 UTC
# Line 201  void TrkCalib::HeaderDump(Int_t ipkt){ Line 201  void TrkCalib::HeaderDump(Int_t ipkt){
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;
# Line 225  TH1F* TrkCalib::GetHisto(TString what, I Line 225  TH1F* TrkCalib::GetHisto(TString what, I
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  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23