Fork me on GitHub

Changeset 48f7a77 in git


Ignore:
Timestamp:
Apr 28, 2016, 11:41:56 AM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
632da30
Parents:
72e0320
Message:

added compute beamspot function in propagator

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/ParticlePropagator.cc

    r72e0320 r48f7a77  
    6666{
    6767}
     68
     69
     70//------------------------------------------------------------------------------
     71
     72TLorentzVector ParticlePropagator::BeamSpotPosition(const TObjArray *array)
     73{
     74  Candidate *candidate;
     75  Bool_t passed = false;
     76  TLorentzVector bs;
     77 
     78  fItInputArray->Reset();
     79  while((candidate = static_cast<Candidate*>(fItInputArray->Next())) && !passed)
     80  {
     81    if(candidate->IsPU == 0) passed = true;
     82    bs = candidate->Position;
     83  }
     84 
     85  return bs;
     86 
     87}
     88
     89
    6890
    6991//------------------------------------------------------------------------------
     
    124146  const Double_t c_light = 2.99792458E8;
    125147
     148  const TLorentzVector &bs = BeamSpotPosition(fInputArray);
     149
    126150  fItInputArray->Reset();
    127151  while((candidate = static_cast<Candidate*>(fItInputArray->Next())))
  • modules/ParticlePropagator.h

    r72e0320 r48f7a77  
    3535class TClonesArray;
    3636class TIterator;
     37class TLorentzVector;
    3738
    3839class ParticlePropagator: public DelphesModule
     
    6162  TObjArray *fMuonOutputArray; //!
    6263
     64  TLorentzVector BeamSpotPosition(const TObjArray *array);
     65
    6366  ClassDef(ParticlePropagator, 1)
    6467};
Note: See TracChangeset for help on using the changeset viewer.