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

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

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

revision 1.25 by pam-fi, Tue Nov 25 14:41:37 2008 UTC revision 1.26 by mocchiut, Fri Jan 29 05:49:32 2010 UTC
# Line 348  void TrkParams::FillACalibFrom(TFile* f0 Line 348  void TrkParams::FillACalibFrom(TFile* f0
348  //     tr2->SetBranchAddress("CalibTrk2",&calibdata2);  //     tr2->SetBranchAddress("CalibTrk2",&calibdata2);
349      tr1->SetBranchAddress("CalibTrk1",calib1->GetPointerTo());      tr1->SetBranchAddress("CalibTrk1",calib1->GetPointerTo());
350      tr2->SetBranchAddress("CalibTrk2",calib2->GetPointerTo());      tr2->SetBranchAddress("CalibTrk2",calib2->GetPointerTo());
351      tr1->GetEntry(ev_reg1);      if ( tr1->GetEntry(ev_reg1) <= 0 ) throw -36;//EM
352      tr2->GetEntry(ev_reg2);      if ( tr2->GetEntry(ev_reg2) <= 0 ) throw -36;//EM
353      Int_t dspn1(0),dspn2(0);      Int_t dspn1(0),dspn2(0);
354    
355    
# Line 547  void TrkParams::FillMask(TFile* f0, Int_ Line 547  void TrkParams::FillMask(TFile* f0, Int_
547              //-------------------------              //-------------------------
548              tr = (TTree*)f0->Get("CalibTrk1");                tr = (TTree*)f0->Get("CalibTrk1");  
549              tr->SetBranchAddress("CalibTrk1",calib->GetPointerTo());              tr->SetBranchAddress("CalibTrk1",calib->GetPointerTo());
550              tr->GetEntry(ev_reg1);              if ( tr->GetEntry(ev_reg1) <= 0 ) throw -36;//EM
551          }          }
552          if(i==1){          if(i==1){
553              //-------------------------              //-------------------------
# Line 555  void TrkParams::FillMask(TFile* f0, Int_ Line 555  void TrkParams::FillMask(TFile* f0, Int_
555              //-------------------------              //-------------------------
556              tr = (TTree*)f0->Get("CalibTrk2");              tr = (TTree*)f0->Get("CalibTrk2");
557              tr->SetBranchAddress("CalibTrk2",calib->GetPointerTo());              tr->SetBranchAddress("CalibTrk2",calib->GetPointerTo());
558              tr->GetEntry(ev_reg2);              if ( tr->GetEntry(ev_reg2) <= 0 ) throw -36;
559          }          }
560          for(Int_t ipkt=0; ipkt<NPLANE; ipkt++){          for(Int_t ipkt=0; ipkt<NPLANE; ipkt++){
561              Int_t view   = calib->GetView(ipkt);              Int_t view   = calib->GetView(ipkt);

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.23