Fork me on GitHub

Changes in / [f42fdd9:f14bd6a] in git


Ignore:
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • examples/delphes_card_ATLAS.tcl

    rf42fdd9 rf14bd6a  
    207207  set PhotonOutputArray photons
    208208
     209  set EcalTowerMinEnergy 0.50
     210  set HcalTowerMinEnergy 1.00
     211
     212  set EcalTowerMinSignificance 1.0
     213  set HcalTowerMinSignificance 1.0
     214 
    209215  set EFlowTrackOutputArray eflowTracks
    210216  set EFlowPhotonOutputArray eflowPhotons
     
    469475  set OutputArray jets
    470476
    471  # scale formula for jets
    472   set ScaleFormula {1.00}
     477 # scale formula for jets
     478  set ScaleFormula {  1.00  }
     479
    473480}
    474481
  • examples/delphes_card_ATLAS_PileUp.tcl

    rf42fdd9 rf14bd6a  
    247247  set TowerOutputArray towers
    248248  set PhotonOutputArray photons
     249
     250  set EcalTowerMinEnergy 0.50
     251  set HcalTowerMinEnergy 1.00
     252
     253  set EcalTowerMinSignificance 1.0
     254  set HcalTowerMinSignificance 1.0
    249255
    250256  set EFlowTrackOutputArray eflowTracks
     
    666672
    667673#  add Branch TrackMerger/tracks Track Track
    668 #  add Branch Calorimeter/towers Tower Tower
     674  add Branch Calorimeter/towers Tower Tower
    669675
    670676#  add Branch Calorimeter/eflowTracks EFlowTrack Track
  • examples/delphes_card_CMS.tcl

    rf42fdd9 rf14bd6a  
    212212  set PhotonOutputArray photons
    213213
     214  set EcalTowerMinEnergy 0.5
     215  set HcalTowerMinEnergy 1.0
     216
     217  set EcalTowerMinSignificance 1.0
     218  set HcalTowerMinSignificance 1.0
     219   
    214220  set EFlowTrackOutputArray eflowTracks
    215221  set EFlowPhotonOutputArray eflowPhotons
  • examples/delphes_card_CMS_PileUp.tcl

    rf42fdd9 rf14bd6a  
    254254  set TowerOutputArray towers
    255255  set PhotonOutputArray photons
     256
     257  set EcalTowerMinEnergy 0.5
     258  set HcalTowerMinEnergy 1.0
     259
     260  set EcalTowerMinSignificance 1.0
     261  set HcalTowerMinSignificance 1.0
    256262
    257263  set EFlowTrackOutputArray eflowTracks
  • modules/Calorimeter.cc

    rf42fdd9 rf14bd6a  
    135135  }
    136136*/
     137
     138  // read min E value for towers to be saved
     139  fEcalEnergyMin = GetDouble("EcalTowerMinEnergy", 0.0);
     140  fHcalEnergyMin = GetDouble("HcalTowerMinEnergy", 0.0);
     141 
     142  fEcalSigmaMin  = GetDouble("EcalTowerMinSignificance", 0.0);
     143  fHcalSigmaMin  = GetDouble("HcalTowerMinSignificance", 0.0);
     144
     145 
    137146  // read resolution formulas
    138147  fECalResolutionFormula->Compile(GetString("ECalResolutionFormula", "0"));
     
    414423
    415424  if(!fTower) return;
     425//  cout<<"----------------------"<<endl;
     426//  cout<<"Finalize Tower"<<endl;
     427//  cout<<""<<endl;
     428
    416429
    417430  ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerECalEnergy);
     
    430443  hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma);
    431444  hcalTime = (fTowerHCalWeightTime < 1.0E-09 ) ? 0 : fTowerHCalTime/fTowerHCalWeightTime;
     445
     446 
     447  ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, ecalEnergy);
     448  hcalSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, hcalEnergy);
     449
     450  ecalEnergy = (ecalEnergy < fEcalEnergyMin || ecalEnergy < fEcalSigmaMin*ecalSigma) ? 0 : ecalEnergy;
     451  hcalEnergy = (hcalEnergy < fHcalEnergyMin || hcalEnergy < fHcalSigmaMin*hcalSigma) ? 0 : hcalEnergy;
    432452
    433453  energy = ecalEnergy + hcalEnergy;
     
    453473  fTower->Edges[3] = fTowerEdges[3];
    454474
    455 
    456   // fill calorimeter towers
    457   if(energy > 0.0)
     475  if( energy > 0.0 )
    458476  {
    459477    if(fTowerPhotonHits > 0 && fTowerTrackHits == 0)
     
    475493
    476494  ecalEnergy -= fTrackECalEnergy;
    477   if(ecalEnergy < 0.0) ecalEnergy = 0.0;
     495  if(ecalEnergy < fEcalEnergyMin || ecalEnergy < fEcalSigmaMin*fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, ecalEnergy)) ecalEnergy = 0.0;
    478496
    479497  hcalEnergy -= fTrackHCalEnergy;
    480   if(hcalEnergy < 0.0) hcalEnergy = 0.0;
     498  if(hcalEnergy < fHcalEnergyMin || hcalEnergy < fHcalSigmaMin*fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, hcalEnergy)) hcalEnergy = 0.0;
    481499
    482500  energy = ecalEnergy + hcalEnergy;
    483501
    484  
    485   // save ECAL and/or HCAL energy excess as an energy flow tower
    486502  if(ecalEnergy > 0.0)
    487503  {
     
    497513    fEFlowPhotonOutputArray->Add(tower);
    498514  }
    499 
    500515  if(hcalEnergy > 0.0)
    501516  {
  • modules/Calorimeter.h

    rf42fdd9 rf14bd6a  
    5454  Int_t fTowerTrackHits, fTowerPhotonHits;
    5555
     56  Double_t fEcalEnergyMin;
     57  Double_t fHcalEnergyMin;
     58 
     59  Double_t fEcalSigmaMin;
     60  Double_t fHcalSigmaMin;
     61
    5662  TFractionMap fFractionMap; //!
    5763  TBinMap fBinMap; //!
  • modules/SimpleCalorimeter.cc

    rf42fdd9 rf14bd6a  
    129129  }
    130130*/
     131
     132  // read min E value for towers to be saved
     133  fEnergyMin = GetDouble("TowerMinEnergy", 0.0);
     134  fSigmaMin  = GetDouble("TowerMinSignificance", 0.0);
     135 
    131136  // read resolution formulas
    132137  fResolutionFormula->Compile(GetString("ResolutionFormula", "0"));
     
    384389  time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime;
    385390
     391  sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy);
     392 
     393  energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy;
     394 
    386395  eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]);
    387396  phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]);
     
    405414  // fill energy flow candidates
    406415  energy -= fTrackEnergy;
    407   if(energy < 0.0) energy = 0.0;
     416  if(energy < fEnergyMin || energy < fSigmaMin*fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy)) energy = 0.0;
    408417   
    409418  // save energy excess as an energy flow tower
  • modules/SimpleCalorimeter.h

    rf42fdd9 rf14bd6a  
    5454  Int_t fTowerTrackHits, fTowerPhotonHits;
    5555
     56  Double_t fEnergyMin;
     57  Double_t fSigmaMin;
     58
    5659  TFractionMap fFractionMap; //!
    5760  TBinMap fBinMap; //!
Note: See TracChangeset for help on using the changeset viewer.