// check if the digitizer was already initialized
if (fSignalShape) return kTRUE;
-
fSignalShape = new TF1("ADSignalShape",this,&AliADDigitizer::SignalShape,0,200,6,"AliADDigitizer","SignalShape");
+ fPMResponse = new TF1("ADPMResponse",this,&AliADDigitizer::PMResponse,-kPMRespTime,2.*kPMRespTime,0,"AliADDigitizer","PMResponse");
+ fSinglePhESpectrum = new TF1("ADSinglePhESpectrum",this,&AliADDigitizer::SinglePhESpectrum,0,20,0,"AliADDigitizer","SinglePhESpectrum");
// fSignalShape->SetParameters(0,1.57345e1,-4.25603e-1,2.9,6.40982,3.69339e-01);
// fSignalShape->SetParameters(1.34330e+00,1.13007e+02,-4.95705e-01,
// 3.68911e+00,1.01040e+00, 3.94675e-01);
fSignalShape->SetParameters(-1.07335e+00,2.16002e+01,-1.26133e-01,
1.41619e+00,5.50334e-01,3.86111e-01);
- fPMResponse = new TF1("ADPMResponse",this,&AliADDigitizer::PMResponse,-kPMRespTime,2.*kPMRespTime,0,"AliADDigitizer","PMResponse");
- fSinglePhESpectrum = new TF1("ADSinglePhESpectrum",this,&AliADDigitizer::SinglePhESpectrum,0,20,0,"AliADDigitizer","SinglePhESpectrum");
// Now get the CTP L0->L1 delay
AliCDBEntry *entry = AliCDBManager::Instance()->Get("GRP/CTP/CTPtiming");
set(MODULE EPOS)
# Module include folder
-include_directories(${AliRoot_SOURCE_DIR}/EPOS/epos167
+include_directories(${AliRoot_SOURCE_DIR}/EPOS
+ ${AliRoot_SOURCE_DIR}/EPOS/epos167
)
# Additional include folders in alphabetical order
//
////////////////////////////////////////////////////////////////////////////////
-
+#include <RVersion.h>
#include <Riostream.h>
#include <TCanvas.h>
#include <TF1.h>
// standard models
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+ if (fModel == 1) fCurrentForm = fPtFormula->GetFormula();
+ if (fModel > 1 && fModel < 5) fCurrentForm = fPtYFormula[fModel-2]->GetFormula();
+#else
if (fModel == 1) fCurrentForm = fPtFormula;
if (fModel > 1 && fModel < 5) fCurrentForm = fPtYFormula[fModel-2];
+#endif
// custom model defined by a formula
if (fModel == 5) {
fCurrentForm = 0;
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+ TF2* tmpTF2 = (TF2*)gROOT->GetFunction(pattern[0]);
+ if (tmpTF2) fCurrentForm = tmpTF2->GetFormula();
+#else
fCurrentForm = (TF2*)gROOT->GetFunction(pattern[0]);
+#endif
if (!fCurrentForm) {
snprintf(buff, 40, pattern[1], pdg);
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+ tmpTF2 = (TF2*)gROOT->GetFunction(buff);
+ if (tmpTF2) fCurrentForm = tmpTF2->GetFormula();
+#else
fCurrentForm = (TF2*)gROOT->GetFunction(buff);
+#endif
if (!fCurrentForm) Error(where, msg[0], pdg);
}
#include "AliHLTCDHWrapper.h"
#include <limits>
#include <sstream>
+#include <RVersion.h>
/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp(AliHLTCTPData)
}
TFormula form("trigger expression", condition);
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+ if (form.IsValid()!=0) {
+#else
if (form.Compile()!=0) {
+#endif
HLTError("invalid expression %s", expression);
return false;
}
# **************************************************************************
# Module
-set(MODULE lhapdf-5_9_1)
+set(MODULE lhapdf_5_9_1)
# Module include folder
include_directories(${AliRoot_SOURCE_DIR}/LHAPDF/lhapdf-5.9.1
# **************************************************************************
# Module
-set(MODULE pythia6.4.21)
+set(MODULE pythia6_4_21)
# Module include folder
-include_directories(${AliRoot_SOURCE_DIR}/PYTHIA6/${MODULE})
+include_directories(${AliRoot_SOURCE_DIR}/PYTHIA6/pythia6.4.21)
# Additional include folders in alphabetical order except ROOT
include_directories(${ROOT_INCLUDE_DIR}
# **************************************************************************
# Module
-set(MODULE pythia6.4.25)
+set(MODULE pythia6_4_25)
# Module include folder
-include_directories(${AliRoot_SOURCE_DIR}/PYTHIA6/${MODULE})
+include_directories(${AliRoot_SOURCE_DIR}/PYTHIA6/pythia6.4.25)
# Additional include folders in alphabetical order except ROOT
include_directories(${ROOT_INCLUDE_DIR}
#ifdef __CINT__
+#include <RVersion.h>
#pragma link off all globals;
#pragma link off all classes;
#pragma link C++ class AliRawEvent-;
#pragma link C++ class AliRawEventV2+;
#pragma link C++ class AliRawEventHeaderBase+;
-#pragma link C++ defined_in AliRawEventHeaderVersions.h;
#pragma link C++ class AliRawEquipmentHeader;
#pragma link C++ class AliRawVEquipment+;
#pragma link C++ class AliRawEquipment-;
#pragma link C++ class AliAltroMapping+;
#pragma link C++ class AliCaloAltroMapping+;
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+#pragma link C++ class AliRawEventHeaderV3_11+;
+#pragma link C++ class AliRawEventHeaderV3_12+;
+#pragma link C++ class AliRawEventHeaderV3_13+;
+#pragma link C++ class AliRawEventHeaderV3_9+;
+#pragma link C++ class AliRawEventHeaderV3_14+;
+#else
+#pragma link C++ defined_in AliRawEventHeaderVersions.h;
+#endif
+
#endif
#include "TTreeStream.h"
#include "Riostream.h"
#include "TRandom.h"
+#include <RVersion.h>
#include <sstream>
#include "AliSysInfo.h"
TLinearFitter * fitter = GetFitter12(s1,s2);
if (fitter) return fitter;
// fitter =new TLinearFitter(12,"x[0]++x[1]++x[2]++x[3]++x[4]++x[5]++x[6]++x[7]++x[8]++x[9]++x[10]++x[11]");
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+ fitter =new TLinearFitter(f12.GetFormula(),"");
+#else
fitter =new TLinearFitter(&f12,"");
+#endif
fitter->StoreData(kFALSE);
fFitterArray12.AddAt(fitter,GetIndex(s1,s2));
counter12++;
TLinearFitter * fitter = GetFitter9(s1,s2);
if (fitter) return fitter;
// fitter =new TLinearFitter(9,"x[0]++x[1]++x[2]++x[3]++x[4]++x[5]++x[6]++x[7]++x[8]");
+#if ROOT_VERSION_CODE >= ROOT_VERSION(5,99,0)
+ fitter =new TLinearFitter(f9.GetFormula(),"");
+#else
fitter =new TLinearFitter(&f9,"");
+#endif
fitter->StoreData(kFALSE);
fFitterArray9.AddAt(fitter,GetIndex(s1,s2));
counter9++;
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
else (ROOT_VERSION_MAJOR LESS 6)
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${DNAME}.rootmap ${CMAKE_CURRENT_BINARY_DIR}/G__${DNAME}.cxx
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${DNAME}.rootmap ${CMAKE_CURRENT_BINARY_DIR}/G__${DNAME}.cxx ${CMAKE_CURRENT_BINARY_DIR}/G__${DNAME}_rdict.pcm
COMMAND
LD_LIBRARY_PATH=${ROOT_LIBDIR}:$ENV{LD_LIBRARY_PATH} ${ROOT_CINT}
ARGS
-f ${CMAKE_CURRENT_BINARY_DIR}/G__${DNAME}.cxx
-rmf ${CMAKE_CURRENT_BINARY_DIR}/lib${DNAME}.rootmap -rml lib${DNAME}
- ${GLOBALDEFINITIONS} ${EXTRADEFINITIONS} ${INCLUDE_PATH} ${DHDRS} ${LDNAME}
+ ${GLOBALDEFINITIONS} ${EXTRADEFINITIONS} ${INCLUDE_PATH} ${DHDRS} ${LDNAME}
DEPENDS
${DHDRS} ${LDNAME} ${ROOT_CINT}
WORKING_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}
)
+
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${DNAME}.rootmap" DESTINATION lib)
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/G__${DNAME}_rdict.pcm" DESTINATION lib)
+
endif (ROOT_VERSION_MAJOR LESS 6)
endmacro(generate_dictionary)