Fork me on GitHub

Changeset d77b51d in git for modules/SimpleCalorimeter.cc


Ignore:
Timestamp:
Sep 29, 2015, 2:08:10 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
a98c7ef
Parents:
d870fc5 (diff), 06ec139 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/master'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

    rd870fc5 rd77b51d  
    150150  fEnergySignificanceMin = GetDouble("EnergySignificanceMin", 0.0);
    151151
     152  // flag that says if current calo is Ecal of Hcal (will then fill correct values of Eem and Ehad)
     153  fIsEcal = GetBool("IsEcal", false);
     154
    152155  // switch on or off the dithering of the center of calorimeter towers
    153   fDitherTowerCenter = GetBool("DitherTowerCenter", true);
     156  fSmearTowerCenter = GetBool("SmearTowerCenter", true);
    154157
    155158  // read resolution formulas
     
    409412  if(energy < fEnergyMin || energy < fEnergySignificanceMin*sigma) energy = 0.0;
    410413
    411   if(fDitherTowerCenter)
     414  if(fSmearTowerCenter)
    412415  {
    413416    eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]);
     
    424427  fTower->Position.SetPtEtaPhiE(1.0, eta, phi, time);
    425428  fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy);
     429
     430  fTower->Eem = (!fIsEcal) ? 0 : energy;
     431  fTower->Ehad = (fIsEcal) ? 0 : energy;
    426432
    427433  fTower->Edges[0] = fTowerEdges[0];
     
    447453    pt = energy / TMath::CosH(eta);
    448454
     455    tower->Eem = (!fIsEcal) ? 0 : energy;
     456    tower->Ehad = (fIsEcal) ? 0 : energy;
     457
    449458    tower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy);
    450459    fEFlowTowerOutputArray->Add(tower);
Note: See TracChangeset for help on using the changeset viewer.