Fork me on GitHub

Changeset 5a44a72 in git for modules/FastJetFinder.cc


Ignore:
Timestamp:
Sep 7, 2015, 9:33:57 AM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
68dd0df
Parents:
eb52a5d
Message:

added jet charge calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/FastJetFinder.cc

    reb52a5d r5a44a72  
    283283  Double_t time, timeWeight;
    284284  Int_t number;
     285  Int_t charge;
    285286  Double_t rho = 0.0;
    286287  PseudoJet jet, area;
     
    354355    timeWeight = 0.0;
    355356
     357    charge = 0;
     358
    356359    inputList.clear();
    357360    inputList = sequence->constituents(*itOutputList);
     
    370373      timeWeight += TMath::Sqrt(constituent->Momentum.E());
    371374
     375      charge += constituent->Charge;
     376
    372377      candidate->AddCandidate(constituent);
    373378    }
     
    379384    candidate->DeltaEta = detaMax;
    380385    candidate->DeltaPhi = dphiMax;
    381      
     386    candidate->Charge = charge;
    382387    //------------------------------------
    383388    // Trimming
Note: See TracChangeset for help on using the changeset viewer.