Changes in / [f14bd6a:f42fdd9] in git
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/delphes_card_ATLAS.tcl
rf14bd6a rf42fdd9 207 207 set PhotonOutputArray photons 208 208 209 set EcalTowerMinEnergy 0.50210 set HcalTowerMinEnergy 1.00211 212 set EcalTowerMinSignificance 1.0213 set HcalTowerMinSignificance 1.0214 215 209 set EFlowTrackOutputArray eflowTracks 216 210 set EFlowPhotonOutputArray eflowPhotons … … 475 469 set OutputArray jets 476 470 477 # scale formula for jets 478 set ScaleFormula { 1.00 } 479 471 # scale formula for jets 472 set ScaleFormula {1.00} 480 473 } 481 474 -
examples/delphes_card_ATLAS_PileUp.tcl
rf14bd6a rf42fdd9 247 247 set TowerOutputArray towers 248 248 set PhotonOutputArray photons 249 250 set EcalTowerMinEnergy 0.50251 set HcalTowerMinEnergy 1.00252 253 set EcalTowerMinSignificance 1.0254 set HcalTowerMinSignificance 1.0255 249 256 250 set EFlowTrackOutputArray eflowTracks … … 672 666 673 667 # add Branch TrackMerger/tracks Track Track 674 add Branch Calorimeter/towers Tower Tower668 # add Branch Calorimeter/towers Tower Tower 675 669 676 670 # add Branch Calorimeter/eflowTracks EFlowTrack Track -
examples/delphes_card_CMS.tcl
rf14bd6a rf42fdd9 212 212 set PhotonOutputArray photons 213 213 214 set EcalTowerMinEnergy 0.5215 set HcalTowerMinEnergy 1.0216 217 set EcalTowerMinSignificance 1.0218 set HcalTowerMinSignificance 1.0219 220 214 set EFlowTrackOutputArray eflowTracks 221 215 set EFlowPhotonOutputArray eflowPhotons -
examples/delphes_card_CMS_PileUp.tcl
rf14bd6a rf42fdd9 254 254 set TowerOutputArray towers 255 255 set PhotonOutputArray photons 256 257 set EcalTowerMinEnergy 0.5258 set HcalTowerMinEnergy 1.0259 260 set EcalTowerMinSignificance 1.0261 set HcalTowerMinSignificance 1.0262 256 263 257 set EFlowTrackOutputArray eflowTracks -
modules/Calorimeter.cc
rf14bd6a rf42fdd9 135 135 } 136 136 */ 137 138 // read min E value for towers to be saved139 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 146 137 // read resolution formulas 147 138 fECalResolutionFormula->Compile(GetString("ECalResolutionFormula", "0")); … … 423 414 424 415 if(!fTower) return; 425 // cout<<"----------------------"<<endl;426 // cout<<"Finalize Tower"<<endl;427 // cout<<""<<endl;428 429 416 430 417 ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerECalEnergy); … … 443 430 hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma); 444 431 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;452 432 453 433 energy = ecalEnergy + hcalEnergy; … … 473 453 fTower->Edges[3] = fTowerEdges[3]; 474 454 475 if( energy > 0.0 ) 455 456 // fill calorimeter towers 457 if(energy > 0.0) 476 458 { 477 459 if(fTowerPhotonHits > 0 && fTowerTrackHits == 0) … … 493 475 494 476 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; 496 478 497 479 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; 499 481 500 482 energy = ecalEnergy + hcalEnergy; 501 483 484 485 // save ECAL and/or HCAL energy excess as an energy flow tower 502 486 if(ecalEnergy > 0.0) 503 487 { … … 513 497 fEFlowPhotonOutputArray->Add(tower); 514 498 } 499 515 500 if(hcalEnergy > 0.0) 516 501 { -
modules/Calorimeter.h
rf14bd6a rf42fdd9 54 54 Int_t fTowerTrackHits, fTowerPhotonHits; 55 55 56 Double_t fEcalEnergyMin;57 Double_t fHcalEnergyMin;58 59 Double_t fEcalSigmaMin;60 Double_t fHcalSigmaMin;61 62 56 TFractionMap fFractionMap; //! 63 57 TBinMap fBinMap; //! -
modules/SimpleCalorimeter.cc
rf14bd6a rf42fdd9 129 129 } 130 130 */ 131 132 // read min E value for towers to be saved133 fEnergyMin = GetDouble("TowerMinEnergy", 0.0);134 fSigmaMin = GetDouble("TowerMinSignificance", 0.0);135 136 131 // read resolution formulas 137 132 fResolutionFormula->Compile(GetString("ResolutionFormula", "0")); … … 389 384 time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime; 390 385 391 sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy);392 393 energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy;394 395 386 eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]); 396 387 phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]); … … 414 405 // fill energy flow candidates 415 406 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; 417 408 418 409 // save energy excess as an energy flow tower -
modules/SimpleCalorimeter.h
rf14bd6a rf42fdd9 54 54 Int_t fTowerTrackHits, fTowerPhotonHits; 55 55 56 Double_t fEnergyMin;57 Double_t fSigmaMin;58 59 56 TFractionMap fFractionMap; //! 60 57 TBinMap fBinMap; //!
Note:
See TracChangeset
for help on using the changeset viewer.