forked from preghenella/AEGIS
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Pythia6 source code and linking
ROOT deprecates support for TPythia6[Decayer]. This commit works around this by moving relevant code from ROOT to AEGIS and by also modifying the CMake files to find and link against Pythia6.
- Loading branch information
Showing
5 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,11 @@ | |
// Allows to force decay channels. | ||
// Author: [email protected] | ||
|
||
#include <TPythia6.h> | ||
#include <TLorentzVector.h> | ||
#include "ExodusDecayer.h" | ||
|
||
class TPythia6; | ||
|
||
typedef enum { | ||
kBSemiElectronic, | ||
kSemiElectronic, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. | ||
# All rights reserved. | ||
# | ||
# For the licensing terms see $ROOTSYS/LICENSE. | ||
# For the list of contributors see $ROOTSYS/README/CREDITS. | ||
|
||
# File taken from ROOT project | ||
|
||
# - Locate pythia6 library | ||
# Defines: | ||
# | ||
# PYTHIA6_FOUND | ||
# PYTHIA6_INCLUDE_DIR | ||
# PYTHIA6_INCLUDE_DIRS (not cached) | ||
# PYTHIA6_LIBRARY | ||
# PYTHIA6_LIBRARY_DIR (not cached) | ||
# PYTHIA6_LIBRARIES (not cached) | ||
|
||
set(_pythia6dirs | ||
${PYTHIA6} | ||
$ENV{PYTHIA6} | ||
${PYTHIA6_DIR} | ||
$ENV{PYTHIA6_DIR}) | ||
|
||
find_path(PYTHIA6_INCLUDE_DIR general_pythia.inc | ||
HINTS ${_pythia6dirs} | ||
PATH_SUFFIXES include | ||
DOC "Specify the Pythia6 include dir here.") | ||
|
||
if(PYTHIA6_INCLUDE_DIR) | ||
set(PYTHIA6_INCLUDE_DIRS ${PYTHIA6_INCLUDE_DIR}) | ||
endif() | ||
|
||
find_library(PYTHIA6_LIBRARY NAMES pythia6 Pythia6 | ||
HINTS ${_pythia6dirs} | ||
PATH_SUFFIXES lib | ||
DOC "Specify the Pythia6 library here.") | ||
|
||
set(PYTHIA6_LIBRARIES ${PYTHIA6_LIBRARY}) | ||
|
||
foreach(lib rootinterface pythia6_dummy) | ||
find_library(PYTHIA6_${lib}_LIBRARY NAMES ${lib} | ||
HINTS ${_pythia6dirs} | ||
PATH_SUFFIXES lib | ||
DOC "Specify the Pythia rootinterface library here.") | ||
if(PYTHIA6_${lib}_LIBRARY) | ||
list(APPEND PYTHIA6_LIBRARIES ${PYTHIA6_${lib}_LIBRARY}) | ||
endif() | ||
endforeach() | ||
|
||
get_filename_component(PYTHIA6_LIBRARY_DIR ${PYTHIA6_LIBRARY} PATH) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set PHOTOS_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Pythia6 DEFAULT_MSG PYTHIA6_LIBRARY) | ||
|
||
mark_as_advanced(PYTHIA6_INCLUDE_DIR | ||
PYTHIA6_LIBRARY | ||
PYTHIA6_rootinterface_LIBRARY) |