// also a AliEvent...
// AliVEvent* mcEvent = MCEvent();
AliMCEvent* mcEvent = MCEvent();
+ if (!mcEvent) {
+ Printf("ERROR: Could not retrieve MC event");
+ return;
+ }
AliGenPythiaEventHeader * headPy = 0;
AliGenDPMjetEventHeader * headPho = 0;
AliGenEventHeader * htmp = mcEvent->GenEventHeader();
}
- if (!mcEvent) {
- Printf("ERROR: Could not retrieve MC event");
- return;
- }
// Printf("MC particles: %d", mcEvent->GetNumberOfTracks());
// Check if the evend is single diffractive