- 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. - Location:
- modules
- Files:
-
- 5 added
- 6 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 { -
modules/Calorimeter.h
rf6b6ee7 r49234af 72 72 Int_t fTowerTrackHits, fTowerPhotonHits; 73 73 74 Double_t fEcalEnergyMin; 75 Double_t fHcalEnergyMin; 76 77 Double_t fEcalSigmaMin; 78 Double_t fHcalSigmaMin; 79 74 80 TFractionMap fFractionMap; //! 75 81 TBinMap fBinMap; //! -
modules/FastJetFinder.cc
rf6b6ee7 r49234af 241 241 Candidate *candidate, *constituent; 242 242 TLorentzVector momentum; 243 244 TLorentzVector constmomentum; 245 243 246 Double_t deta, dphi, detaMax, dphiMax; 244 247 Double_t time, weightTime, avTime; … … 304 307 for(itOutputList = outputList.begin(); itOutputList != outputList.end(); ++itOutputList) 305 308 { 306 momentum.SetPxPyPzE(itOutputList->px(), itOutputList->py(), itOutputList->pz(), itOutputList->E()); 309 jet = *itOutputList; 310 if(fJetAlgorithm == 7) jet = join(jet.constituents()); 311 312 momentum.SetPxPyPzE(jet.px(), jet.py(), jet.pz(), jet.E()); 313 307 314 area.reset(0.0, 0.0, 0.0, 0.0); 308 315 if(fAreaDefinition) area = itOutputList->area_4vector(); … … 315 322 inputList.clear(); 316 323 inputList = sequence->constituents(*itOutputList); 324 325 constmomentum.SetPxPyPzE(0.0,0.0,0.0,0.0);; 317 326 318 327 for(itInputList = inputList.begin(); itInputList != inputList.end(); ++itInputList) 319 328 { 320 329 constituent = static_cast<Candidate*>(fInputArray->At(itInputList->user_index())); 330 331 constmomentum += constituent->Momentum; 321 332 322 333 deta = TMath::Abs(momentum.Eta() - constituent->Momentum.Eta()); -
modules/ModulesLinkDef.h
rf6b6ee7 r49234af 33 33 34 34 #include "modules/FastJetFinder.h" 35 #include "modules/FastJetGridMedianEstimator.h" 35 36 #include "modules/ParticlePropagator.h" 36 37 #include "modules/Efficiency.h" … … 56 57 #include "modules/ConstituentFilter.h" 57 58 #include "modules/StatusPidFilter.h" 59 #include "modules/PdgCodeFilter.h" 58 60 #include "modules/Cloner.h" 59 61 #include "modules/Weighter.h" … … 70 72 71 73 #pragma link C++ class FastJetFinder+; 74 #pragma link C++ class FastJetGridMedianEstimator+; 72 75 #pragma link C++ class ParticlePropagator+; 73 76 #pragma link C++ class Efficiency+; … … 93 96 #pragma link C++ class ConstituentFilter+; 94 97 #pragma link C++ class StatusPidFilter+; 98 #pragma link C++ class PdgCodeFilter+; 95 99 #pragma link C++ class Cloner+; 96 100 #pragma link C++ class Weighter+; -
modules/SimpleCalorimeter.cc
rf6b6ee7 r49234af 147 147 } 148 148 */ 149 150 // read min E value for towers to be saved 151 fEnergyMin = GetDouble("TowerMinEnergy", 0.0); 152 fSigmaMin = GetDouble("TowerMinSignificance", 0.0); 153 149 154 // read resolution formulas 150 155 fResolutionFormula->Compile(GetString("ResolutionFormula", "0")); … … 402 407 time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime; 403 408 409 sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy); 410 411 energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy; 412 404 413 eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]); 405 414 phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]); … … 423 432 // fill energy flow candidates 424 433 energy -= fTrackEnergy; 425 if(energy < 0.0) energy = 0.0;434 if(energy < fEnergyMin || energy < fSigmaMin*fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy)) energy = 0.0; 426 435 427 436 // save energy excess as an energy flow tower -
modules/SimpleCalorimeter.h
rf6b6ee7 r49234af 72 72 Int_t fTowerTrackHits, fTowerPhotonHits; 73 73 74 Double_t fEnergyMin; 75 Double_t fSigmaMin; 76 74 77 TFractionMap fFractionMap; //! 75 78 TBinMap fBinMap; //!
Note:
See TracChangeset
for help on using the changeset viewer.