Fork me on GitHub

Changeset ca29ad7 in git for modules


Ignore:
Timestamp:
Dec 19, 2014, 2:17:10 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
a190d94
Parents:
8624f58
Message:

replace WeightTime with TimeWeight

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/Calorimeter.cc

    r8624f58 rca29ad7  
    367367      fTrackHCalTime = 0.0;
    368368
    369       fTowerECalWeightTime = 0.0;
    370       fTowerHCalWeightTime = 0.0;
     369      fTowerECalTimeWeight = 0.0;
     370      fTowerHCalTimeWeight = 0.0;
    371371
    372372      fTowerTrackHits = 0;
     
    395395      fTrackHCalTime += TMath::Sqrt(hcalEnergy)*position.T();
    396396
    397       fTrackECalWeightTime += TMath::Sqrt(ecalEnergy);
    398       fTrackHCalWeightTime += TMath::Sqrt(hcalEnergy);
     397      fTrackECalTimeWeight += TMath::Sqrt(ecalEnergy);
     398      fTrackHCalTimeWeight += TMath::Sqrt(hcalEnergy);
    399399
    400400      fTowerTrackArray->Add(track);
     
    420420    fTowerHCalTime += TMath::Sqrt(hcalEnergy)*position.T();
    421421
    422     fTowerECalWeightTime += TMath::Sqrt(ecalEnergy);
    423     fTowerHCalWeightTime += TMath::Sqrt(hcalEnergy);
     422    fTowerECalTimeWeight += TMath::Sqrt(ecalEnergy);
     423    fTowerHCalTimeWeight += TMath::Sqrt(hcalEnergy);
    424424
    425425
     
    446446
    447447  ecalEnergy = LogNormal(fTowerECalEnergy, ecalSigma);
    448   ecalTime = (fTowerECalWeightTime < 1.0E-09 ) ? 0 : fTowerECalTime/fTowerECalWeightTime;
     448  ecalTime = (fTowerECalTimeWeight < 1.0E-09 ) ? 0 : fTowerECalTime/fTowerECalTimeWeight;
    449449
    450450  hcalSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, fTowerHCalEnergy);
    451451
    452452  hcalEnergy = LogNormal(fTowerHCalEnergy, hcalSigma);
    453   hcalTime = (fTowerHCalWeightTime < 1.0E-09 ) ? 0 : fTowerHCalTime/fTowerHCalWeightTime;
     453  hcalTime = (fTowerHCalTimeWeight < 1.0E-09 ) ? 0 : fTowerHCalTime/fTowerHCalTimeWeight;
    454454
    455455
  • modules/Calorimeter.h

    r8624f58 rca29ad7  
    6767  Double_t fTrackECalTime, fTrackHCalTime;
    6868
    69   Double_t fTowerECalWeightTime, fTowerHCalWeightTime;
    70   Double_t fTrackECalWeightTime, fTrackHCalWeightTime;
     69  Double_t fTowerECalTimeWeight, fTowerHCalTimeWeight;
     70  Double_t fTrackECalTimeWeight, fTrackHCalTimeWeight;
    7171
    7272  Int_t fTowerTrackHits, fTowerPhotonHits;
Note: See TracChangeset for help on using the changeset viewer.