Fork me on GitHub

Changeset 341014c in git for modules/ConstituentFilter.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/ConstituentFilter.cc

    r45e58be r341014c  
    1717 */
    1818
    19 
    2019/** \class ConstituentFilter
    2120 *
     
    3231#include "classes/DelphesFormula.h"
    3332
     33#include "ExRootAnalysis/ExRootClassifier.h"
     34#include "ExRootAnalysis/ExRootFilter.h"
    3435#include "ExRootAnalysis/ExRootResult.h"
    35 #include "ExRootAnalysis/ExRootFilter.h"
    36 #include "ExRootAnalysis/ExRootClassifier.h"
    3736
     37#include "TDatabasePDG.h"
     38#include "TFormula.h"
     39#include "TLorentzVector.h"
    3840#include "TMath.h"
     41#include "TObjArray.h"
     42#include "TRandom3.h"
    3943#include "TString.h"
    40 #include "TFormula.h"
    41 #include "TRandom3.h"
    42 #include "TObjArray.h"
    43 #include "TDatabasePDG.h"
    44 #include "TLorentzVector.h"
    4544
    4645#include <algorithm>
    47 #include <stdexcept>
    4846#include <iostream>
    4947#include <sstream>
     48#include <stdexcept>
    5049
    5150using namespace std;
     
    8887  param = GetParam("ConstituentInputArray");
    8988  size = param.GetSize();
    90   for(i = 0; i < size/2; ++i)
     89  for(i = 0; i < size / 2; ++i)
    9190  {
    92     array = ImportArray(param[i*2].GetString());
     91    array = ImportArray(param[i * 2].GetString());
    9392    iterator = array->MakeIterator();
    9493
    95     fInputMap[iterator] = ExportArray(param[i*2 + 1].GetString());
     94    fInputMap[iterator] = ExportArray(param[i * 2 + 1].GetString());
    9695  }
    9796}
     
    101100void ConstituentFilter::Finish()
    102101{
    103   map< TIterator *, TObjArray * >::iterator itInputMap;
    104   vector< TIterator * >::iterator itInputList;
     102  map<TIterator *, TObjArray *>::iterator itInputMap;
     103  vector<TIterator *>::iterator itInputList;
    105104  TIterator *iterator;
    106105
     
    123122{
    124123  Candidate *jet, *constituent;
    125   map< TIterator *, TObjArray * >::iterator itInputMap;
    126   vector< TIterator * >::iterator itInputList;
     124  map<TIterator *, TObjArray *>::iterator itInputMap;
     125  vector<TIterator *>::iterator itInputList;
    127126  TIterator *iterator;
    128127  TObjArray *array;
     
    135134    // loop over all jets
    136135    iterator->Reset();
    137     while((jet = static_cast<Candidate*>(iterator->Next())))
     136    while((jet = static_cast<Candidate *>(iterator->Next())))
    138137    {
    139138      TIter itConstituents(jet->GetCandidates());
     
    142141
    143142      // loop over all constituents
    144       while((constituent = static_cast<Candidate*>(itConstituents.Next())))
     143      while((constituent = static_cast<Candidate *>(itConstituents.Next())))
    145144      {
    146145        // set the IsConstituent flag
     
    158157    // loop over all constituents
    159158    iterator->Reset();
    160     while((constituent = static_cast<Candidate*>(iterator->Next())))
     159    while((constituent = static_cast<Candidate *>(iterator->Next())))
    161160    {
    162161      // check the IsConstituent flag
Note: See TracChangeset for help on using the changeset viewer.