Skip to content
Snippets Groups Projects
Commit 166f8314 authored by Hass AbouZeid's avatar Hass AbouZeid
Browse files

Merge branch 'cherry-pick-18a08519' into '21.0'

Merge branch 'master-my-topic' into '21.1' -- cherry pick to 21.0

See merge request !2749

Former-commit-id: aeecfcc5b75315f31d0130cc314106c6a40a60eb
parents 5d8438b2 765a98dc
No related branches found
No related tags found
No related merge requests found
......@@ -547,7 +547,7 @@ void TrigL2MuonSA::RpcPatFinder::abcal(unsigned int result_pat, size_t index[],
}//else
for(int i=1;i<3;i++){
if(hot_max[i]!=999 && hot_min[i]!=-999){
if(hot_max[i]!=-999 && hot_min[i]!=999){
if(Z[hot_max[i]]!=Z[hot_min[i]]){
aw[i] = (R[hot_max[i]]- R[hot_min[i]]) / (Z[hot_max[i]]-Z[hot_min[i]]);
bw[i] = R[hot_max[i]] - Z[hot_max[i]]*aw[i];
......
......@@ -104,8 +104,8 @@ StatusCode TrigL2MuonSA::RpcRoadDefiner::defineRoad(const LVL1::RecMuonRoI*
const int N_SECTOR = 2; // 0: normal, 1:overlap
if (m_use_rpc) {
double aw[3];
double bw[3];
double aw[3]={0.,0.,0.};
double bw[3]={0.,0.,0.};
unsigned int rpc_pattern;
if ( (*rpcPatFinder)->findPatternEta(aw, bw, rpc_pattern) ) {
rpcFitResult.isSuccess = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment