Fork me on GitHub

Changeset 2628d2b in git for modules/SimpleCalorimeter.cc


Ignore:
Timestamp:
Jun 13, 2016, 3:30:43 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
efc1546
Parents:
9a9afa8
Message:

energy weighted time in ECAL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

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