175 |
calibpatht = q4.PATH + q4.NAME; |
calibpatht = q4.PATH + q4.NAME; |
176 |
} |
} |
177 |
|
|
178 |
if(LOCAL_CONNECTION){ |
if(LOCAL_CONNECTION&&dbc){ |
|
delete dbc; |
|
179 |
dbc->Close(); |
dbc->Close(); |
180 |
if(TrkParams::DebugMode()){ |
if(TrkParams::DebugMode()){ |
181 |
cout << " DB connection closed."<<endl; |
cout << " DB connection closed."<<endl; |
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); |