Changeset 49234af in git for modules/Calorimeter.cc
- Timestamp:
- Dec 9, 2014, 1:27:13 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 37deb3b, 9e991f8
- Parents:
- f6b6ee7 (diff), e7e90df (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Calorimeter.cc
rf6b6ee7 r49234af 153 153 } 154 154 */ 155 156 // read min E value for towers to be saved 157 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 155 164 // read resolution formulas 156 165 fECalResolutionFormula->Compile(GetString("ECalResolutionFormula", "0")); … … 432 441 433 442 if(!fTower) return; 443 // cout<<"----------------------"<<endl; 444 // cout<<"Finalize Tower"<<endl; 445 // cout<<""<<endl; 446 434 447 435 448 ecalSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerECalEnergy); … … 448 461 hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma); 449 462 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; 450 470 451 471 energy = ecalEnergy + hcalEnergy; … … 471 491 fTower->Edges[3] = fTowerEdges[3]; 472 492 473 474 // fill calorimeter towers 475 if(energy > 0.0) 493 if( energy > 0.0 ) 476 494 { 477 495 if(fTowerPhotonHits > 0 && fTowerTrackHits == 0) … … 493 511 494 512 ecalEnergy -= fTrackECalEnergy; 495 if(ecalEnergy < 0.0) ecalEnergy = 0.0;513 if(ecalEnergy < fEcalEnergyMin || ecalEnergy < fEcalSigmaMin*fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, ecalEnergy)) ecalEnergy = 0.0; 496 514 497 515 hcalEnergy -= fTrackHCalEnergy; 498 if(hcalEnergy < 0.0) hcalEnergy = 0.0;516 if(hcalEnergy < fHcalEnergyMin || hcalEnergy < fHcalSigmaMin*fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, hcalEnergy)) hcalEnergy = 0.0; 499 517 500 518 energy = ecalEnergy + hcalEnergy; 501 519 502 503 // save ECAL and/or HCAL energy excess as an energy flow tower504 520 if(ecalEnergy > 0.0) 505 521 { … … 515 531 fEFlowPhotonOutputArray->Add(tower); 516 532 } 517 518 533 if(hcalEnergy > 0.0) 519 534 {
Note:
See TracChangeset
for help on using the changeset viewer.