Fork me on GitHub

Changeset eee94204 in git for modules/SimpleCalorimeter.cc


Ignore:
Timestamp:
Oct 15, 2021, 11:37:55 AM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
10c0ebe
Parents:
83e77ee
Message:

fixed bug introduced on calo tower postion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

    r83e77ee reee94204  
    450450  pt = energy / TMath::CosH(eta);
    451451
    452   // check whether barrel or endcap tower
    453   if ((fTowerRmax - fTower->Position.Perp()) < 1.e-06 && TMath::Abs(eta) > 0.)
     452  // endcap
     453  if (TMath::Abs(fTower->Position.Pt() - fTowerRmax) > 1.e-06 && TMath::Abs(eta) > 0.){
    454454    r = fTower->Position.Z()/TMath::SinH(eta);
    455   else
     455  }
     456  // barrel
     457  else {
    456458    r = fTower->Position.Pt();
     459  }
    457460
    458461  fTower->Position.SetPtEtaPhiE(r, eta, phi, time);
Note: See TracChangeset for help on using the changeset viewer.