Fork me on GitHub

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

    r45e58be r341014c  
    1717 */
    1818
    19 
    2019/** \class BTagging
    2120 *
     
    3433#include "classes/DelphesFormula.h"
    3534
     35#include "TDatabasePDG.h"
     36#include "TFormula.h"
     37#include "TLorentzVector.h"
    3638#include "TMath.h"
     39#include "TObjArray.h"
     40#include "TRandom3.h"
    3741#include "TString.h"
    38 #include "TFormula.h"
    39 #include "TRandom3.h"
    40 #include "TObjArray.h"
    41 #include "TDatabasePDG.h"
    42 #include "TLorentzVector.h"
    4342
    4443#include <algorithm>
    45 #include <stdexcept>
    4644#include <iostream>
    4745#include <sstream>
     46#include <stdexcept>
    4847
    4948using namespace std;
     
    6665void BTagging::Init()
    6766{
    68   map< Int_t, DelphesFormula * >::iterator itEfficiencyMap;
     67  map<Int_t, DelphesFormula *>::iterator itEfficiencyMap;
    6968  ExRootConfParam param;
    7069  DelphesFormula *formula;
     
    7877
    7978  fEfficiencyMap.clear();
    80   for(i = 0; i < size/2; ++i)
     79  for(i = 0; i < size / 2; ++i)
    8180  {
    8281    formula = new DelphesFormula;
    83     formula->Compile(param[i*2 + 1].GetString());
     82    formula->Compile(param[i * 2 + 1].GetString());
    8483
    85     fEfficiencyMap[param[i*2].GetInt()] = formula;
     84    fEfficiencyMap[param[i * 2].GetInt()] = formula;
    8685  }
    8786
     
    106105void BTagging::Finish()
    107106{
    108   map< Int_t, DelphesFormula * >::iterator itEfficiencyMap;
     107  map<Int_t, DelphesFormula *>::iterator itEfficiencyMap;
    109108  DelphesFormula *formula;
    110109
     
    124123  Candidate *jet;
    125124  Double_t pt, eta, phi, e;
    126   map< Int_t, DelphesFormula * >::iterator itEfficiencyMap;
     125  map<Int_t, DelphesFormula *>::iterator itEfficiencyMap;
    127126  DelphesFormula *formula;
    128127
    129128  // loop over all input jets
    130129  fItJetInputArray->Reset();
    131   while((jet = static_cast<Candidate*>(fItJetInputArray->Next())))
     130  while((jet = static_cast<Candidate *>(fItJetInputArray->Next())))
    132131  {
    133132    const TLorentzVector &jetMomentum = jet->Momentum;
Note: See TracChangeset for help on using the changeset viewer.