Fork me on GitHub

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/TrackCountingBTagging.cc

    r45e58be r341014c  
    1717 */
    1818
    19 
    2019/** \class TrackCountingBTagging
    2120 *
     
    3231#include "classes/DelphesFormula.h"
    3332
     33#include "TFormula.h"
     34#include "TLorentzVector.h"
    3435#include "TMath.h"
     36#include "TObjArray.h"
     37#include "TRandom3.h"
    3538#include "TString.h"
    36 #include "TFormula.h"
    37 #include "TRandom3.h"
    38 #include "TObjArray.h"
    39 #include "TLorentzVector.h"
    4039
    4140#include <algorithm>
    42 #include <stdexcept>
    4341#include <iostream>
    4442#include <sstream>
     43#include <stdexcept>
    4544
    4645using namespace std;
     
    107106  // loop over all input jets
    108107  fItJetInputArray->Reset();
    109   while((jet = static_cast<Candidate*>(fItJetInputArray->Next())))
     108  while((jet = static_cast<Candidate *>(fItJetInputArray->Next())))
    110109  {
    111110    const TLorentzVector &jetMomentum = jet->Momentum;
     
    118117    count = 0;
    119118    // stop once we have enough tracks
    120     while((track = static_cast<Candidate*>(fItTrackInputArray->Next())) and count < fNtracks)
     119    while((track = static_cast<Candidate *>(fItTrackInputArray->Next())) and count < fNtracks)
    121120    {
    122121      const TLorentzVector &trkMomentum = track->Momentum;
    123122      tpt = trkMomentum.Pt();
    124123      if(tpt < fPtMin) continue;
    125      
     124
    126125      d0 = TMath::Abs(track->D0);
    127126      if(d0 > fIPmax) continue;
     
    137136      ddz = TMath::Abs(track->ErrorDZ);
    138137
    139       if(fUse3D){
    140         sign = (jpx*xd + jpy*yd + jpz*zd > 0.0) ? 1 : -1;
     138      if(fUse3D)
     139      {
     140        sign = (jpx * xd + jpy * yd + jpz * zd > 0.0) ? 1 : -1;
    141141        //add transverse and longitudinal significances in quadrature
    142         sip = sign * TMath::Sqrt( TMath::Power(d0 / dd0, 2) + TMath::Power(dz / ddz, 2) );
     142        sip = sign * TMath::Sqrt(TMath::Power(d0 / dd0, 2) + TMath::Power(dz / ddz, 2));
    143143      }
    144       else {
    145         sign = (jpx*xd + jpy*yd > 0.0) ? 1 : -1;
     144      else
     145      {
     146        sign = (jpx * xd + jpy * yd > 0.0) ? 1 : -1;
    146147        sip = sign * d0 / TMath::Abs(dd0);
    147148      }
Note: See TracChangeset for help on using the changeset viewer.