Fork me on GitHub

Changeset 61dccd3 in git for modules/SimpleCalorimeter.cc


Ignore:
Timestamp:
Aug 24, 2021, 11:57:44 AM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
83e77ee
Parents:
1ad8eca
Message:

added charged deposit to calo, fix time calc in DR, add path length to tower

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

    r1ad8eca r61dccd3  
    451451
    452452  // check whether barrel or endcap tower
    453   if (fTower->Position.Perp() < fTowerRmax && TMath::Abs(eta) > 0.)
     453  if ((fTowerRmax - fTower->Position.Perp()) < 1.e-06 && TMath::Abs(eta) > 0.)
    454454    r = fTower->Position.Z()/TMath::SinH(eta);
    455455  else
     
    458458  fTower->Position.SetPtEtaPhiE(r, eta, phi, time);
    459459  fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy);
     460  fTower->L = fTower->Position.Vect().Mag();
    460461
    461462  fTower->Eem = (!fIsEcal) ? 0 : energy;
    462463  fTower->Ehad = (fIsEcal) ? 0 : energy;
     464  fTower->Etrk = fTrackEnergy;
    463465
    464466  fTower->Edges[0] = fTowerEdges[0];
Note: See TracChangeset for help on using the changeset viewer.