cout << "#################### Input trigger decisions ####################" << endl;
for (Int_t i = 0; i < NumberOfTriggerInputs(); i++)
{
- TriggerInput(i)->Print(option);
+ if (TriggerInput(i)) TriggerInput(i)->Print(option);
}
if (NumberOfTriggerInputs() == 0)
{
for (Int_t i = 0; i < NumberOfTriggerInputs(); i++)
{
cout << "-------------------- Input trigger decision " << i << " --------------------" << endl;
- TriggerInput(i)->Print(option);
+ if (TriggerInput(i)) TriggerInput(i)->Print(option);
}
if (NumberOfTriggerInputs() == 0)
{
for (Int_t i = 0; i < NumberOfInputObjects(); i++)
{
cout << "------------------------ Input object " << i << " ------------------------" << endl;
- InputObject(i)->Print(option);
+ if (InputObject(i)) InputObject(i)->Print(option);
}
if (NumberOfInputObjects() == 0)
{