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 |
|
|
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 |
//------------------------- |
//------------------------- |
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); |