Merge pull request #25231 from veprbl/root_6.09.02

root: 6.08.02 -> 6.09.02

authored by Jörg Thalheim and committed by GitHub ea706bd9 0eaddb05

+340 -10
+200
pkgs/applications/science/misc/root/ROOT-8728-extra.patch
···
··· 1 + diff --git a/core/base/inc/ROOT/StringConv.hxx b/core/base/inc/ROOT/StringConv.hxx 2 + index 629fc18..4efa54a 100644 3 + --- a/core/base/inc/ROOT/StringConv.hxx 4 + +++ b/core/base/inc/ROOT/StringConv.hxx 5 + @@ -89,7 +89,7 @@ EFromHumanReadableSize FromHumanReadableSize(std::string_view str, T &value) 6 + size_t size = str.size(); 7 + size_t cur; 8 + // Parse leading numeric factor 9 + - const double coeff = stod(str, &cur); 10 + + const double coeff = stod(static_cast<std::string>(str), &cur); 11 + 12 + // Skip any intermediate white space 13 + while (cur<size && isspace(str[cur])) ++cur; 14 + diff --git a/core/metacling/src/TCling.cxx b/core/metacling/src/TCling.cxx 15 + index d71cb74..076facb 100644 16 + --- a/core/metacling/src/TCling.cxx 17 + +++ b/core/metacling/src/TCling.cxx 18 + @@ -756,7 +756,7 @@ int TCling_GenerateDictionary(const std::vector<std::string> &classes, 19 + gSystem->PrependPathName(dirbase, header); 20 + dir = gSystem->DirName(dir); 21 + } 22 + - fileContent += TString("#include \"") + header + "\"\n"; 23 + + fileContent += (TString("#include \"") + header + "\"\n").Data(); 24 + } 25 + } 26 + for (it = fwdDecls.begin(); it != fwdDecls.end(); ++it) { 27 + @@ -1061,7 +1061,7 @@ TCling::TCling(const char *name, const char *title) 28 + ROOT::TMetaUtils::SetPathsForRelocatability(clingArgsStorage); 29 + 30 + // Add -I early so ASTReader can find the headers. 31 + - std::string interpInclude(TROOT::GetEtcDir()); 32 + + std::string interpInclude(TROOT::GetEtcDir().Data()); 33 + clingArgsStorage.push_back("-I" + interpInclude); 34 + 35 + // Add include path to etc/cling. FIXME: This is a short term solution. The 36 + @@ -1070,7 +1070,7 @@ TCling::TCling(const char *name, const char *title) 37 + clingArgsStorage.push_back("-I" + interpInclude + "/cling"); 38 + 39 + // Add the root include directory and etc/ to list searched by default. 40 + - clingArgsStorage.push_back(std::string("-I" + TROOT::GetIncludeDir())); 41 + + clingArgsStorage.push_back(std::string(("-I" + TROOT::GetIncludeDir()).Data())); 42 + 43 + // Add the current path to the include path 44 + // TCling::AddIncludePath("."); 45 + diff --git a/hist/hist/src/TFormula.cxx b/hist/hist/src/TFormula.cxx 46 + index abf3929..e7dad98 100644 47 + --- a/hist/hist/src/TFormula.cxx 48 + +++ b/hist/hist/src/TFormula.cxx 49 + @@ -1677,7 +1677,7 @@ void TFormula::ProcessFormula(TString &formula) 50 + if(fun.fName.Contains("::")) // add support for nested namespaces 51 + { 52 + // look for last occurence of "::" 53 + - std::string name(fun.fName); 54 + + std::string name(fun.fName.Data()); 55 + size_t index = name.rfind("::"); 56 + assert(index != std::string::npos); 57 + TString className = fun.fName(0,fun.fName(0,index).Length()); 58 + @@ -1869,7 +1869,7 @@ void TFormula::ProcessFormula(TString &formula) 59 + 60 + // save copy of inputFormula in a std::strig for the unordered map 61 + // and also formula is same as FClingInput typically and it will be modified 62 + - std::string inputFormula = std::string(formula); 63 + + std::string inputFormula = std::string(formula.Data()); 64 + 65 + 66 + // valid input formula - try to put into Cling 67 + diff --git a/main/src/nbmain.cxx b/main/src/nbmain.cxx 68 + index 55d4f2f..8490149 100644 69 + --- a/main/src/nbmain.cxx 70 + +++ b/main/src/nbmain.cxx 71 + @@ -173,9 +173,9 @@ static bool CreateStamp(string dest) 72 + 73 + int main() 74 + { 75 + - string rootbin(TROOT::GetBinDir()); 76 + - string rootlib(TROOT::GetLibDir()); 77 + - string rootetc(TROOT::GetEtcDir()); 78 + + string rootbin(TROOT::GetBinDir().Data()); 79 + + string rootlib(TROOT::GetLibDir().Data()); 80 + + string rootetc(TROOT::GetEtcDir().Data()); 81 + 82 + // If needed, install ROOT notebook files in the user's home directory 83 + #ifdef WIN32 84 + diff --git a/math/minuit/src/TMinuitMinimizer.cxx b/math/minuit/src/TMinuitMinimizer.cxx 85 + index 4e2082a..18215c0 100644 86 + --- a/math/minuit/src/TMinuitMinimizer.cxx 87 + +++ b/math/minuit/src/TMinuitMinimizer.cxx 88 + @@ -454,7 +454,7 @@ std::string TMinuitMinimizer::VariableName(unsigned int ivar) const { 89 + // return the variable name 90 + if (!CheckMinuitInstance()) return std::string(); 91 + if (!CheckVarIndex(ivar)) return std::string(); 92 + - return std::string(fMinuit->fCpnam[ivar]); 93 + + return std::string(fMinuit->fCpnam[ivar].Data()); 94 + } 95 + 96 + int TMinuitMinimizer::VariableIndex(const std::string & ) const { 97 + diff --git a/tmva/tmva/src/Factory.cxx b/tmva/tmva/src/Factory.cxx 98 + index 36060ef..a1bbe34 100644 99 + --- a/tmva/tmva/src/Factory.cxx 100 + +++ b/tmva/tmva/src/Factory.cxx 101 + @@ -390,7 +390,7 @@ TMVA::MethodBase* TMVA::Factory::BookMethod( TMVA::DataLoader *loader, TString t 102 + // initialize methods 103 + IMethod* im; 104 + if (!boostNum) { 105 + - im = ClassifierFactory::Instance().Create( std::string(theMethodName), 106 + + im = ClassifierFactory::Instance().Create( std::string(theMethodName.Data()), 107 + fJobName, 108 + methodTitle, 109 + loader->DefaultDataSetInfo(), 110 + @@ -933,7 +933,7 @@ void TMVA::Factory::TrainAllMethods() 111 + 112 + // recreate 113 + m = dynamic_cast<MethodBase*>( ClassifierFactory::Instance() 114 + - .Create( std::string(Types::Instance().GetMethodName(methodType)), 115 + + .Create( std::string(Types::Instance().GetMethodName(methodType).Data()), 116 + dataSetInfo, weightfile ) ); 117 + if( m->GetMethodType() == Types::kCategory ){ 118 + MethodCategory *methCat = (dynamic_cast<MethodCategory*>(m)); 119 + diff --git a/tmva/tmva/src/MethodBoost.cxx b/tmva/tmva/src/MethodBoost.cxx 120 + index 1349e5d..2125ab3 100644 121 + --- a/tmva/tmva/src/MethodBoost.cxx 122 + +++ b/tmva/tmva/src/MethodBoost.cxx 123 + @@ -389,7 +389,7 @@ void TMVA::MethodBoost::Train() 124 + // the first classifier shows the option string output, the rest not 125 + if (fCurrentMethodIdx>0) TMVA::MsgLogger::InhibitOutput(); 126 + 127 + - IMethod* method = ClassifierFactory::Instance().Create(std::string(fBoostedMethodName), 128 + + IMethod* method = ClassifierFactory::Instance().Create(std::string(fBoostedMethodName.Data()), 129 + GetJobName(), 130 + Form("%s_B%04i", fBoostedMethodTitle.Data(),fCurrentMethodIdx), 131 + DataInfo(), 132 + diff --git a/tmva/tmva/src/MethodCategory.cxx b/tmva/tmva/src/MethodCategory.cxx 133 + index c2cbe80..d278cca 100644 134 + --- a/tmva/tmva/src/MethodCategory.cxx 135 + +++ b/tmva/tmva/src/MethodCategory.cxx 136 + @@ -147,7 +147,7 @@ TMVA::IMethod* TMVA::MethodCategory::AddMethod( const TCut& theCut, 137 + const TString& theTitle, 138 + const TString& theOptions ) 139 + { 140 + - std::string addedMethodName = std::string(Types::Instance().GetMethodName(theMethod)); 141 + + std::string addedMethodName = std::string(Types::Instance().GetMethodName(theMethod).Data()); 142 + 143 + Log() << kINFO << "Adding sub-classifier: " << addedMethodName << "::" << theTitle << Endl; 144 + 145 + diff --git a/tmva/tmva/src/MethodCompositeBase.cxx b/tmva/tmva/src/MethodCompositeBase.cxx 146 + index 98fa5da..96bd9a3 100644 147 + --- a/tmva/tmva/src/MethodCompositeBase.cxx 148 + +++ b/tmva/tmva/src/MethodCompositeBase.cxx 149 + @@ -194,7 +194,7 @@ void TMVA::MethodCompositeBase::ReadWeightsFromXML( void* wghtnode ) 150 + ((TMVA::MethodBoost*)this)->BookMethod( Types::Instance().GetMethodType( methodTypeName), methodName, optionString ); 151 + } 152 + fMethods.push_back(ClassifierFactory::Instance().Create( 153 + - std::string(methodTypeName),jobName, methodName,DataInfo(),optionString)); 154 + + std::string(methodTypeName.Data()),jobName, methodName,DataInfo(),optionString)); 155 + 156 + fMethodWeight.push_back(methodWeight); 157 + MethodBase* meth = dynamic_cast<MethodBase*>(fMethods.back()); 158 + @@ -259,7 +259,7 @@ void TMVA::MethodCompositeBase::ReadWeightsFromStream( std::istream& istr ) 159 + ((TMVA::MethodBoost*)this)->BookMethod( Types::Instance().GetMethodType( methodName), methodTitle, optionString ); 160 + } 161 + else methodTitle=Form("%s (%04i)",GetMethodName().Data(),fCurrentMethodIdx); 162 + - fMethods.push_back(ClassifierFactory::Instance().Create( std::string(methodName), jobName, 163 + + fMethods.push_back(ClassifierFactory::Instance().Create( std::string(methodName.Data()), jobName, 164 + methodTitle,DataInfo(), optionString) ); 165 + fMethodWeight.push_back( methodWeight ); 166 + if(MethodBase* m = dynamic_cast<MethodBase*>(fMethods.back()) ) 167 + diff --git a/tmva/tmva/src/Reader.cxx b/tmva/tmva/src/Reader.cxx 168 + index 94a8b28..0b67867 100644 169 + --- a/tmva/tmva/src/Reader.cxx 170 + +++ b/tmva/tmva/src/Reader.cxx 171 + @@ -401,7 +401,7 @@ TMVA::IMethod* TMVA::Reader::BookMVA( const TString& methodTag, const TString& w 172 + 173 + TMVA::IMethod* TMVA::Reader::BookMVA( TMVA::Types::EMVA methodType, const TString& weightfile ) 174 + { 175 + - IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType )), 176 + + IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType ).Data()), 177 + DataInfo(), weightfile ); 178 + 179 + MethodBase *method = (dynamic_cast<MethodBase*>(im)); 180 + @@ -440,7 +440,7 @@ TMVA::IMethod* TMVA::Reader::BookMVA( TMVA::Types::EMVA methodType, const char* 181 + #if ROOT_VERSION_CODE >= ROOT_VERSION(5,26,00) 182 + 183 + // books MVA method from weightfile 184 + - IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType )), 185 + + IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType ).Data()), 186 + DataInfo(), "" ); 187 + 188 + MethodBase *method = (dynamic_cast<MethodBase*>(im)); 189 + diff -aru a/core/base/inc/TString.h b/core/base/inc/TString.h 190 + --- a/core/base/inc/TString.h 191 + +++ b/core/base/inc/TString.h 192 + @@ -106,7 +106,7 @@ 193 + char operator[](Ssiz_t i) const; // Index with bounds checking 194 + 195 + operator std::string_view() const { return std::string_view(Data(),fExtent); } 196 + - operator std::string() const { return std::string_view(Data(),fExtent).to_string(); } 197 + + operator std::string() const { return static_cast<std::string>(std::string_view(Data(),fExtent)); } 198 + 199 + const char *Data() const; 200 + Ssiz_t Length() const { return fExtent; }
+16 -8
pkgs/applications/science/misc/root/default.nix
··· 1 { stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2 2 - , libX11, libXpm, libXft, libXext, zlib, lzma, gsl, Cocoa }: 3 4 stdenv.mkDerivation rec { 5 name = "root-${version}"; 6 - version = "6.08.02"; 7 8 src = fetchurl { 9 url = "https://root.cern.ch/download/root_v${version}.source.tar.gz"; 10 - sha256 = "0530v1r4rvds52hgb13f00l3phhn76z6vii550mwv8bj3sl5070k"; 11 }; 12 13 - buildInputs = [ cmake pcre pkgconfig python2 zlib lzma gsl ] 14 - ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext ] 15 - ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa ] 16 ; 17 18 patches = [ ··· 20 21 # this prevents thisroot.sh from setting $p, which interferes with stdenv setup 22 ./thisroot.patch 23 ]; 24 25 preConfigure = '' ··· 47 "-Dmonalisa=OFF" 48 "-Dmysql=OFF" 49 "-Dodbc=OFF" 50 - "-Dopengl=OFF" 51 "-Doracle=OFF" 52 "-Dpgsql=OFF" 53 "-Dpythia6=OFF" ··· 55 "-Drfio=OFF" 56 "-Dsqlite=OFF" 57 "-Dssl=OFF" 58 - "-Dxml=OFF" 59 "-Dxrootd=OFF" 60 ] 61 ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.lib.getDev stdenv.cc.libc}/include";
··· 1 { stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2 2 + , libX11, libXpm, libXft, libXext, mesa, zlib, libxml2, lzma, gsl 3 + , Cocoa, OpenGL }: 4 5 stdenv.mkDerivation rec { 6 name = "root-${version}"; 7 + version = "6.09.02"; 8 9 src = fetchurl { 10 url = "https://root.cern.ch/download/root_v${version}.source.tar.gz"; 11 + sha256 = "0fc6b0l7bw66cyckxs4ikvyzcv1zlfx88205jx153smdhih0jj2k"; 12 }; 13 14 + buildInputs = [ cmake pcre pkgconfig python2 zlib libxml2 lzma gsl ] 15 + ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext mesa ] 16 + ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ] 17 ; 18 19 patches = [ ··· 21 22 # this prevents thisroot.sh from setting $p, which interferes with stdenv setup 23 ./thisroot.patch 24 + 25 + # https://sft.its.cern.ch/jira/browse/ROOT-8728 26 + (fetchpatch { 27 + url = "https://sft.its.cern.ch/jira/secure/attachment/20025/0001-std-string_view-has-no-more-to_string.patch"; 28 + sha256 = "0ngyk960xfrcsj4vhr1ax8h85fx0g1cfycxi3k35a6ych2zmyg8q"; 29 + }) 30 + ./ROOT-8728-extra.patch 31 ]; 32 33 preConfigure = '' ··· 55 "-Dmonalisa=OFF" 56 "-Dmysql=OFF" 57 "-Dodbc=OFF" 58 + "-Dopengl=ON" 59 "-Doracle=OFF" 60 "-Dpgsql=OFF" 61 "-Dpythia6=OFF" ··· 63 "-Drfio=OFF" 64 "-Dsqlite=OFF" 65 "-Dssl=OFF" 66 + "-Dxml=ON" 67 "-Dxrootd=OFF" 68 ] 69 ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.lib.getDev stdenv.cc.libc}/include";
+1 -1
pkgs/applications/science/misc/root/sw_vers.patch
··· 25 - COMMAND cut -d . -f 2 26 - OUTPUT_VARIABLE MACOSX_MINOR OUTPUT_STRIP_TRAILING_WHITESPACE) 27 - 28 - - if(MACOSX_VERSION VERSION_GREATER 10.7 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL Clang) 29 set(libcxx ON CACHE BOOL "Build using libc++" FORCE) 30 - endif() 31
··· 25 - COMMAND cut -d . -f 2 26 - OUTPUT_VARIABLE MACOSX_MINOR OUTPUT_STRIP_TRAILING_WHITESPACE) 27 - 28 + - if(MACOSX_VERSION VERSION_GREATER 10.7 AND ${CMAKE_CXX_COMPILER_ID} MATCHES Clang) 29 set(libcxx ON CACHE BOOL "Build using libc++" FORCE) 30 - endif() 31
+3
pkgs/applications/science/physics/sherpa/default.nix
··· 13 14 enableParallelBuilding = true; 15 16 configureFlags = [ 17 "--with-sqlite3=${sqlite.dev}" 18 "--enable-hepmc2=${hepmc}"
··· 13 14 enableParallelBuilding = true; 15 16 + # LLVM 4 doesn't allow ambigous type in std::abs argument 17 + patches = stdenv.lib.optional stdenv.cc.isClang [ ./explicit_overloads.patch ]; 18 + 19 configureFlags = [ 20 "--with-sqlite3=${sqlite.dev}" 21 "--enable-hepmc2=${hepmc}"
+119
pkgs/applications/science/physics/sherpa/explicit_overloads.patch
···
··· 1 + diff --git a/ATOOLS/Phys/Flavour.C b/ATOOLS/Phys/Flavour.C 2 + index 1986348..740eea3 100644 3 + --- a/ATOOLS/Phys/Flavour.C 4 + +++ b/ATOOLS/Phys/Flavour.C 5 + @@ -298,8 +298,8 @@ std::string Flavour::IDName() const 6 + 7 + bool Flavour::IsDiQuark() const 8 + { 9 + - if(abs(Kfcode())>=1103&&abs(Kfcode())<=5505) { 10 + - double help=abs(Kfcode())/100.0-int(abs(Kfcode())/100.0); 11 + + if(abs((long)Kfcode())>=1103&&abs((long)Kfcode())<=5505) { 12 + + double help=abs((long)Kfcode())/100.0-int(abs((long)Kfcode())/100.0); 13 + if(help<0.031) return true; 14 + } 15 + return false; 16 + @@ -307,27 +307,27 @@ bool Flavour::IsDiQuark() const 17 + 18 + bool Flavour::IsBaryon() const 19 + { 20 + - if (abs(Kfcode())%10000<1000) return false; 21 + + if (abs((long)Kfcode())%10000<1000) return false; 22 + return !IsDiQuark(); 23 + } 24 + 25 + bool Flavour::IsB_Hadron() const 26 + { 27 + - if (abs(Kfcode())<100) return 0; 28 + + if (abs((long)Kfcode())<100) return 0; 29 + if (Kfcode()-100*int(Kfcode()/100)<10) return 0; 30 + - if (abs((Kfcode()-100*int(Kfcode()/100))/10)==5) return 1; 31 + - if (abs((Kfcode()-1000*int(Kfcode()/1000))/100)==5) return 1; 32 + - if (abs((Kfcode()-10000*int(Kfcode()/10000))/1000)==5) return 1; 33 + + if (abs((long)(Kfcode()-100*int(Kfcode()/100))/10)==5) return 1; 34 + + if (abs((long)(Kfcode()-1000*int(Kfcode()/1000))/100)==5) return 1; 35 + + if (abs((long)(Kfcode()-10000*int(Kfcode()/10000))/1000)==5) return 1; 36 + return 0; 37 + } 38 + 39 + bool Flavour::IsC_Hadron() const 40 + { 41 + - if (abs(Kfcode())<100) return 0; 42 + + if (abs((long)Kfcode())<100) return 0; 43 + if (Kfcode()-100*int(Kfcode()/100)<10) return 0; 44 + - if (abs((Kfcode()-100*int(Kfcode()/100))/10)==4) return 1; 45 + - if (abs((Kfcode()-1000*int(Kfcode()/1000))/100)==4) return 1; 46 + - if (abs((Kfcode()-10000*int(Kfcode()/10000))/1000)==4) return 1; 47 + + if (abs((long)(Kfcode()-100*int(Kfcode()/100))/10)==4) return 1; 48 + + if (abs((long)(Kfcode()-1000*int(Kfcode()/1000))/100)==4) return 1; 49 + + if (abs((long)(Kfcode()-10000*int(Kfcode()/10000))/1000)==4) return 1; 50 + return 0; 51 + } 52 + 53 + diff --git a/AddOns/Pythia/Pythia_Jet_Criterion.C b/AddOns/Pythia/Pythia_Jet_Criterion.C 54 + index bbe9597..c1201e1 100644 55 + --- a/AddOns/Pythia/Pythia_Jet_Criterion.C 56 + +++ b/AddOns/Pythia/Pythia_Jet_Criterion.C 57 + @@ -117,8 +117,8 @@ namespace PYTHIA { 58 + double Qsq = sign * Q.Abs2(); 59 + // Mass term of radiator 60 + DEBUG_VAR(ampl->MS()); 61 + - double m2Rad = ( abs(RadAfterBranch.Flav().Kfcode()) >= 4 62 + - && abs(RadAfterBranch.Flav().Kfcode()) < 7) 63 + + double m2Rad = ( abs((long)RadAfterBranch.Flav().Kfcode()) >= 4 64 + + && abs((long)RadAfterBranch.Flav().Kfcode()) < 7) 65 + ? ampl->MS()->Mass2(RadAfterBranch.Flav()) 66 + : 0.; 67 + // Construct 2->3 variables for FSR 68 + diff --git a/BEAM/Main/EPA.C b/BEAM/Main/EPA.C 69 + index 861a1b2..340ac33 100644 70 + --- a/BEAM/Main/EPA.C 71 + +++ b/BEAM/Main/EPA.C 72 + @@ -54,7 +54,7 @@ double EPA::CosInt::GetCosInt(double X) 73 + 74 + double EPA::phi(double x, double qq) 75 + { 76 + - if (abs(m_beam.Kfcode()) == kf_p_plus) { 77 + + if (abs((long)m_beam.Kfcode()) == kf_p_plus) { 78 + const double a = 7.16; 79 + const double b = -3.96; 80 + const double c = .028; 81 + @@ -179,7 +179,7 @@ bool EPA::CalculateWeight(double x,double q2) 82 + m_weight=0.0; 83 + return 1; 84 + } 85 + - if (abs(m_beam.Kfcode()) == kf_e) { 86 + + if (abs((long)m_beam.Kfcode()) == kf_e) { 87 + double f = alpha/M_PI*(1+sqr(1-m_x))/m_x*log(2.*m_energy/m_mass); 88 + if (f < 0) f = 0.; 89 + m_weight = f; 90 + @@ -187,7 +187,7 @@ bool EPA::CalculateWeight(double x,double q2) 91 + <<"energy = "<<m_energy<<", "<<"mass = "<<m_mass<<".\n"; 92 + return 1; 93 + } 94 + - else if (abs(m_beam.Kfcode()) == kf_p_plus) { 95 + + else if (abs((long)m_beam.Kfcode()) == kf_p_plus) { 96 + const double qz = 0.71; 97 + double f, qmi, qma; 98 + qma=m_q2Max/qz; 99 + diff --git a/PDF/Remnant/Hadron_Remnant.C b/PDF/Remnant/Hadron_Remnant.C 100 + index 243717c..58c2278 100644 101 + --- a/PDF/Remnant/Hadron_Remnant.C 102 + +++ b/PDF/Remnant/Hadron_Remnant.C 103 + @@ -188,13 +188,13 @@ ATOOLS::Flavour Hadron_Remnant::Opposite(ATOOLS::Flavour flav) const 104 + if (m_constit[i]==flav && !found) found=true; 105 + else rem[j++]=m_constit[i].Kfcode(); 106 + } 107 + - Flavour anti=Flavour((kf_code)(abs(rem[0])*1000+abs(rem[1])*100+3)); 108 + + Flavour anti=Flavour((kf_code)(abs((long)rem[0])*1000+abs((long)rem[1])*100+3)); 109 + if (rem[0]!=rem[1]) { 110 + if (ran->Get()<0.25) 111 + - anti=Flavour((kf_code)(abs(rem[0])*1000+abs(rem[1])*100+1)); 112 + + anti=Flavour((kf_code)(abs((long)rem[0])*1000+abs((long)rem[1])*100+1)); 113 + } 114 + else { 115 + - anti=Flavour((kf_code)(abs(rem[0])*1100+3)); 116 + + anti=Flavour((kf_code)(abs((long)rem[0])*1100+3)); 117 + } 118 + if (flav.IsAnti()) anti=anti.Bar(); 119 + return anti;
+1 -1
pkgs/top-level/all-packages.nix
··· 18002 megam = callPackage ../applications/science/misc/megam { }; 18003 18004 root = callPackage ../applications/science/misc/root { 18005 - inherit (darwin.apple_sdk.frameworks) Cocoa; 18006 }; 18007 18008 simgrid = callPackage ../applications/science/misc/simgrid { };
··· 18002 megam = callPackage ../applications/science/misc/megam { }; 18003 18004 root = callPackage ../applications/science/misc/root { 18005 + inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL; 18006 }; 18007 18008 simgrid = callPackage ../applications/science/misc/simgrid { };