Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

    r2628d2b rf8299bc  
    366366      energy = momentum.E() * fTrackFractions[number];
    367367
    368       fTrackTime += energy*position.T();
    369       fTrackTimeWeight += energy;
     368      fTrackTime += TMath::Sqrt(energy)*position.T();
     369      fTrackTimeWeight += TMath::Sqrt(energy);
    370370
    371371      if(fTrackFractions[number] > 1.0E-9)
     
    403403    fTowerEnergy += energy;
    404404
    405     fTowerTime += energy*position.T();
    406     fTowerTimeWeight += energy;
     405    fTowerTime += TMath::Sqrt(energy)*position.T();
     406    fTowerTimeWeight += TMath::Sqrt(energy);
    407407
    408408    fTower->AddCandidate(particle);
Note: See TracChangeset for help on using the changeset viewer.