- Timestamp:
- Dec 19, 2014, 2:17:10 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- a190d94
- Parents:
- 8624f58
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Calorimeter.cc
r8624f58 rca29ad7 367 367 fTrackHCalTime = 0.0; 368 368 369 fTowerECal WeightTime= 0.0;370 fTowerHCal WeightTime= 0.0;369 fTowerECalTimeWeight = 0.0; 370 fTowerHCalTimeWeight = 0.0; 371 371 372 372 fTowerTrackHits = 0; … … 395 395 fTrackHCalTime += TMath::Sqrt(hcalEnergy)*position.T(); 396 396 397 fTrackECal WeightTime+= TMath::Sqrt(ecalEnergy);398 fTrackHCal WeightTime+= TMath::Sqrt(hcalEnergy);397 fTrackECalTimeWeight += TMath::Sqrt(ecalEnergy); 398 fTrackHCalTimeWeight += TMath::Sqrt(hcalEnergy); 399 399 400 400 fTowerTrackArray->Add(track); … … 420 420 fTowerHCalTime += TMath::Sqrt(hcalEnergy)*position.T(); 421 421 422 fTowerECal WeightTime+= TMath::Sqrt(ecalEnergy);423 fTowerHCal WeightTime+= TMath::Sqrt(hcalEnergy);422 fTowerECalTimeWeight += TMath::Sqrt(ecalEnergy); 423 fTowerHCalTimeWeight += TMath::Sqrt(hcalEnergy); 424 424 425 425 … … 446 446 447 447 ecalEnergy = LogNormal(fTowerECalEnergy, ecalSigma); 448 ecalTime = (fTowerECal WeightTime < 1.0E-09 ) ? 0 : fTowerECalTime/fTowerECalWeightTime;448 ecalTime = (fTowerECalTimeWeight < 1.0E-09 ) ? 0 : fTowerECalTime/fTowerECalTimeWeight; 449 449 450 450 hcalSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerHCalEnergy); 451 451 452 452 hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma); 453 hcalTime = (fTowerHCal WeightTime < 1.0E-09 ) ? 0 : fTowerHCalTime/fTowerHCalWeightTime;453 hcalTime = (fTowerHCalTimeWeight < 1.0E-09 ) ? 0 : fTowerHCalTime/fTowerHCalTimeWeight; 454 454 455 455 -
modules/Calorimeter.h
r8624f58 rca29ad7 67 67 Double_t fTrackECalTime, fTrackHCalTime; 68 68 69 Double_t fTowerECal WeightTime, fTowerHCalWeightTime;70 Double_t fTrackECal WeightTime, fTrackHCalWeightTime;69 Double_t fTowerECalTimeWeight, fTowerHCalTimeWeight; 70 Double_t fTrackECalTimeWeight, fTrackHCalTimeWeight; 71 71 72 72 Int_t fTowerTrackHits, fTowerPhotonHits;
Note:
See TracChangeset
for help on using the changeset viewer.