Fork me on GitHub

Changeset 4569b59 in git


Ignore:
Timestamp:
May 17, 2016, 2:34:57 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
2600216
Parents:
b0fa9af
Message:

added try catch for BS collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/VertexSorter.cc

    rb0fa9af r4569b59  
    7171    }
    7272
    73   if (string (GetString("BeamSpotInputArray", "")) != "")
    74     {
    75       fBeamSpotInputArray = ImportArray(GetString("BeamSpotInputArray", ""));
    76       fItBeamSpotInputArray = fBeamSpotInputArray->MakeIterator();
    77     }
    78 
     73  // import beamspot
     74  try
     75  {
     76    fBeamSpotInputArray = ImportArray(GetString("BeamSpotInputArray", "BeamSpotFilter/beamSpotParticle"));
     77  }
     78  catch(runtime_error &e)
     79  {
     80    fBeamSpotInputArray = 0;
     81  } 
     82 
    7983  fOutputArray = ExportArray(GetString("OutputArray", "clusters"));
    8084
Note: See TracChangeset for help on using the changeset viewer.