Fork me on GitHub

Changeset bff2e33 in git for modules/TrackSmearing.cc


Ignore:
Timestamp:
May 4, 2016, 1:52:33 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
76c2a3b
Parents:
f01803a
Message:

added exception for beamspot array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TrackSmearing.cc

    rf01803a rbff2e33  
    129129  fItInputArray = fInputArray->MakeIterator();
    130130 
    131   fBeamSpotInputArray = ImportArray(GetString("BeamSpotInputArray", "BeamSpotFilter/beamSpotParticle"));
    132 
     131  // import beamspot
     132  try
     133  {
     134    fBeamSpotInputArray = ImportArray(GetString("BeamSpotInputArray", "BeamSpotFilter/beamSpotParticle"));
     135  }
     136  catch(runtime_error &e)
     137  {
     138    fBeamSpotInputArray = 0;
     139  } 
     140 
    133141  // create output array
    134142
     
    158166             *phiErrorHist = NULL;
    159167
    160  
    161   if (!fBeamSpotInputArray->GetSize () || !fBeamSpotInputArray->At(0))
     168  //cout<<fBeamSpotInputArray->GetSize ()<<endl;
     169  if (!fBeamSpotInputArray || fBeamSpotInputArray->GetSize () == 0)
    162170    beamSpotPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
    163171  else
Note: See TracChangeset for help on using the changeset viewer.