- Timestamp:
- May 4, 2016, 1:52:33 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 76c2a3b
- Parents:
- f01803a
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/ParticlePropagator.cc
rf01803a rbff2e33 93 93 94 94 // import beamspot 95 96 fBeamSpotInputArray = ImportArray(GetString("BeamSpotInputArray", "BeamSpotFilter/beamSpotParticle")); 97 95 try 96 { 97 fBeamSpotInputArray = ImportArray(GetString("BeamSpotInputArray", "BeamSpotFilter/beamSpotParticle")); 98 } 99 catch(runtime_error &e) 100 { 101 fBeamSpotInputArray = 0; 102 } 98 103 // create output arrays 99 104 … … 131 136 const Double_t c_light = 2.99792458E8; 132 137 133 if (!fBeamSpotInputArray ->GetSize () || !fBeamSpotInputArray->At(0))138 if (!fBeamSpotInputArray || fBeamSpotInputArray->GetSize () == 0) 134 139 beamSpotPosition.SetXYZT(0.0, 0.0, 0.0, 0.0); 135 140 else -
modules/TrackSmearing.cc
rf01803a rbff2e33 129 129 fItInputArray = fInputArray->MakeIterator(); 130 130 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 133 141 // create output array 134 142 … … 158 166 *phiErrorHist = NULL; 159 167 160 161 if (!fBeamSpotInputArray ->GetSize () || !fBeamSpotInputArray->At(0))168 //cout<<fBeamSpotInputArray->GetSize ()<<endl; 169 if (!fBeamSpotInputArray || fBeamSpotInputArray->GetSize () == 0) 162 170 beamSpotPosition.SetXYZT(0.0, 0.0, 0.0, 0.0); 163 171 else
Note:
See TracChangeset
for help on using the changeset viewer.