Changes in modules/Calorimeter.cc [01f457a:7c0fcd5] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Calorimeter.cc
r01f457a r7c0fcd5 153 153 } 154 154 */ 155 156 // read min E value for towers to be saved157 fEcalEnergyMin = GetDouble("EcalTowerMinEnergy", 0.0);158 fHcalEnergyMin = GetDouble("HcalTowerMinEnergy", 0.0);159 160 fEcalSigmaMin = GetDouble("EcalTowerMinSignificance", 0.0);161 fHcalSigmaMin = GetDouble("HcalTowerMinSignificance", 0.0);162 163 164 155 // read resolution formulas 165 156 fECalResolutionFormula->Compile(GetString("ECalResolutionFormula", "0")); … … 441 432 442 433 if(!fTower) return; 443 // cout<<"----------------------"<<endl;444 // cout<<"Finalize Tower"<<endl;445 // cout<<""<<endl;446 447 434 448 435 ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerECalEnergy); … … 461 448 hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma); 462 449 hcalTime = (fTowerHCalWeightTime < 1.0E-09 ) ? 0 : fTowerHCalTime/fTowerHCalWeightTime; 463 464 465 ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, ecalEnergy);466 hcalSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, hcalEnergy);467 468 ecalEnergy = (ecalEnergy < fEcalEnergyMin || ecalEnergy < fEcalSigmaMin*ecalSigma) ? 0 : ecalEnergy;469 hcalEnergy = (hcalEnergy < fHcalEnergyMin || hcalEnergy < fHcalSigmaMin*hcalSigma) ? 0 : hcalEnergy;470 450 471 451 energy = ecalEnergy + hcalEnergy; … … 491 471 fTower->Edges[3] = fTowerEdges[3]; 492 472 493 if( energy > 0.0 ) 473 474 // fill calorimeter towers 475 if(energy > 0.0) 494 476 { 495 477 if(fTowerPhotonHits > 0 && fTowerTrackHits == 0) … … 511 493 512 494 ecalEnergy -= fTrackECalEnergy; 513 if(ecalEnergy < fEcalEnergyMin || ecalEnergy < fEcalSigmaMin*fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, ecalEnergy)) ecalEnergy = 0.0;495 if(ecalEnergy < 0.0) ecalEnergy = 0.0; 514 496 515 497 hcalEnergy -= fTrackHCalEnergy; 516 if(hcalEnergy < fHcalEnergyMin || hcalEnergy < fHcalSigmaMin*fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, hcalEnergy)) hcalEnergy = 0.0;498 if(hcalEnergy < 0.0) hcalEnergy = 0.0; 517 499 518 500 energy = ecalEnergy + hcalEnergy; 519 501 502 503 // save ECAL and/or HCAL energy excess as an energy flow tower 520 504 if(ecalEnergy > 0.0) 521 505 { … … 531 515 fEFlowPhotonOutputArray->Add(tower); 532 516 } 517 533 518 if(hcalEnergy > 0.0) 534 519 {
Note:
See TracChangeset
for help on using the changeset viewer.