Skip to content

Commit dbd7a84

Browse files
committed
A2PrimaryGeneratorAction: updated for new Pluto reader
1 parent 1b63739 commit dbd7a84

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/A2PrimaryGeneratorAction.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,18 @@ void A2PrimaryGeneratorAction::SetUpFileInput(){
363363

364364
// open file
365365
if (tree_mkin)
366+
{
366367
fFileGen = new A2FileGeneratorMkin(fInFileName);
368+
}
367369
else if (tree_pluto)
370+
{
371+
#ifdef WITH_PLUTO
368372
fFileGen = new A2FileGeneratorPluto(fInFileName);
373+
#else
374+
G4cout << "A2PrimaryGeneratorAction::SetUpFileInput(): Support for Pluto event files was not activated at compile time!" << G4endl;
375+
exit(1);
376+
#endif
377+
}
369378
else
370379
{
371380
G4cout << "A2PrimaryGeneratorAction::SetUpFileInput(): ROOT event-tree format is not supported!" << G4endl;

0 commit comments

Comments
 (0)