Fork me on GitHub

Changeset ce4feac in git


Ignore:
Timestamp:
Oct 6, 2015, 10:18:59 AM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
b3c0535
Parents:
4f00e0b
Message:

fill NNeutrals and NCharged in FastJetFinder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/FastJetFinder.cc

    r4f00e0b rce4feac  
    282282  Double_t deta, dphi, detaMax, dphiMax;
    283283  Double_t time, timeWeight;
    284   Int_t number;
     284  Int_t number, ncharged, nneutrals;
    285285  Int_t charge;
    286286  Double_t rho = 0.0;
     
    340340  detaMax = 0.0;
    341341  dphiMax = 0.0;
     342 
    342343  for(itOutputList = outputList.begin(); itOutputList != outputList.end(); ++itOutputList)
    343344  {
     
    356357
    357358    charge = 0;
     359
     360    ncharged = 0;
     361    nneutrals = 0;
    358362
    359363    inputList.clear();
     
    370374      if(dphi > dphiMax) dphiMax = dphi;
    371375
     376      if(constituent->Charge == 0) nneutrals++;
     377      else ncharged++;
     378
    372379      time += TMath::Sqrt(constituent->Momentum.E())*(constituent->Position.T());
    373380      timeWeight += TMath::Sqrt(constituent->Momentum.E());
     
    385392    candidate->DeltaPhi = dphiMax;
    386393    candidate->Charge = charge;
     394    candidate->NNeutrals = nneutrals;
     395    candidate->NCharged = ncharged;
     396   
    387397    //------------------------------------
    388398    // Trimming
Note: See TracChangeset for help on using the changeset viewer.