Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/JetPileUpSubtractor.cc

    r341014c rd4b9697  
    1717 */
    1818
     19
    1920/** \class JetPileUpSubtractor
    2021 *
     
    3132#include "classes/DelphesFormula.h"
    3233
     34#include "ExRootAnalysis/ExRootResult.h"
     35#include "ExRootAnalysis/ExRootFilter.h"
    3336#include "ExRootAnalysis/ExRootClassifier.h"
    34 #include "ExRootAnalysis/ExRootFilter.h"
    35 #include "ExRootAnalysis/ExRootResult.h"
    3637
     38#include "TMath.h"
     39#include "TString.h"
     40#include "TFormula.h"
     41#include "TRandom3.h"
     42#include "TObjArray.h"
    3743#include "TDatabasePDG.h"
    38 #include "TFormula.h"
    3944#include "TLorentzVector.h"
    40 #include "TMath.h"
    41 #include "TObjArray.h"
    42 #include "TRandom3.h"
    43 #include "TString.h"
    4445
    4546#include <algorithm>
     47#include <stdexcept>
    4648#include <iostream>
    4749#include <sstream>
    48 #include <stdexcept>
    4950
    5051using namespace std;
     
    5556  fItJetInputArray(0), fItRhoInputArray(0)
    5657{
     58
    5759}
    5860
     
    6163JetPileUpSubtractor::~JetPileUpSubtractor()
    6264{
     65
    6366}
    6467
     
    8083
    8184  fOutputArray = ExportArray(GetString("OutputArray", "jets"));
     85
    8286}
    8387
     
    101105  // loop over all input candidates
    102106  fItJetInputArray->Reset();
    103   while((candidate = static_cast<Candidate *>(fItJetInputArray->Next())))
     107  while((candidate = static_cast<Candidate*>(fItJetInputArray->Next())))
    104108  {
    105109    momentum = candidate->Momentum;
     
    112116    {
    113117      fItRhoInputArray->Reset();
    114       while((object = static_cast<Candidate *>(fItRhoInputArray->Next())))
     118      while((object = static_cast<Candidate*>(fItRhoInputArray->Next())))
    115119      {
    116120        if(eta >= object->Edges[0] && eta < object->Edges[1])
     
    128132    if(momentum.Pt() <= fJetPTMin) continue;
    129133
    130     candidate = static_cast<Candidate *>(candidate->Clone());
     134    candidate = static_cast<Candidate*>(candidate->Clone());
    131135    candidate->Momentum = momentum;
    132136
Note: See TracChangeset for help on using the changeset viewer.