Fork me on GitHub

Changeset 341014c in git for classes/DelphesHepMCReader.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
  • classes/DelphesHepMCReader.cc

    r45e58be r341014c  
    1717 */
    1818
    19 
    2019/** \class DelphesHepMCReader
    2120 *
     
    2827#include "classes/DelphesHepMCReader.h"
    2928
    30 #include <stdexcept>
    3129#include <iostream>
    3230#include <sstream>
     31#include <stdexcept>
    3332
    3433#include <map>
     
    3736#include <stdio.h>
    3837
     38#include "TDatabasePDG.h"
     39#include "TLorentzVector.h"
    3940#include "TObjArray.h"
     41#include "TParticlePDG.h"
    4042#include "TStopwatch.h"
    41 #include "TDatabasePDG.h"
    42 #include "TParticlePDG.h"
    43 #include "TLorentzVector.h"
    4443
    4544#include "classes/DelphesClasses.h"
     
    111110  TObjArray *partonOutputArray)
    112111{
    113   map< int, pair< int, int > >::iterator itMotherMap;
    114   map< int, pair< int, int > >::iterator itDaughterMap;
     112  map<int, pair<int, int>>::iterator itMotherMap;
     113  map<int, pair<int, int>>::iterator itDaughterMap;
    115114  char key, momentumUnit[4], positionUnit[3];
    116115  int i, rc, state;
     
    141140    if(!rc)
    142141    {
    143       cerr << "** ERROR: " << "invalid event format" << endl;
     142      cerr << "** ERROR: "
     143           << "invalid event format" << endl;
    144144      return kFALSE;
    145145    }
     
    155155    if(!rc)
    156156    {
    157       cerr << "** ERROR: " << "invalid event format" << endl;
     157      cerr << "** ERROR: "
     158           << "invalid event format" << endl;
    158159      return kFALSE;
    159160    }
     
    167168    if(!rc)
    168169    {
    169       cerr << "** ERROR: " << "invalid event format" << endl;
     170      cerr << "** ERROR: "
     171           << "invalid event format" << endl;
    170172      return kFALSE;
    171173    }
     
    177179    if(rc != 2)
    178180    {
    179       cerr << "** ERROR: " << "invalid units format" << endl;
     181      cerr << "** ERROR: "
     182           << "invalid units format" << endl;
    180183      return kFALSE;
    181184    }
     
    189192      fMomentumCoefficient = 0.001;
    190193    }
    191    
     194
    192195    if(strncmp(positionUnit, "MM", 3) == 0)
    193196    {
     
    199202    }
    200203  }
    201  
     204
    202205  else if(key == 'C')
    203206  {
     
    205208      && bufferStream.ReadDbl(fCrossSectionError);
    206209  }
    207  
     210
    208211  else if(key == 'F')
    209212  {
     
    218221    if(!rc)
    219222    {
    220       cerr << "** ERROR: " << "invalid PDF format" << endl;
     223      cerr << "** ERROR: "
     224           << "invalid PDF format" << endl;
    221225      return kFALSE;
    222226    }
     
    235239    if(!rc)
    236240    {
    237       cerr << "** ERROR: " << "invalid vertex format" << endl;
     241      cerr << "** ERROR: "
     242           << "invalid vertex format" << endl;
    238243      return kFALSE;
    239244    }
     
    256261    if(!rc)
    257262    {
    258       cerr << "** ERROR: " << "invalid particle format" << endl;
     263      cerr << "** ERROR: "
     264           << "invalid particle format" << endl;
    259265      return kFALSE;
    260266    }
     
    345351{
    346352  Weight *element;
    347   vector< double >::const_iterator itWeight;
     353  vector<double>::const_iterator itWeight;
    348354
    349355  for(itWeight = fWeight.begin(); itWeight != fWeight.end(); ++itWeight)
     
    374380
    375381  pdgParticle = fPDG->GetParticle(fPID);
    376   candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
     382  candidate->Charge = pdgParticle ? int(pdgParticle->Charge() / 3.0) : -999;
    377383  candidate->Mass = fMass;
    378384
     
    427433{
    428434  Candidate *candidate;
    429   map< int, pair< int, int > >::iterator itMotherMap;
    430   map< int, pair< int, int > >::iterator itDaughterMap;
     435  map<int, pair<int, int>>::iterator itMotherMap;
     436  map<int, pair<int, int>>::iterator itDaughterMap;
    431437  int i;
    432438
Note: See TracChangeset for help on using the changeset viewer.