introduced in the .cxx files of IceCalibrate, IceChi2, IceCleanHits, IceDwalk,
IceDwalkx, IceLinefit, IceMakeHits, IcePandel and IceXtalk to prevent
problems with empty events.
06-jun-2007 NvE Maximum OM id changed from 677 to 681 in IceRawTWR.cxx.
// All OMs with a signal
TObjArray* mods=evt->GetDevices("IceGOM");
+ if (!mods) return;
Int_t nmods=mods->GetEntries();
if (!nmods) return;
if (fSelhits==0)
{
TObjArray* hits=fEvt->GetHits("IceGOM");
+ if (!hits) return;
for (Int_t ih=0; ih<hits->GetEntries(); ih++)
{
AliSignal* sx=(AliSignal*)hits->At(ih);
str=strx->GetString();
ntkmax=fUseNtk->At(iclass);
TObjArray* tracks=fEvt->GetTracks(str);
- ntk=tracks->GetEntries();
+ ntk=0;
+ if (tracks) ntk=tracks->GetEntries();
if (ntkmax>0 && ntk>ntkmax) ntk=ntkmax;
for (Int_t jtk=0; jtk<ntk; jtk++) // Loop over tracks of a certain class
// All Amanda OMs with a signal
TObjArray* aoms=fEvt->GetDevices("IceAOM");
+ if (!aoms) return;
// Local OM array with bad/dead OMs (as indicated via IceCalibrate) discarded
TObjArray oms;
// Fetch all fired Amanda OMs for this event
TObjArray* aoms=evt->GetDevices("IceAOM");
+ if (!aoms) return;
Int_t naoms=aoms->GetEntries();
if (!naoms) return;
// Fetch all fired Amanda OMs for this event
TObjArray* aoms=evt->GetDevices("IceAOM");
+ if (!aoms) return;
Int_t naoms=aoms->GetEntries();
if (!naoms) return;
// Fetch all fired Amanda OMs for this event
TObjArray* aoms=evt->GetDevices("IceAOM");
+ if (!aoms) return;
Int_t naoms=aoms->GetEntries();
if (!naoms) return;
// All Amanda OMs with a signal
TObjArray* aoms=fEvt->GetDevices("IceAOM");
+ if (!aoms) return;
// OM, waveform and hit
IceAOM* omx=0;
if (fSelhits==0)
{
TObjArray* hits=fEvt->GetHits("IceGOM");
+ if (!hits) return;
for (Int_t ih=0; ih<hits->GetEntries(); ih++)
{
AliSignal* sx=(AliSignal*)hits->At(ih);
str=strx->GetString();
ntkmax=fUseNtk->At(iclass);
TObjArray* tracks=fEvt->GetTracks(str);
- ntk=tracks->GetEntries();
+ ntk=0;
+ if (tracks) ntk=tracks->GetEntries();
if (ntkmax>0 && ntk>ntkmax) ntk=ntkmax;
for (Int_t jtk=0; jtk<ntk; jtk++) // Loop over tracks of a certain class
Int_t ier;
Double_t psihit=0;
fPsistats.Reset();
-//@@@ for (Int_t i=1; i<=nhits; i++)
for (Int_t i=0; i<nhits; i++)
{
AliSignal* sx=(AliSignal*)fHits->At(i);
// All Amanda OMs with a signal
TObjArray* mods=evt->GetDevices("IceAOM");
-
+ if (!mods) return;
Int_t nmods=mods->GetEntries();
if (!nmods) return;
the same OM.
05-jun-2007 NvE Search for attached dbase performed only once in the Exec() memberfunction
of IceCalibrate and IceXtalk to speed up processing.
+06-jun-2007 NvE Explicit tests on null pointers for returned TObjArray* from e.g. GetHits()
+ introduced in the .cxx files of IceCalibrate, IceChi2, IceCleanHits, IceDwalk,
+ IceDwalkx, IceLinefit, IceMakeHits, IcePandel and IceXtalk to prevent
+ problems with empty events.
IceAOM om;
IceAOM* omx=0;
Int_t omid;
- Int_t omidmax=677;
+ Int_t omidmax=681;
Int_t error;
Float_t baseline;
Int_t nfrags;
30-mar-2007 GdV Obsolete memberfunction declarations PutTrigger and PutWaveforms removed
from IceRoot.h.
01-jun-2007 NvE Class IceCal2Root extended to support various databases (e.g. MuDaq, TWRDaq, ...).
+06-jun-2007 NvE Maximum OM id changed from 677 to 681 in IceRawTWR.cxx.