Fork me on GitHub

Changeset 49234af in git for modules/FastJetFinder.cc


Ignore:
Timestamp:
Dec 9, 2014, 1:27:13 PM (10 years ago)
Author:
Michele <michele.selvaggi@…>
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.
Message:

Merge branch 'TestFastJet310b1'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/FastJetFinder.cc

    rf6b6ee7 r49234af  
    241241  Candidate *candidate, *constituent;
    242242  TLorentzVector momentum;
     243 
     244  TLorentzVector constmomentum;
     245 
    243246  Double_t deta, dphi, detaMax, dphiMax;
    244247  Double_t time, weightTime, avTime;
     
    304307  for(itOutputList = outputList.begin(); itOutputList != outputList.end(); ++itOutputList)
    305308  {
    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   
    307314    area.reset(0.0, 0.0, 0.0, 0.0);
    308315    if(fAreaDefinition) area = itOutputList->area_4vector();
     
    315322    inputList.clear();
    316323    inputList = sequence->constituents(*itOutputList);
     324
     325    constmomentum.SetPxPyPzE(0.0,0.0,0.0,0.0);;
    317326
    318327    for(itInputList = inputList.begin(); itInputList != inputList.end(); ++itInputList)
    319328    {
    320329      constituent = static_cast<Candidate*>(fInputArray->At(itInputList->user_index()));
     330
     331      constmomentum += constituent->Momentum;
    321332
    322333      deta = TMath::Abs(momentum.Eta() - constituent->Momentum.Eta());
Note: See TracChangeset for help on using the changeset viewer.