Fork me on GitHub

Changeset 6cdc544 in git for modules/TimeSmearing.cc


Ignore:
Timestamp:
Dec 21, 2014, 12:07:11 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
38bf1ae
Parents:
1d1f6a4
Message:

fix formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TimeSmearing.cc

    r1d1f6a4 r6cdc544  
    4444#include "TLorentzVector.h"
    4545
    46 #include <algorithm> 
     46#include <algorithm>
    4747#include <stdexcept>
    4848#include <iostream>
     
    9595  Double_t t;
    9696  const Double_t c_light = 2.99792458E8;
    97  
     97
    9898  fItInputArray->Reset();
    9999  while((candidate = static_cast<Candidate*>(fItInputArray->Next())))
     
    101101    const TLorentzVector &candidatePosition = candidate->Position;
    102102    t = candidatePosition.T()*1.0E-3/c_light;
    103    
     103
    104104    // apply smearing formula
    105105    t = gRandom->Gaus(t, fTimeResolution);
    106    
     106
    107107    mother = candidate;
    108108    candidate = static_cast<Candidate*>(candidate->Clone());
    109109    candidate->Position.SetT(t*1.0E3*c_light);
    110    
     110
    111111    candidate->AddCandidate(mother);
    112        
     112
    113113    fOutputArray->Add(candidate);
    114114  }
Note: See TracChangeset for help on using the changeset viewer.