Fork me on GitHub

Changes in / [f14bd6a:f42fdd9] in git


Ignore:
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • examples/delphes_card_ATLAS.tcl

    rf14bd6a rf42fdd9  
    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  
    215209  set EFlowTrackOutputArray eflowTracks
    216210  set EFlowPhotonOutputArray eflowPhotons
     
    475469  set OutputArray jets
    476470
    477  # scale formula for jets
    478   set ScaleFormula {  1.00  }
    479 
     471 # scale formula for jets
     472  set ScaleFormula {1.00}
    480473}
    481474
  • examples/delphes_card_ATLAS_PileUp.tcl

    rf14bd6a rf42fdd9  
    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
    255249
    256250  set EFlowTrackOutputArray eflowTracks
     
    672666
    673667#  add Branch TrackMerger/tracks Track Track
    674   add Branch Calorimeter/towers Tower Tower
     668#  add Branch Calorimeter/towers Tower Tower
    675669
    676670#  add Branch Calorimeter/eflowTracks EFlowTrack Track
  • examples/delphes_card_CMS.tcl

    rf14bd6a rf42fdd9  
    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    
    220214  set EFlowTrackOutputArray eflowTracks
    221215  set EFlowPhotonOutputArray eflowPhotons
  • examples/delphes_card_CMS_PileUp.tcl

    rf14bd6a rf42fdd9  
    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
    262256
    263257  set EFlowTrackOutputArray eflowTracks
  • modules/Calorimeter.cc

    rf14bd6a rf42fdd9  
    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  
    146137  // read resolution formulas
    147138  fECalResolutionFormula->Compile(GetString("ECalResolutionFormula", "0"));
     
    423414
    424415  if(!fTower) return;
    425 //  cout<<"----------------------"<<endl;
    426 //  cout<<"Finalize Tower"<<endl;
    427 //  cout<<""<<endl;
    428 
    429416
    430417  ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerECalEnergy);
     
    443430  hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma);
    444431  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;
    452432
    453433  energy = ecalEnergy + hcalEnergy;
     
    473453  fTower->Edges[3] = fTowerEdges[3];
    474454
    475   if( energy > 0.0 )
     455
     456  // fill calorimeter towers
     457  if(energy > 0.0)
    476458  {
    477459    if(fTowerPhotonHits > 0 && fTowerTrackHits == 0)
     
    493475
    494476  ecalEnergy -= fTrackECalEnergy;
    495   if(ecalEnergy < fEcalEnergyMin || ecalEnergy < fEcalSigmaMin*fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, ecalEnergy)) ecalEnergy = 0.0;
     477  if(ecalEnergy < 0.0) ecalEnergy = 0.0;
    496478
    497479  hcalEnergy -= fTrackHCalEnergy;
    498   if(hcalEnergy < fHcalEnergyMin || hcalEnergy < fHcalSigmaMin*fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, hcalEnergy)) hcalEnergy = 0.0;
     480  if(hcalEnergy < 0.0) hcalEnergy = 0.0;
    499481
    500482  energy = ecalEnergy + hcalEnergy;
    501483
     484 
     485  // save ECAL and/or HCAL energy excess as an energy flow tower
    502486  if(ecalEnergy > 0.0)
    503487  {
     
    513497    fEFlowPhotonOutputArray->Add(tower);
    514498  }
     499
    515500  if(hcalEnergy > 0.0)
    516501  {
  • modules/Calorimeter.h

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

    rf14bd6a rf42fdd9  
    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  
    136131  // read resolution formulas
    137132  fResolutionFormula->Compile(GetString("ResolutionFormula", "0"));
     
    389384  time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime;
    390385
    391   sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy);
    392  
    393   energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy;
    394  
    395386  eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]);
    396387  phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]);
     
    414405  // fill energy flow candidates
    415406  energy -= fTrackEnergy;
    416   if(energy < fEnergyMin || energy < fSigmaMin*fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy)) energy = 0.0;
     407  if(energy < 0.0) energy = 0.0;
    417408   
    418409  // save energy excess as an energy flow tower
  • modules/SimpleCalorimeter.h

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