Fork me on GitHub

Changeset 341014c in git for modules/BeamSpotFilter.cc


Ignore:
Timestamp:
Feb 12, 2019, 9:29:17 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
6455202
Parents:
45e58be
Message:

apply .clang-format to all .h, .cc and .cpp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/BeamSpotFilter.cc

    r45e58be r341014c  
    77 */
    88
    9 
    109#include "modules/BeamSpotFilter.h"
    1110
     
    1413#include "classes/DelphesFormula.h"
    1514
     15#include "ExRootAnalysis/ExRootClassifier.h"
     16#include "ExRootAnalysis/ExRootFilter.h"
    1617#include "ExRootAnalysis/ExRootResult.h"
    17 #include "ExRootAnalysis/ExRootFilter.h"
    18 #include "ExRootAnalysis/ExRootClassifier.h"
    1918
     19#include "TDatabasePDG.h"
     20#include "TFormula.h"
     21#include "TLorentzVector.h"
    2022#include "TMath.h"
     23#include "TObjArray.h"
     24#include "TRandom3.h"
    2125#include "TString.h"
    22 #include "TFormula.h"
    23 #include "TRandom3.h"
    24 #include "TObjArray.h"
    25 #include "TDatabasePDG.h"
    26 #include "TLorentzVector.h"
    2726
    2827#include <algorithm>
    29 #include <stdexcept>
    3028#include <iostream>
    3129#include <sstream>
     30#include <stdexcept>
    3231
    3332using namespace std;
     
    5049void BeamSpotFilter::Init()
    5150{
    52  
     51
    5352  // import input array
    5453  fInputArray = ImportArray(GetString("InputArray", "Delphes/allParticles"));
     
    7372  Candidate *candidate;
    7473  Bool_t passed = false;
    75  
     74
    7675  fItInputArray->Reset();
    77   while((candidate = static_cast<Candidate*>(fItInputArray->Next())) && !passed)
     76  while((candidate = static_cast<Candidate *>(fItInputArray->Next())) && !passed)
    7877  {
    7978    if(candidate->IsPU == 0) passed = true;
    8079    fOutputArray->Add(candidate);
    8180  }
    82  
    8381}
    84 
    85  
Note: See TracChangeset for help on using the changeset viewer.